找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1883|回复: 5

编译错误(已解决)

[复制链接]
发表于 2023-3-21 15:00 | 显示全部楼层 |阅读模式
本帖最后由 蓝小猴 于 2023-3-23 15:04 编辑

    ERROR: toolchain/gcc/final failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/yph/lede/include/toplevel.mk:231: world] Error 1
make[2]: Entering directory '/home/yph/lede/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/yph/lede/scripts/config'
make[1] world
make[2] toolchain/compile
make[3] -C toolchain/gdb compile
make[3] -C toolchain/binutils compile
make[3] -C toolchain/gcc/initial compile
make[3] -C toolchain/kernel-headers compile
make[3] -C toolchain/musl compile
make[3] -C toolchain/gcc/final compile
    ERROR: toolchain/gcc/final failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/yph/lede/include/toplevel.mk:231: world] Error 1
make[2]: Entering directory '/home/yph/lede/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/yph/lede/scripts/config'
make[1]: Entering directory '/home/yph/lede'
make[2]: Entering directory '/home/yph/lede'
+ mkdir -p /home/yph/lede/staging_dir/target-aarch64_cortex-a53_musl
+ cd /home/yph/lede/staging_dir/target-aarch64_cortex-a53_musl
+ mkdir -p bin lib stamp usr/include usr/lib
mkdir -p /home/yph/lede/build_dir/target-aarch64_cortex-a53_musl/stamp
touch /home/yph/lede/staging_dir/target-aarch64_cortex-a53_musl/.prepared
make[3]: Entering directory '/home/yph/lede/toolchain/gdb'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/yph/lede/toolchain/gdb'
time: toolchain/gdb/compile#0.00#0.01#0.02
make[3]: Entering directory '/home/yph/lede/toolchain/binutils'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/yph/lede/toolchain/binutils'
time: toolchain/binutils/compile#0.00#0.00#0.01
make[3]: Entering directory '/home/yph/lede/toolchain/gcc/initial'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/yph/lede/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#0.01#0.00#0.02
make[3]: Entering directory '/home/yph/lede/toolchain/kernel-headers'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/yph/lede/toolchain/kernel-headers'
time: toolchain/kernel-headers/compile#0.01#0.03#0.05
make[3]: Entering directory '/home/yph/lede/toolchain/musl'
make[3]: Leaving directory '/home/yph/lede/toolchain/musl'
time: toolchain/musl/compile#0.11#0.14#0.20
make[3]: Entering directory '/home/yph/lede/toolchain/gcc/final'
export SHELL="bash"; make CFLAGS="-O2 -I/home/yph/lede/staging_dir/host/include " CFLAGS_FOR_TARGET="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CXXFLAGS_FOR_TARGET="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" GOCFLAGS_FOR_TARGET="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" gcc_cv_libc_provides_ssp=yes  -C /home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final all
make[4]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final'
make[5]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libiberty'
make[7]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libiberty/testsuite'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libiberty/testsuite'
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libiberty'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/fixincludes'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/fixincludes'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/lto-plugin'
make  all-am
make[7]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/lto-plugin'
make[7]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/lto-plugin'
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/lto-plugin'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/intl'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/intl'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/libiberty'
make[7]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/libiberty'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/fixincludes'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/fixincludes'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/build-x86_64-pc-linux-gnu/libcpp'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-O2 -I/home/yph/lede/staging_dir/host/include " "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" "INSTALL=/home/yph/lede/staging_dir/host/bin/install -c" "INSTALL_DATA=/home/yph/lede/staging_dir/host/bin/install -c -m 644" "INSTALL_PROGRAM=/home/yph/lede/staging_dir/host/bin/install -c" "INSTALL_SCRIPT=/home/yph/lede/staging_dir/host/bin/install -c" "LDFLAGS=-static-libstdc++ -static-libgcc " "LIBCFLAGS=-O2 -I/home/yph/lede/staging_dir/host/include " "LIBCFLAGS_FOR_TARGET=-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" "MAKE=make" "MAKEINFO=/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/home/yph/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl" "infodir=/home/yph/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/share/info" "libdir=/home/yph/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/lib" "prefix=/home/yph/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl" "tooldir=/home/yph/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/aarch64-openwrt-linux-musl" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=ld" "LIBCFLAGS=-O2 -I/home/yph/lede/staging_dir/host/include " "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/zlib'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libbacktrace'
make  all-am
make[7]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libbacktrace'
true  DO=all multi-do # make
make[7]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libbacktrace'
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libbacktrace'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libcpp'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libcody'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libcody'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libdecnumber'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/libdecnumber'
make[6]: Entering directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/gcc'
/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/./gcc/xgcc -B/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/./gcc/ -xc++ -nostdinc /dev/null -S -o /dev/null -fself-test=/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0/gcc/testsuite/selftests
xgcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
make[6]: *** [/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0/gcc/cp/Make-lang.in:196: s-selftest-c++] Error 1
make[6]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/gcc'
make[5]: *** [Makefile:4448: all-gcc] Error 2
make[5]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final'
make[4]: *** [Makefile:976: all] Error 2
make[4]: Leaving directory '/home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final'
make[3]: *** [Makefile:91: /home/yph/lede/build_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/gcc-11.3.0-final/.built] Error 2
make[3]: Leaving directory '/home/yph/lede/toolchain/gcc/final'
time: toolchain/gcc/final/compile#1.54#0.86#2.31
    ERROR: toolchain/gcc/final failed to build.
make[2]: *** [toolchain/Makefile:97: toolchain/gcc/final/compile] Error 1
make[2]: Leaving directory '/home/yph/lede'
make[1]: *** [toolchain/Makefile:93: /home/yph/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/yph/lede'
make: *** [/home/yph/lede/include/toplevel.mk:231: world] Error 2

更换节点解决



发表于 2023-4-1 01:49 | 显示全部楼层
make[1] world
make[2] toolchain/compile
make[2] package/cleanup
make[3] -C toolchain/gdb compile
make[3] -C toolchain/binutils compile
make[3] -C toolchain/fortify-headers compile
make[3] -C toolchain/nasm compile
make[3] -C toolchain/gcc/initial compile
make[3] -C toolchain/kernel-headers compile
make[3] -C toolchain/musl compile
make[3] -C toolchain/gcc/final compile
    ERROR: toolchain/gcc/final failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/zhan/lede/include/toplevel.mk:231:world] 错误 1

这个怎么回事

点评

我也遇到一样的问题了,怎么解决呀  详情 回复 发表于 2023-11-25 10:23
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-4-4 08:58 | 显示全部楼层
自己开个贴问吧,我也不太懂。还有你这错误代码也没显示呀,建议单线程编辑下。放上设备型号
回复 支持 反对

使用道具 举报

发表于 2023-9-5 19:39 | 显示全部楼层
怎么解决的?
回复 支持 反对

使用道具 举报

发表于 2023-11-25 10:22 | 显示全部楼层
更换节点?什么节点
回复 支持 反对

使用道具 举报

发表于 2023-11-25 10:23 | 显示全部楼层
詹俊豪 发表于 2023-4-1 01:49
make[1] world
make[2] toolchain/compile
make[2] package/cleanup

我也遇到一样的问题了,怎么解决呀
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-20 13:21

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表