Issue 98440
Summary build libunwind with gcc error: gcc: error: unrecognized command-line option ‘-nostdlib++’
Labels new issue
Assignees
Reporter mengzhisy
    [1/3] Linking C shared library lib/libunwind.so.1.0
FAILED: lib/libunwind.so.1.0 
: && /usr/local/gcc-14/bin/gcc -fPIC -g  -nostdlib++ -shared -Wl,-soname,libunwind.so.1 -o lib/libunwind.so.1.0 src/CMakeFiles/unwind_shared_objects.dir/libunwind.cpp.o src/CMakeFiles/unwind_shared_objects.dir/Unwind-EHABI.cpp.o src/CMakeFiles/unwind_shared_objects.dir/Unwind-seh.cpp.o src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1-gcc-ext.c.o src/CMakeFiles/unwind_shared_objects.dir/Unwind-sjlj.c.o src/CMakeFiles/unwind_shared_objects.dir/Unwind-wasm.c.o   && :
gcc: error: unrecognized command-line option ‘-nostdlib++’
ninja: build stopped: subcommand failed.

If I delete this line, it won't throw an error anymore : https://github.com/llvm/llvm-project/blob/b65aba292e0d485de286ec36134375e74b1fb95c/libunwind/src/CMakeLists.txt#L70

Related: https://bugs.gentoo.org/913968
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to