[libcxx-commits] [libcxx] [libc++] Remove explicit mentions of __need_FOO macros (PR #119025)

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 19 13:55:40 PST 2024


petrhosek wrote:

> Thanks for the steps, I followed exactly that but I still get:
> 
> ```
> CMake Error at /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
>   The C compiler
> 
>     "/usr/bin/clang-19"
> 
>   is not able to compile a simple test program.
> 
>   It fails with the following output:
> 
>     Change Dir: '/llvm-project/build/CMakeFiles/CMakeScratch/TryCompile-w2zQf9'
> 
>     Run Build Command(s): /usr/bin/ninja -v cmTC_5116d
>     [1/2] /usr/bin/clang-19 --sysroot=/sysroot-x86_64-linux-gnu    -MD -MT CMakeFiles/cmTC_5116d.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_5116d.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_5116d.dir/testCCompiler.c.o -c /llvm-project/build/CMakeFiles/CMakeScratch/TryCompile-w2zQf9/testCCompiler.c
>     [2/2] : && /usr/bin/clang-19 --sysroot=/sysroot-x86_64-linux-gnu   CMakeFiles/cmTC_5116d.dir/testCCompiler.c.o -o cmTC_5116d   && :
>     FAILED: cmTC_5116d
>     : && /usr/bin/clang-19 --sysroot=/sysroot-x86_64-linux-gnu   CMakeFiles/cmTC_5116d.dir/testCCompiler.c.o -o cmTC_5116d   && :
>     /usr/bin/ld: cannot find Scrt1.o: No such file or directory
>     /usr/bin/ld: cannot find crti.o: No such file or directory
>     /usr/bin/ld: cannot find crtbeginS.o: No such file or directory
>     /usr/bin/ld: cannot find -lgcc: No such file or directory
>     /usr/bin/ld: cannot find -lgcc_s: No such file or directory
>     /usr/bin/ld: cannot find -lc: No such file or directory
>     /usr/bin/ld: cannot find -lgcc: No such file or directory
>     /usr/bin/ld: cannot find -lgcc_s: No such file or directory
>     /usr/bin/ld: cannot find crtendS.o: No such file or directory
>     /usr/bin/ld: cannot find crtn.o: No such file or directory
>     clang-19: error: linker command failed with exit code 1 (use -v to see invocation)
>     ninja: build stopped: subcommand failed.
> ```

Are you using an Arm machine by any chance? What's the output of `uname -a` (inside the container)?

https://github.com/llvm/llvm-project/pull/119025


More information about the libcxx-commits mailing list