GCC 一直编译失败
反馈bug/问题模板,提建议请删除
1.关于你要提交的问题
Q:是否搜索了issue (使用 "x" 选择)
- [x] 没有类似的issue
2. 详细叙述
(1) 具体问题
A:尝试在固件编译过程中加入GCC工作,结果一直编译失败
(2) 路由器型号和固件版本
路由器型号:Intel(R) Atom(TM) CPU D2550
| 固件版本 | OpenWrt R22.4.1 / LuCI Master (git-22.121.65028-2a5da72) |
|---|---|
| 内核版本 | 5.15.36 |
(3) 详细日志
A: SHELL= flock /home/xxx/lede/tmp/.gcc-7.4.0.tar.xz.flock -c ' /home/xxx/lede/scripts/download.pl "/home/xxx/lede/dl" "gcc-7.4.0.tar.xz" "eddde28d04f334aec1604456e536416549e9b1aa137fc69204e65eb0c009fe51" "" "@GNU/gcc/gcc-7.4.0" ' rm -f /home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/.built touch /home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/.built_check export SHELL="bash"; CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0=gcc-7.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0=gcc-7.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS " LDFLAGS="-L/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/xxx/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro " make -C /home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0 DESTDIR="/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/ipkg-install" all install make[4]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0' make[5]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libiberty' make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libiberty/testsuite' make[7]: Nothing to be done for 'all'. make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libiberty/testsuite' make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libiberty' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/fixincludes' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/fixincludes' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp' make all-recursive make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp' Making all in tests make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests' Making all in . make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests' make[9]: Nothing to be done for 'all-am'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests' Making all in devel make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/devel' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/devel' Making all in mpn make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpn' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpn' Making all in mpz make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpz' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpz' Making all in mpq make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpq' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpq' Making all in mpf make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpf' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/mpf' Making all in rand make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/rand' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/rand' Making all in misc make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/misc' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/misc' Making all in cxx make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/cxx' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests/cxx' make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tests' Making all in mpn make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpn' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpn' Making all in mpz make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpz' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpz' Making all in mpq make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpq' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpq' Making all in mpf make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpf' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/mpf' Making all in printf make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/printf' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/printf' Making all in scanf make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/scanf' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/scanf' Making all in rand make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/rand' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/rand' Making all in cxx make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/cxx' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/cxx' Making all in demos make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos' Making all in calc make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos/calc' make all-am make[10]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos/calc' make[10]: Nothing to be done for 'all-am'. make[10]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos/calc' make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos/calc' Making all in expr make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos/expr' make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos/expr' make[9]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos' make[9]: Nothing to be done for 'all-am'. make[9]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos' make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/demos' Making all in tune make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tune' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/tune' Making all in doc make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/doc' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp/doc' make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp' make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp' make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp' make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr' Making all in doc make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/doc' make[7]: Nothing to be done for 'all'. make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/doc' Making all in src make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/src' make all-am make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/src' make[8]: Nothing to be done for 'all-am'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/src' make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/src' Making all in tests make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/tests' make[7]: Nothing to be done for 'all'. make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/tests' Making all in tune make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/tune' make[7]: Nothing to be done for 'all'. make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/tune' make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr' make[7]: Nothing to be done for 'all-am'. make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr' make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc' make all-recursive make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc' Making all in src make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc/src' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc/src' Making all in tests make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc/tests' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc/tests' Making all in doc make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc/doc' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc/doc' make[8]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc' make[8]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc' make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc' make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpc' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/lto-plugin' make all-am make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/lto-plugin' make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/lto-plugin' make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/lto-plugin' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/intl' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/intl' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/libiberty' make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/libiberty/testsuite' make[7]: Nothing to be done for 'all'. make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/libiberty/testsuite' make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/libiberty' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/fixincludes' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/fixincludes' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/libcpp' test -f config.h || (rm -f stamp-h1 && make stamp-h1) make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/build-x86_64-pc-linux-gnu/libcpp' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/zlib' true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2 -g -Os" "INSTALL=/home/xxx/lede/staging_dir/host/bin/install -c" "INSTALL_DATA=/home/xxx/lede/staging_dir/host/bin/install -c -m 644" "INSTALL_PROGRAM=/home/xxx/lede/staging_dir/host/bin/install -c" "INSTALL_SCRIPT=/home/xxx/lede/staging_dir/host/bin/install -c" "LDFLAGS=-lstdc++ " "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=-g -O2 -g -Os" "MAKE=make" "MAKEINFO=/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/info" "libdir=/usr/lib" "prefix=/usr" "tooldir=/usr/x86_64-openwrt-linux-musl" "AR=x86_64-openwrt-linux-musl-gcc-ar" "AS=x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0=gcc-7.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" "CC=x86_64-openwrt-linux-musl-gcc" "CXX=x86_64-openwrt-linux-musl-g++" "LD=x86_64-openwrt-linux-musl-ld" "LIBCFLAGS=" "NM=x86_64-openwrt-linux-musl-gcc-nm" "PICFLAG=" "RANLIB=x86_64-openwrt-linux-musl-gcc-ranlib" "DESTDIR=/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/ipkg-install" DO=all multi-do # make make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/zlib' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libbacktrace' make all-am make[7]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libbacktrace' true DO=all multi-do # make make[7]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libbacktrace' make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libbacktrace' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libcpp' test -f config.h || (rm -f stamp-h1 && make stamp-h1) make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libcpp' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libdecnumber' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/libdecnumber' make[6]: Entering directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gcc' x86_64-openwrt-linux-musl-g++ -fno-PIE -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gmp -I/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/gmp -I/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/mpfr/src -I/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/mpfr/src -I/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/mpc/src -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd -I../libdecnumber -I../.././gcc/../libbacktrace -o i386.o -MT i386.o -MMD -MP -MF ./.deps/i386.TPo ../.././gcc/config/i386/i386.c In file included from ../.././gcc/config/i386/i386.c:37: ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx) const': ../.././gcc/recog.h:300:55: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f1' {aka 'rtx_insn ()(rtx_def)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0) const { return ((f1)func) (a0); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx) const': ../.././gcc/recog.h:301:63: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f2' {aka 'rtx_insn ()(rtx_def, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1) const { return ((f2)func) (a0, a1); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx) const': ../.././gcc/recog.h:302:71: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f3' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2) const { return ((f3)func) (a0, a1, a2); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:303:79: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f4' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3) const { return ((f4)func) (a0, a1, a2, a3); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:304:87: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f5' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4) const { return ((f5)func) (a0, a1, a2, a3, a4); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:305:95: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f6' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5) const { return ((f6)func) (a0, a1, a2, a3, a4, a5); } ^~~~ In file included from ../.././gcc/config/i386/i386.c:37: ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:306:103: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f7' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6) const { return ((f7)func) (a0, a1, a2, a3, a4, a5, a6); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:307:111: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f8' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7) const { return ((f8)func) (a0, a1, a2, a3, a4, a5, a6, a7); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:308:119: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f9' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8) const { return ((f9)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:309:128: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f10' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9) const { return ((f10)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:310:137: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f11' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx_insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10) const { return ((f11)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); } ^~~~ ../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:311:146: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f12' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] insn * operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11) const { return ((f12)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); } ^~~~
../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:312:155: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f13' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] erator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12) const { return ((f13)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); } ^~~~
../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:313:164: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f14' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12, rtx a13) const { return ((f14)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13); } ^~~~
../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:314:173: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f15' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12, rtx a13, rtx a14) const { return ((f15)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); } ^~~~
../.././gcc/recog.h: In member function 'rtx_insn* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const': ../.././gcc/recog.h:315:182: warning: cast between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_insn* ()()'} to 'insn_gen_fn::f16' {aka 'rtx_insn ()(rtx_def, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)'} [-Wcast-function-type] rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12, rtx a13, rtx a14, rtx a15) const { return ((f16)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15); } ^~~~
In file included from ../.././gcc/system.h:691, from ../.././gcc/config/i386/i386.c:21: ../.././gcc/config/i386/i386.c: In function 'bool ix86_option_override_internal(bool, gcc_options*, gcc_options*)': ../.././gcc/../include/libiberty.h:722:38: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
define alloca(x) __builtin_alloca(x)
^
../.././gcc/../include/libiberty.h:727:47: note: in expansion of macro 'alloca'
char const libiberty_nptr = (char const) alloca (libiberty_len);
^~~~~~
../.././gcc/config/i386/i386.c:6197:17: note: in expansion of macro 'ASTRDUP'
char p = ASTRDUP (opts->x_ix86_recip_name);
^~~~~~~
../.././gcc/config/i386/i386.c: In function 'bool ix86_valid_target_attribute_inner_p(tree, char, gcc_options, gcc_options*, gcc_options*)':
../.././gcc/../include/libiberty.h:722:38: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
define alloca(x) __builtin_alloca(x)
^
../.././gcc/../include/libiberty.h:727:47: note: in expansion of macro 'alloca'
char const libiberty_nptr = (char const) alloca (libiberty_len);
^~~~~~
../.././gcc/config/i386/i386.c:6751:17: note: in expansion of macro 'ASTRDUP'
next_optstr = ASTRDUP (TREE_STRING_POINTER (args));
^~~~~~~
In file included from ../.././gcc/intl.h:22,
from ../.././gcc/config/i386/i386.c:86:
../.././gcc/config/i386/i386.c: In function 'int function_arg_advance_32(CUMULATIVE_ARGS, machine_mode, const_tree, long int, long int)':
../.././gcc/config/i386/i386.c:9625:18: error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive]
bool error_p = NULL;
^~~~
../.././gcc/config/i386/i386.c: In function 'rtx_def ix86_expand_special_args_builtin(const builtin_description*, tree, rtx)':
../.././gcc/config/i386/i386.c:37227:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
switch (icode)
^~~~~~
../.././gcc/config/i386/i386.c:37254:5: note: here
case V64QI_FTYPE_PCCHAR_V64QI_UDI:
^~~~
make[6]: *** [Makefile:2217: i386.o] Error 1
make[6]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/host-x86_64-openwrt-linux-musl/gcc'
make[5]: *** [Makefile:4236: all-gcc] Error 2
make[5]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0'
make[4]: *** [Makefile:901: all] Error 2
make[4]: Leaving directory '/home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0'
make[3]: *** [Makefile:226: /home/xxx/lede/build_dir/target-x86_64_musl/gcc-7.4.0/.built] Error 2
make[3]: Leaving directory '/home/xxx/lede/feeds/packages/devel/gcc'
time: package/feeds/packages/gcc/compile#3.57#0.73#4.08
ERROR: package/feeds/packages/gcc failed to build.
make[2]: *** [package/Makefile:116: package/feeds/packages/gcc/compile] Error 1
make[2]: Leaving directory '/home/xxx/lede'
make[1]: *** [package/Makefile:110: /home/xxx/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/xxx/lede'
make: *** [/home/xxx/lede/include/toplevel.mk:230: world] Error 2
xxx@ubuntuserver:~/lede$
自己组合的?那只能自己解决
自己组合的?那只能自己解决
emm,的确是自己组合的;但是在首次固件编译成功并且成功运行之后,再尝试勾选 development 里面的gcc进行编译,就会出现编译失败的情况。
尝试勾选该下面,依旧失败,实在是能力有限 不知道问题在哪,所以不知道有没有其它人遇见此情况,看看有没有解决方法、非常感激、谢谢🙏

而之所以要编译openwrt里面装gcc,是因为要在openwrt的平台里面开发测试 golang 应用,而其又依赖gcc,所以 ...
几个月前曾经尝试过同种做法,但之前并未在gcc上面发现任何问题,记忆有点模糊,忘记当时是怎么解决gcc问题的。
默认值完事大吉,又不是十五代cpu
默认值完事大吉,又不是十五代cpu
emm,默认出来的固件是不带gcc的 😰
此问题使用 https://github.com/openwrt/openwrt 此刻最新的编译也依然存在 报错似乎也相同
此问题使用 https://github.com/openwrt/openwrt 此刻最新的编译也依然存在 报错似乎也相同
你都是搞开发的人了,这个简单错误不能处理?算了等下我给你处理一下
此问题使用 https://github.com/openwrt/openwrt 此刻最新的编译也依然存在 报错似乎也相同
你都是搞开发的人了,这个简单错误不能处理?算了等下我给你处理一下
哈哈、术业有专攻,我才疏学浅正在努力学习,行 感谢前辈的帮助~
此问题使用 https://github.com/openwrt/openwrt 此刻最新的编译也依然存在 报错似乎也相同
你都是搞开发的人了,这个简单错误不能处理?算了等下我给你处理一下
哈哈、术业有专攻,我才疏学浅正在努力学习,行 感谢前辈的帮助~
修好 了 看我仓库 packages,亲测没问题
此问题使用 https://github.com/openwrt/openwrt 此刻最新的编译也依然存在 报错似乎也相同
你都是搞开发的人了,这个简单错误不能处理?算了等下我给你处理一下
哈哈、术业有专攻,我才疏学浅正在努力学习,行 感谢前辈的帮助~
修好 了 看我仓库 packages,亲测没问题
非常感谢前辈,使用您的补丁之后,已经可以成功编译,万分感激、谢谢 谢谢🙏。
借此记录另外一个问题:
golang 编译过程中,cgo 可能会丢出以下报错:
# runtime/cgo
/usr/bin/ld: cannot find -lpthread
collect2: error: ld returned 1 exit status
解决方法: ar -rc /usr/lib/libpthread.a ,来源:https://forum.openwrt.org/t/usr-bin-ld-cannot-find-lpthread/18404/5
此问题使用 https://github.com/openwrt/openwrt 此刻最新的编译也依然存在 报错似乎也相同
你都是搞开发的人了,这个简单错误不能处理?算了等下我给你处理一下
哈哈、术业有专攻,我才疏学浅正在努力学习,行 感谢前辈的帮助~
修好 了 看我仓库 packages,亲测没问题
非常感谢前辈,使用您的补丁之后,已经可以成功编译,万分感激、谢谢 谢谢🙏。
借此记录另外一个问题:
golang 编译过程中,cgo 可能会丢出以下报错:
# runtime/cgo /usr/bin/ld: cannot find -lpthread collect2: error: ld returned 1 exit status解决方法:
ar -rc /usr/lib/libpthread.a,来源:https://forum.openwrt.org/t/usr-bin-ld-cannot-find-lpthread/18404/5
老哥您好,借 issue 请教一下您 gcc 编译报错后的解决方法是?年代久远,没能找到上面那个帮助您的老哥解决问题的 repo 了,谢谢
https://github.com/openwrt/packages/issues/18529
此问题使用 https://github.com/openwrt/openwrt 此刻最新的编译也依然存在 报错似乎也相同
你都是搞开发的人了,这个简单错误不能处理?算了等下我给你处理一下
哈哈、术业有专攻,我才疏学浅正在努力学习,行 感谢前辈的帮助~
修好 了 看我仓库 packages,亲测没问题
这个补丁还在吗,我刚好需要