-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I get the following errors when building on Ubuntu 25.10LTS using UTM on my Mac Book M1 2020.
Command:
conan install --tool-requires="ninja/1.13.2" --build="ninja/*" -pr:a hal/tc/llvm --build=cmake --build=missing:cmake/*Response:
CMake Error at /home/khalil-estell/.conan2/p/b/cmaked5e99d48e244a/p/share/cmake-4.2/Modules/CMakeTestCXXCompiler.cmake:73 (message):
The C++ compiler
"/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/khalil-estell/.conan2/p/b/ninja1d6617a9a4f53/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-zzfZid'
Run Build Command(s): /home/khalil-estell/.conan2/p/b/cmaked5e99d48e244a/p/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_b3a91/fast
/usr/bin/gmake -f CMakeFiles/cmTC_b3a91.dir/build.make CMakeFiles/cmTC_b3a91.dir/build
gmake[1]: Entering directory '/home/khalil-estell/.conan2/p/b/ninja1d6617a9a4f53/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-zzfZid'
Building CXX object CMakeFiles/cmTC_b3a91.dir/testCXXCompiler.cxx.o
/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/clang++ -stdlib=libc++ -flto -ffunction-sections -fdata-sections -std=c++23 -MD -MT CMakeFiles/cmTC_b3a91.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_b3a91.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_b3a91.dir/testCXXCompiler.cxx.o -c /home/khalil-estell/.conan2/p/b/ninja1d6617a9a4f53/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-zzfZid/testCXXCompiler.cxx
Linking CXX executable cmTC_b3a91
/home/khalil-estell/.conan2/p/b/cmaked5e99d48e244a/p/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b3a91.dir/link.txt --verbose=1
/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/ld.lld: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
clang++: error: unable to execute command: No such file or directory
clang++: error: linker command failed due to signal (use -v to see invocation)
/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/clang++ -stdlib=libc++ -flto -ffunction-sections -fdata-sections -fuse-ld=lld -flto -Wl,--gc-sections -Wl,-rpath,/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/lib/aarch64-unknown-linux-gnu -L/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/lib/aarch64-unknown-linux-gnu -lc++ -lc++abi CMakeFiles/cmTC_b3a91.dir/testCXXCompiler.cxx.o -o cmTC_b3a91
gmake[1]: *** [CMakeFiles/cmTC_b3a91.dir/build.make:103: cmTC_b3a91] Error 1
gmake[1]: Leaving directory '/home/khalil-estell/.conan2/p/b/ninja1d6617a9a4f53/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-zzfZid'
gmake: *** [Makefile:134: cmTC_b3a91/fast] Error 2
Installing libxml2-dev via sudo apt install libxml2-dev does not resolve this issue..
It does create /usr/lib/aarch64-linux-gnu/libxml2.so which I used to create a symbol link to libxml2.so.2 like so:
sudo ln /usr/lib/aarch64-linux-gnu/libxml2.so /usr/lib/aarch64-linux-gnu/libxml2.so.2But this leads to the following errors:
CMake Error at /home/khalil-estell/.conan2/p/b/cmaked5e99d48e244a/p/share/cmake-4.2/Modules/CMakeTestCXXCompiler.cmake:73 (message):
The C++ compiler
"/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/khalil-estell/.conan2/p/b/ninja25b5e30e9a90b/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-Ym3KkN'
Run Build Command(s): /home/khalil-estell/.conan2/p/b/cmaked5e99d48e244a/p/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_2295b/fast
/usr/bin/gmake -f CMakeFiles/cmTC_2295b.dir/build.make CMakeFiles/cmTC_2295b.dir/build
gmake[1]: Entering directory '/home/khalil-estell/.conan2/p/b/ninja25b5e30e9a90b/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-Ym3KkN'
Building CXX object CMakeFiles/cmTC_2295b.dir/testCXXCompiler.cxx.o
/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/clang++ -stdlib=libc++ -flto -ffunction-sections -fdata-sections -std=c++23 -MD -MT CMakeFiles/cmTC_2295b.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_2295b.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_2295b.dir/testCXXCompiler.cxx.o -c /home/khalil-estell/.conan2/p/b/ninja25b5e30e9a90b/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-Ym3KkN/testCXXCompiler.cxx
Linking CXX executable cmTC_2295b
/home/khalil-estell/.conan2/p/b/cmaked5e99d48e244a/p/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2295b.dir/link.txt --verbose=1
/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/ld.lld: /usr/lib/aarch64-linux-gnu/libxml2.so.2: no version information available (required by /home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/ld.lld)
/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/ld.lld: /usr/lib/aarch64-linux-gnu/libxml2.so.2: no version information available (required by /home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/ld.lld)
ld.lld: error: cannot open crtbeginS.o: No such file or directory
ld.lld: error: unable to find library -lgcc_s
ld.lld: error: unable to find library -lgcc
ld.lld: error: unable to find library -lgcc_s
ld.lld: error: unable to find library -lgcc
ld.lld: error: cannot open crtendS.o: No such file or directory
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/bin/clang++ -stdlib=libc++ -flto -ffunction-sections -fdata-sections -fuse-ld=lld -flto -Wl,--gc-sections -Wl,-rpath,/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/lib/aarch64-unknown-linux-gnu -L/home/khalil-estell/.conan2/p/b/llvm-8d6b6357e2e47/p/lib/aarch64-unknown-linux-gnu -lc++ -lc++abi CMakeFiles/cmTC_2295b.dir/testCXXCompiler.cxx.o -o cmTC_2295b
gmake[1]: *** [CMakeFiles/cmTC_2295b.dir/build.make:103: cmTC_2295b] Error 1
gmake[1]: Leaving directory '/home/khalil-estell/.conan2/p/b/ninja25b5e30e9a90b/b/build/Release/CMakeFiles/CMakeScratch/TryCompile-Ym3KkN'
gmake: *** [Makefile:134: cmTC_2295b/fast] Error 2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels