nodejs-openwrt
nodejs-openwrt copied to clipboard
Cannot compiler for TP-LINK Archer C7
root@OpenWrt:~# cat /proc/cpuinfo system type : Qualcomm Atheros QCA9558 ver 1 rev 0 machine : TP-LINK Archer C7 processor : 0 cpu model : MIPS 74Kc V5.0 BogoMIPS : 358.80 wait instruction : yes microsecond timers : yes tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : mips16 dsp dsp2 shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available VCEI exceptions : not available
$make package/nodejs/compile V=99
make[1]: Entering directory /home/xdna/tmp2/openwrt' make[2]: Entering directory
/home/xdna/tmp2/openwrt/package/libs/toolchain'
if [ -f /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install.clean ]; then rm -f /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install
if [ -f /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install.clean ]; then rm -f /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/pkginfo/toolchain.default.install
make[2]: Leaving directory /home/xdna/tmp2/openwrt/package/libs/toolchain' make[2]: Entering directory
/home/xdna/tmp2/openwrt/package/utils/nodejs'
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/usr/include -I/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/include -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/usr/include -I/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/include -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/include " LDFLAGS="-L/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/usr/lib -L/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/lib -L/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/usr/lib -L/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/lib -znow -zrelro " make -j1 -C /home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" ;
make[3]: Entering directory /home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6' make -C out BUILDTYPE=Release V=99 make[4]: Entering directory
/home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/out'
mips-openwrt-linux-musl-g++ '-DV8_TARGET_ARCH_MIPS' '-DCAN_USE_FPU_INSTRUCTIONS' '-D__mips_hard_float=1' '-DENABLE_DISASSEMBLER' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' '-D_MIPS_ARCH_MIPS32R2' '-DFPU_MODE_FP32' -I../deps/v8 -pthread -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -EB -Wno-error=array-bounds -mhard-float -mips32r2 -Wa,-mips32r2 -mfp32 -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/out/Release/.deps//home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/out/Release/obj.target/v8_base/deps/v8/src/allocation-tracker.o.d.raw -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/usr/include -I/home/xdna/tmp2/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/include -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/xdna/tmp2/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/include -c -o /home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/out/Release/obj.target/v8_base/deps/v8/src/allocation-tracker.o ../deps/v8/src/allocation-tracker.cc
{standard input}: Assembler messages:
{standard input}:405: Error: unrecognized opcode sync' {standard input}:421: Error: unrecognized opcode
sync'
{standard input}:446: Error: unrecognized opcode sync' make[4]: *** [/home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/out/Release/obj.target/v8_base/deps/v8/src/allocation-tracker.o] Error 1 make[4]: Leaving directory
/home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/out'
make[3]: *** [node] Error 2
make[3]: Leaving directory /home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6' make[2]: *** [/home/xdna/tmp2/openwrt/build_dir/target-mips_34kc_musl-1.1.11/node-v4.2.6/.built] Error 2 make[2]: Leaving directory
/home/xdna/tmp2/openwrt/package/utils/nodejs'
make[1]: *** [package/utils/nodejs/compile] Error 2
make[1]: Leaving directory `/home/xdna/tmp2/openwrt'
make: *** [package/nodejs/compile] Error 2
how do i fix it ?