-
Notifications
You must be signed in to change notification settings - Fork 40
Description
I am unable to compile abseil-hello on MacOS Sequoia
`
bazel run //:hello_main
INFO: Analyzed target //:hello_main (0 packages loaded, 0 targets configured).
ERROR: /Users/popurir/abseil-hello/bazel-hello/BUILD.bazel:33:10: Compiling hello_main.cc failed: (Exit 1): cc_wrapper.sh failed: error executing CppCompile command (from target //:hello_main) external/bazel_toolscc_configure_extensionlocal_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object ... (remaining 29 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from hello_main.cc:15:
./hello.h:15:10: fatal error: 'string' file not found
15 | #include
| ^~~~~~~~
1 error generated.
Target //:hello_main failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.155s, Critical Path: 0.92s
INFO: 18 processes: 18 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
`
Below is Mac compilation setup details
/usr/bin/gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: x86_64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
softwareupdate -l
Software Update Tool
Finding available software
No new software available.
xcode-select -v
xcode-select version 2409.
xcode-select -v
xcode-select version 2409.
C02FL3VCMD6R:SDKs popurir$ xcode-select -p
/Library/Developer/CommandLineTools
C02FL3VCMD6R:SDKs popurir$ cd /Library/Developer/CommandLineTools/
C02FL3VCMD6R:CommandLineTools popurir$ ls
Library SDKs usr
C02FL3VCMD6R:CommandLineTools popurir$ cd SDKs/
C02FL3VCMD6R:SDKs popurir$ ls -lh
total 0
lrwxr-xr-x 1 root wheel 14B Nov 14 12:49 MacOSX.sdk -> MacOSX13.1.sdk
drwxr-xr-x 7 root wheel 224B Nov 12 2022 MacOSX13.1.sdk
drwxr-xr-x 8 root wheel 256B Nov 14 12:48 MacOSX14.5.sdk
lrwxr-xr-x 1 root wheel 14B Nov 13 15:39 MacOSX14.sdk -> MacOSX14.5.sdk
drwxr-xr-x 8 root wheel 256B Nov 14 12:49 MacOSX15.1.sdk
lrwxr-xr-x 1 root wheel 14B Nov 13 15:37 MacOSX15.sdk -> MacOSX15.1.sdk
lrwxr-xr-x 1 root wheel 14B Nov 13 15:40 MacOSX_old.sdk -> MacOSX15.1.sdk