Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on MacOS #80

Open
antumbde opened this issue Dec 22, 2021 · 2 comments
Open

Build failure on MacOS #80

antumbde opened this issue Dec 22, 2021 · 2 comments

Comments

@antumbde
Copy link

MacOS build is failing with an error given below.
I'm building HEAD
Mac OS version: 12.0.1

The error seems to be from protobuf build. There was similar issue for protobuf that seems fixed https://github.com/protocolbuffers/upb/issues/212
Building protobuf HEAD worked. So, I'm not sure what exactly is causing the issue. Protobuf build had updated some system component (forgot to note that).

2 warnings generated.
ERROR: /private/var/tmp/_bazel_adwait/be039efe658ce51b20609226fd8df80b/external/upb/BUILD:58:1: C++ compilation of rule '@upb//:upb' failed (Exit 1) wrapped_clang failed: error executing command external/local_config_cc/wrapped_clang '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG -iquote external/upb -iquote ... (remaining 24 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/upb/upb/decode.c:3:
external/upb/upb/upb.h:39:3: error: '_Bool' is a C99 extension [-Werror,-Wc99-extensions]
bool ok;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/stdbool.h:15:14: note: expanded from macro 'bool'
#define bool _Bool
^
In file included from external/upb/upb/decode.c:3:
external/upb/upb/upb.h:48:1: error: '_Bool' is a C99 extension [-Werror,-Wc99-extensions]
bool upb_ok(const upb_status *status);

........

external/upb/upb/decode.c:273:8: error: '_Bool' is a C99 extension [-Werror,-Wc99-extensions]
static bool upb_decode_addval(upb_decframe *frame,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/stdbool.h:15:14: note: expanded from macro 'bool'
#define bool _Bool
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
INFO: Elapsed time: 337.285s, Critical Path: 250.75s
INFO: 1453 processes: 1405 darwin-sandbox, 48 worker.
FAILED: Build did NOT complete successfully

@matthewcbrown
Copy link
Collaborator

I think I have this fixed, but please give it a try with the latest commit (I have pretty limited access to mac dev environments for testing)

@Matts966
Copy link

@matthewcbrown
Thank you!
I found that build succeeded even on M1 mac, but I had to set .bazelversion to 4.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants