Build failure on MacOS
- Dominant language
- C++
- Stars
- 2.6k
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.