webminer icon indicating copy to clipboard operation
webminer copied to clipboard

Build failing in macOS

Open wakqasahmed opened this issue 2 years ago • 12 comments

Here is the log, please assist.

+ ./build.sh
config.status: creating ./lib/alloca.h__
config.status: creating ./lib/fcntl.h__
config.status: creating ./lib/limits.h__
config.status: creating ./lib/fnmatch.h__
config.status: creating ./lib/glob.h__
config.status: creating ./lib/stdint.h__
config.status: creating ./lib/stdio.h__
config.status: creating ./lib/stdlib.h__
config.status: creating ./lib/string.h__
config.status: creating ./lib/sys/types.h__
config.status: creating ./lib/unistd.h__
compiling lib/concat-filename.c...
compiling lib/dirname-lgpl.c...
compiling lib/basename-lgpl.c...
compiling lib/stripslash.c...
compiling lib/exitfail.c...
compiling lib/fd-hook.c...
compiling lib/findprog-in.c...
./lib/findprog-in.c:137:25: error: implicit declaration of function 'eaccess' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                    if (eaccess (progpathname, X_OK) == 0)
                        ^
./lib/findprog-in.c:137:25: note: did you mean 'access'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:431:6: note: 'access' declared here
int      access(const char *, int);
         ^
./lib/findprog-in.c:211:21: error: implicit declaration of function 'eaccess' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                if (eaccess (progpathname, X_OK) == 0)
                    ^
2 errors generated.
_____ END BUILD LOGS _____
rules_foreign_cc: Build wrapper script location: bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/wrapper_build_script.sh
rules_foreign_cc: Build script location: bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/build_script.sh
rules_foreign_cc: Build log location: bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/BootstrapGNUMake.log

Target //:webminer failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 86.027s, Critical Path: 83.72s
INFO: 204 processes: 20 internal, 184 darwin-sandbox.
FAILED: Build did NOT complete successfully

wakqasahmed avatar Apr 08 '22 12:04 wakqasahmed

What platform or operating system are you using? What versions?

kanzure avatar Apr 08 '22 12:04 kanzure

macOS Monterey 12.2.1

wakqasahmed avatar Apr 08 '22 12:04 wakqasahmed

Apple silicon?

Sent from my mobile device; please excuse brevity and any mistakes.

On Apr 8, 2022, at 5:58 AM, Waqas Ahmed @.***> wrote:

 macOS Monterey 12.2.1

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

maaku avatar Apr 08 '22 15:04 maaku

It's not M1. It's Intel chip (old model 2015) MacBook pro.

wakqasahmed avatar Apr 08 '22 19:04 wakqasahmed

Is your Xcode up to date?

Sent from my mobile device; please excuse brevity and any mistakes.

On Apr 8, 2022, at 12:40 PM, Waqas Ahmed @.***> wrote:

 It's not M1. It's Intel chip (old model 2015) MacBook pro.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

maaku avatar Apr 08 '22 20:04 maaku

Yep, I just installed latest version before building (as a pre-requisite)

wakqasahmed avatar Apr 08 '22 20:04 wakqasahmed

Having same issue on Monterey 12.3.1; intel core i5 processor; should the function be defined in a header before being called? Is there a way to suppress the error in the build process?

bg002h avatar Apr 20 '22 19:04 bg002h

This error doesn't happen in prior version of Mac OS...whatever the version was right before monterey.

bg002h avatar Apr 20 '22 19:04 bg002h

i can bypass this error by subsituting access instead of access in file: ./lib/findprog-in.c but the build fails at some handler something something later on...

bg002h avatar Apr 20 '22 20:04 bg002h

It's not M1. It's Intel chip (old model 2015) MacBook pro.

On Fri, Apr 8, 2022, 8:17 PM Mark Friedenbach @.***> wrote:

Apple silicon?

Sent from my mobile device; please excuse brevity and any mistakes.

On Apr 8, 2022, at 5:58 AM, Waqas Ahmed @.***> wrote:

 macOS Monterey 12.2.1

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHub https://github.com/maaku/webminer/issues/7#issuecomment-1092988532, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHH5I2D7PAORUYRA3LKVDVEBEYRANCNFSM5S4MKBCQ . You are receiving this because you authored the thread.Message ID: @.***>

wakqasahmed avatar Oct 11 '22 08:10 wakqasahmed

Is this still a problem for anybody?

maaku avatar Mar 10 '23 01:03 maaku

Yes, now I am on M1 but same issue.

wakqasahmed avatar Mar 19 '23 23:03 wakqasahmed