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

No acceptable C compiler found! on macos 10.14 machines #3096

Closed
richardlau opened this issue Nov 23, 2022 · 3 comments
Closed

No acceptable C compiler found! on macos 10.14 machines #3096

richardlau opened this issue Nov 23, 2022 · 3 comments

Comments

@richardlau
Copy link
Member

richardlau commented Nov 23, 2022

e.g. https://ci.nodejs.org/job/node-test-commit-osx/nodes=osx1014/48849/console

11:01:11 Detected C++ compiler (CXX=/usr/local/bin/ccache c++) version: 
11:01:11 WARNING: failed to autodetect C++ compiler version (CXX=/usr/local/bin/ccache c++)
11:01:11 Detected C compiler (CC=/usr/local/bin/ccache cc) version: 
11:01:11 WARNING: failed to autodetect C compiler version (CC=/usr/local/bin/ccache cc)
11:01:11 ERROR: No acceptable C compiler found!
11:01:11 
11:01:11        Please make sure you have a C compiler installed on your system and/or
11:01:11        consider adjusting the CC environment variable if you installed
11:01:11        it in a non-standard prefix.
11:01:11 make: *** [build-ci] Error 1

On the machine it looks like ccache is broken:

test-orka-macos10:~ administrator$ /usr/local/bin/ccache cc --version
-bash: /usr/local/bin/ccache: No such file or directory
test-orka-macos10:~ administrator$ cc --version
dyld: Library not loaded: /usr/local/opt/hiredis/lib/libhiredis.1.0.0.dylib
  Referenced from: /usr/local/opt/ccache/libexec/cc
  Reason: image not found
Abort trap: 6
test-orka-macos10:~ administrator$ which -a cc
/usr/local/opt/ccache/libexec/cc
/usr/bin/cc
test-orka-macos10:~ administrator$ /usr/local/opt/ccache/libexec/cc --version
dyld: Library not loaded: /usr/local/opt/hiredis/lib/libhiredis.1.0.0.dylib
  Referenced from: /usr/local/opt/ccache/libexec/cc
  Reason: image not found
Abort trap: 6
test-orka-macos10:~ administrator$ /usr/bin/cc --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
test-orka-macos10:~ administrator$
@richardlau
Copy link
Member Author

I'm guessing that when we ran the playbook for #3085 to update to Java 17, the unchanged package tasks attempted to update ccache and somehow failed without failing the playbook run 😞.

@richardlau
Copy link
Member Author

richardlau commented Nov 24, 2022

Further investigation shows that hiredis was installed via brew but was version 1.1.0 while ccache is looking for 1.0.0.
I've got ccache running again by reinstall hiredis at 1.0.0:

curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/1c96aa836eef2c8b1ea707e9415f5ff266e5da65/Formula/hiredis.rb
brew unlink hiredis
brew install ./hiredis.rb
brew link ccache

(As an aside, brew spews out warnings about not supporting mojave anymore -- we may be broken by design 😞.)

At least https://ci.nodejs.org/job/node-test-commit-osx/48880/nodes=osx1014/console is building 🤞.

@targos
Copy link
Member

targos commented Nov 24, 2022

Sorry, that's probably my fault. I only verified java -version.

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

No branches or pull requests

2 participants