-
Notifications
You must be signed in to change notification settings - Fork 254
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
Building packages using Autotools fails for macOS passing detected CMAKE_<LANG>_COMPILER #589
Comments
Interesting! My suspicion is that this executable alone: CMake most likely derives the compiler flags required for it to work, and thus can bypass xcrun completely. Will look into this ! |
Thanks a lot. I can copy the relevant part of the failing log:
Versus a succesfull log invoking
Yes, I think that's the cause of the problem, that the gcc shim invokes xcrun and thereby ensures a properly configured environment for the compiler and linker. |
Fixed in #592. |
Hi!
I am encountering an issue when trying to build
libcurl
, which uses Autotools, with cmake-conan on macOS. The problem appears to be related to the absolute paths detected for the C and C++ compilers. This can be replicated with a simple example, as shown here: https://github.com/czoido/cmake-conan-exampleWhen running this example on macOS,
CMAKE_CXX_COMPILER
is detected as/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
. This seems to cause the build process for libcurl with Autotools to fail. However, if I manually change the compilers to/usr/bin/g++
and/usr/bin/cc
, the build completes without any issues.The text was updated successfully, but these errors were encountered: