Skip to content

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

Description

@richardlau

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$

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions