Skip to content

Cannot build Node on macOS: "No acceptable C compiler found!" #17238

@mgol

Description

@mgol
  • Version: master
  • Platform: macOS 10.13.1 (17B48) (Darwin mgol-mbpro.local 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64)
  • Subsystem:

I have latest XCode (9.1 (9B55))& Command Line Tools installed on a fully updated High Sierra. python resolves to a version 2.7.10; I have make 3.81. This fulfills all requirements at https://github.com/nodejs/node/blob/master/BUILDING.md#unix--macos and yet when I run ./configure I get the following:

WARNING: failed to autodetect C++ compiler version (CXX=ccache clang++ -Qunused-arguments)
WARNING: failed to autodetect C compiler version (CC=ccache clang -Qunused-arguments)
Node.js configure error: No acceptable C compiler found!

        Please make sure you have a C compiler installed on your system and/or
        consider adjusting the CC environment variable if you installed
        it in a non-standard prefix.
        

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.macosIssues and PRs related to the macOS platform / OSX.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions