Open wbfw109 opened 3 weeks ago
Hi @wbfw109
Thanks for your feedback.
This might not be an issue of Conan itself, but instead an issue of ConanCenter recipes from the conan-center-index
repository. In that case we will move the ticket to that repo.
The thing is that it is possible that some recipes do not build with some different configuration, ConanCenter builds and test a bunch of them but not all.
I am trying to reproduce, but I got a different error in one of the dependencies that builds first, flac/1.4.2
:
flac/1.4.2: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/user/.conan2/p/b/flac9e75eca4c6fbc/p" -DCMAKE_POLICY_DEFAULT_CMP0077="NEW" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "/home/user/.conan2/p/b/flac9e75eca4c6fbc/b/src"
-- Using Conan toolchain: /home/user/.conan2/p/b/flac9e75eca4c6fbc/b/build/Debug/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: Defining architecture flag: -m64
-- Conan toolchain: Defining libcxx as C++ flags: -stdlib=libc++
-- Conan toolchain: C++ Standard 23 with extensions OFF
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is Clang 14.0.0
-- The CXX compiler identification is Clang 14.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ - broken
CMake Error at /home/user/.envs/conan2/lib/python3.10/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
The C++ compiler
"/usr/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/user/.conan2/p/b/flac9e75eca4c6fbc/b/build/Debug/CMakeFiles/CMakeScratch/TryCompile-JmuFRA
Run Build Command(s):/usr/bin/ninja cmTC_8631b && [1/2] Building CXX object CMakeFiles/cmTC_8631b.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_8631b
FAILED: cmTC_8631b
: && /usr/bin/clang++ -m64 -stdlib=libc++ -m64 CMakeFiles/cmTC_8631b.dir/testCXXCompiler.cxx.o -o cmTC_8631b && :
/usr/bin/ld: cannot find -lc++: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Can you please share your full output? Conan 2 is assumed here, but please clarify your exact Conan version.
Thank @memsharded for comment .
After creating this post, I discovered the existence of the conan-center-index repository, and I believe the issue may be related to that repository. Therefore, I have posted the problem in the issue there. All the relevant environment details and content are clearly specified, so please refer to it there for more information. https://github.com/conan-io/conan-center-index/issues/25075
Since I have already posted more specific details in that repository, I will monitor the situation and close this issue here myself soon.
Thank you for your response and for testing. : )
Thanks for the details there, I have now been able to pass that flac
build error, I was missing libc++-dev libc++abi-dev
in my Linux machine.
I have successfully built it with my clang 14 in my Ubuntu 22.04 The output passes with:
checking where the gettext function comes from... libc
checking host operating system... linux
checking whether C compiler accepts -std=gnu11... yes
Is it possible that such modern clang 18 version might have removed support for the (relative) old gnu11? Why the
``configure: error: *** Compiler does not support -std=gnu11``
```?
Describe the bug
OS:Ubuntu 22.04 or 24.04 LTS
profile
conanfile.py
How to reproduce it
when use 'conan install . --build=missing' with the profile,