从源代码构建(CoreFX)openSUSE Tumbleweed

问题描述 投票:0回答:1

让我感到困惑的是,我猜发行版的clang包坏了...?

  • C编译器标识为Clang 8.0.1-CXX编译器标识为Clang 8.0.1-检查工作的C编译器:/ usr / bin / clang-检查工作的C编译器:/ usr / bin / clang-工作-检测C编译器ABI信息-检测C编译器ABI信息-完成-检测C编译功能-检测C编译功能-完成-检查可运行的CXX编译器:/ usr / bin / clang ++-检查可运行的CXX编译器:/ usr / bin / clang ++-损坏/usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake中的CMake错误:53(消息):C ++编译器
"/usr/bin/clang++"

无法编译简单的测试程序。

它失败,显示以下输出:

Change Dir: /home/julius/Downloads/coreclr/bin/obj/Linux.x64.Debug/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_5e47b/fast && /usr/bin/gmake -f CMakeFiles/cmTC_5e47b.dir/build.make CMakeFiles/cmTC_5e47b.dir/build
gmake[1]: Entering directory '/home/julius/Downloads/coreclr/bin/obj/Linux.x64.Debug/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5e47b.dir/testCXXCompiler.cxx.o
/usr/bin/clang++     -o CMakeFiles/cmTC_5e47b.dir/testCXXCompiler.cxx.o -c /home/julius/Downloads/coreclr/bin/obj/Linux.x64.Debug/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_5e47b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5e47b.dir/link.txt --verbose=1
/usr/bin/clang++       CMakeFiles/cmTC_5e47b.dir/testCXXCompiler.cxx.o  -o cmTC_5e47b 
/usr/bin/ld: cannot find -lstdc++
clang-8.0: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_5e47b.dir/build.make:87: cmTC_5e47b] Error 1
gmake[1]: Leaving directory '/home/julius/Downloads/coreclr/bin/obj/Linux.x64.Debug/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_5e47b/fast] Error 2

CMake将无法正确生成此项目。呼叫堆栈(最近的呼叫优先):CMakeLists.txt:6(项目)

-配置不完整,发生错误!另请参阅“ /home/julius/Downloads/coreclr/bin/obj/Linux.x64.Debug/CMakeFiles/CMakeOutput.log”。另请参阅“ /home/julius/Downloads/coreclr/bin/obj/Linux.x64.Debug/CMakeFiles/CMakeError.log”。无法生成CoreCLR组件构建项目!

c++ c cmake opensuse
1个回答
0
投票

参见:https://github.com/dotnet/core-setup/issues/4413

日志中类似的错误指示此问题应已解决。。>

clang-8.0:错误:链接器命令失败,退出代码为1(使用-v查看调用)

编译CXX编译器标识源文件“ CMakeCXXCompilerId.cpp”失败。编译器:/ usr / bin / clang ++构建标志:ID标志:

输出为:1个/ usr / bin / ld:找不到crt1.o:没有这样的文件或目录/ usr / bin / ld:找不到crti.o:没有这样的文件或目录/ usr / bin / ld:找不到crtbegin.o:没有这样的文件或目录/ usr / bin / ld:找不到-lstdc ++/ usr / bin / ld:找不到-lm/ usr / bin / ld:找不到-lgcc_s/ usr / bin / ld:找不到-lgcc/ usr / bin / ld:找不到-lc/ usr / bin / ld:找不到-lgcc_s/ usr / bin / ld:找不到-lgcc/ usr / bin / ld:找不到crtend.o:没有这样的文件或目录/ usr / bin / ld:找不到crtn.o:没有这样的文件或目录clang-8.0:错误:链接器命令失败,退出代码为1(使用-v查看调用)

© www.soinside.com 2019 - 2024. All rights reserved.