lede icon indicating copy to clipboard operation
lede copied to clipboard

cmake编译出错

Open zss12345678-a opened this issue 1 month ago • 0 comments

详细叙述

升级gcc和g++到12.0没啥用,更换cmake文件也没啥用

重复 issue

  • [x] 没有类似的 issue

具体型号

radxa-e25

详细日志

[61/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmSiteNameCommand.cxx -o cmSiteNameCommand.o [62/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmGlobalGenerator.cxx -o cmGlobalGenerator.o FAILED: cmGlobalGenerator.o /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmGlobalGenerator.cxx -o cmGlobalGenerator.o /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmGlobalGenerator.cxx: In member function 'void cmGlobalGenerator::AddGlobalTarget_Test(std::vectorcmGlobalGenerator::GlobalTargetInfo&)': /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmGlobalGenerator.cxx:2870:6: internal compiler error: Segmentation fault 2870 | void cmGlobalGenerator::AddGlobalTarget_Test( | ^~~~~~~~~~~~~~~~~ 0x7da1b544251f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x7da1b5429d8f __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7da1b5429e3f __libc_start_main_impl ../csu/libc-start.c:392 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See file:///usr/share/doc/gcc-11/README.Bugs for instructions. [63/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmSearchPath.cxx -o cmSearchPath.o [64/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmSetTestsPropertiesCommand.cxx -o cmSetTestsPropertiesCommand.o [65/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmString.cxx -o cmString.o [66/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmStringAlgorithms.cxx -o cmStringAlgorithms.o [67/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmSourceFile.cxx -o cmSourceFile.o [68/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmSetPropertyCommand.cxx -o cmSetPropertyCommand.o [69/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmSourceFileLocation.cxx -o cmSourceFileLocation.o [70/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmStateSnapshot.cxx -o cmStateSnapshot.o [71/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmStateDirectory.cxx -o cmStateDirectory.o [72/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmStandardLevelResolver.cxx -o cmStandardLevelResolver.o [73/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmState.cxx -o cmState.o [74/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmLocalGenerator.cxx -o cmLocalGenerator.o [75/173] /home/sh/lede/staging_dir/host/bin/g++ -O2 -I/home/sh/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source -I/home/sh/lede/build_dir/host/cmake-3.30.5/Source/LexerParser -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities/std -I/home/sh/lede/build_dir/host/cmake-3.30.5/Utilities -c /home/sh/lede/build_dir/host/cmake-3.30.5/Source/cmMakefile.cxx -o cmMakefile.o ninja: build stopped: subcommand failed.

Error when bootstrapping CMake: Problem while running /home/sh/lede/staging_dir/host/bin/ninja

Log of errors: /home/sh/lede/build_dir/host/cmake-3.30.5/Bootstrap.cmk/cmake_bootstrap.log

make[3]: *** [Makefile:59: /home/sh/lede/build_dir/host/cmake-3.30.5/.configured] Error 9 make[3]: Leaving directory '/home/sh/lede/tools/cmake' time: tools/cmake/compile#115.11#12.19#14.32 ERROR: tools/cmake failed to build. make[2]: *** [tools/Makefile:235: tools/cmake/compile] Error 1 make[2]: Leaving directory '/home/sh/lede' make[1]: *** [tools/Makefile:231: /home/sh/lede/staging_dir/host/stamp/.tools_compile_nyyynyynnnyyynynyyyyyyyynyyynynyynnynnyyyyyynyyyyyyyyyyynynnyyyyynyyy] Error 2 make[1]: Leaving directory '/home/sh/lede' make: *** [/home/sh/lede/include/toplevel.mk:231:world] 错误 2

zss12345678-a avatar Dec 01 '25 22:12 zss12345678-a