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

compilation on macos, ccache error #16326

Closed
squm opened this issue Mar 27, 2024 · 4 comments
Closed

compilation on macos, ccache error #16326

squm opened this issue Mar 27, 2024 · 4 comments
Assignees
Labels
26.x cmake inactive Denotes the issue/PR has not seen activity in the last 90 days. mac platform related Any issue releated to specific platform or OS untriaged auto added to all issues by default when created.

Comments

@squm
Copy link

squm commented Mar 27, 2024

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 squm added the untriaged auto added to all issues by default when created. label Mar 27, 2024
@zhangskz zhangskz added mac cmake platform related Any issue releated to specific platform or OS 26.x labels Mar 28, 2024
@zhangskz
Copy link
Member

Might be related to #16314 which also seems to be macos / cmake / absl problems.

@mkruskal-google
Copy link
Member

This looks like a bad bazel/ccache interaction. Is this protobuf-specific or do you hit this in other projects (e.g. Abseil)?

Copy link

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

@github-actions github-actions bot added the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Jun 28, 2024
Copy link

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.

This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
26.x cmake inactive Denotes the issue/PR has not seen activity in the last 90 days. mac platform related Any issue releated to specific platform or OS untriaged auto added to all issues by default when created.
Projects
None yet
Development

No branches or pull requests

4 participants