成功修复 T113 因为 make -j7 出现的编译错误
-
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-linux-gnu --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-python --disable-debug --without-debug --disable-resmgr --enable-aload --enable-mixer --enable-pcm --enable-rawmidi --enable-hwdep --enable-seq --enable-ucm --enable-topology --enable-alisp --with-versioned=no build_alias=x86_64-linux-gnu host_alias=arm-openwrt-linux target_alias=arm-openwrt-linux CC=arm-openwrt-linux-gnueabi-gcc CFLAGS=-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -fPIC -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -fpic LDFLAGS=-L/opt/D1/tina_d1_open_v2_debug6_t113/out/t113-nezha/staging_dir/target/usr/lib -L/opt/D1/tina_d1_open_v2_debug6_t113/out/t113-nezha/staging_dir/target/lib -L/opt/D1/tina_d1_open_v2_debug6_t113/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/usr/lib -L/opt/D1/tina_d1_open_v2_debug6_t113/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/lib -specs=/opt/D1/tina_d1_open_v2_debug6_t113/build/hardened-ld-pie.specs -znow -zrelro -ldl LIBS= CPPFLAGS=-I/opt/D1/tina_d1_open_v2_debug6_t113/out/t113-nezha/staging_dir/target/usr/include -I/opt/D1/tina_d1_open_v2_debug6_t113/out/t113-nezha/staging_dir/target/include -I/opt/D1/tina_d1_open_v2_debug6_t113/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/usr/include -I/opt/D1/tina_d1_open_v2_debug6_t113/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/include --no-create --no-recursion configure: WARNING: unrecognized options: --disable-nls, --disable-debug configure: loading site script /opt/D1/tina_d1_open_v2_debug6_t113/build/site/arm checking build system type... x86_64-pc-linux-gnu checking host system type... arm-openwrt-linux-gnu ./configure: line 2339: AM_INIT_AUTOMAKE: command not found ./configure: line 2341: syntax error near unexpected token `INSTALL_M4,' ./configure: line 2341: `AM_CONDITIONAL(INSTALL_M4, test -n "${ACLOCAL}")' Makefile:314: recipe for target 'config.status' failed make[3]: *** [config.status] Error 2 make[3]: Leaving directory '/opt/D1/tina_d1_open_v2_debug6_t113/out/t113-nezha/compile_dir/target/alsa-lib-1.1.4.1' Makefile:120: recipe for target '/opt/D1/tina_d1_open_v2_debug6_t113/out/t113-nezha/compile_dir/target/alsa-lib-1.1.4.1/.built' failed make[2]: *** [/opt/D1/tina_d1_open_v2_debug6_t113/out/t113-nezha/compile_dir/target/alsa-lib-1.1.4.1/.built] Error 2 make[2]: Leaving directory '/opt/D1/tina_d1_open_v2_debug6_t113/package/libs/alsa-lib' package/Makefile:192: recipe for target 'package/libs/alsa-lib/compile' failed make[1]: *** [package/libs/alsa-lib/compile] Error 2 make[1]: Leaving directory '/opt/D1/tina_d1_open_v2_debug6_t113' /opt/D1/tina_d1_open_v2_debug6_t113/build/toplevel.mk:304: recipe for target 'package/libs/alsa-lib/compile' failed make: *** [package/libs/alsa-lib/compile] Error 2 #### make failed to build some targets (5 seconds) ####
然后怎么 make 都是炸了,修复的办法:
rm out/t113-nezha/compile_dir/target/alsa-lib-1.1.4.1 -rf
make package/libs/alsa-lib/compile
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号