protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

compilation on macos, ccache error

Open squm opened this issue 10 months ago • 3 comments

What version of protobuf and what language are you using? Version: main/v5.26.0 (latest) Language: bazel

What operating system (Linux, Windows, ...) and version? macos

What runtime / compiler are you using (e.g., python version or gcc version)

What did you do? Steps to reproduce the behavior: bazel build :protoc :protobuf

What did you expect to see

INFO: Build completed successfully

What did you see instead?

ERROR: /external/com_google_absl/absl/debugging/BUILD.bazel:196:11: Compiling absl/debugging/internal/elf_mem_image.cc failed: (Exit 1): cc_wrapper.sh failed: error executing CppCompile command (from target @@com_google_absl//absl/debugging:debugging_internal) external/local_config_cc/cc_wrapper.sh 

ccache: invalid option -- U

ERROR: Build did NOT complete successfully

when compiling on macos, if ccache is installed, bazel generates cc_wrapper.sh with invalid use of ccache problem goes away if ccache is uninstalled CMakeLists.txt option protobuf_ALLOW_CCACHE is ignored

squm avatar Mar 27 '24 13:03 squm