编译出错



  • make[3]: Entering directory /home/fly/workSpace/MTK/openwrt_widora/tools/sstrip' make[3]: Leaving directory /home/fly/workSpace/MTK/openwrt_widora/tools/sstrip'
    make[3]: Entering directory /home/fly/workSpace/MTK/openwrt_widora/tools/make-ext4fs' make -C /home/fly/workSpace/MTK/openwrt_widora/build_dir/host/make-ext4fs-2015-05-01 make_ext4fs make[4]: Entering directory /home/fly/workSpace/MTK/openwrt_widora/build_dir/host/make-ext4fs-2015-05-01'
    cc -o make_ext4fs allocate.o canned_fs_config.o contents.o crc16.o ext4fixup.o ext4_sb.o ext4_utils.o extent.o indirect.o make_ext4fs_main.o make_ext4fs.o sha1.o uuid.o wipe.o libsparse/libsparse.a -lz
    /usr/bin/ld: allocate.o: Relocations in generic ELF (EM: 😎
    /usr/bin/ld: allocate.o: Relocations in generic ELF (EM: 😎
    allocate.o: error adding symbols: File in wrong format
    collect2: error: ld returned 1 exit status
    make[4]: *** [make_ext4fs] Error 1
    make[4]: Leaving directory /home/fly/workSpace/MTK/openwrt_widora/build_dir/host/make-ext4fs-2015-05-01' make[3]: *** [/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/make-ext4fs-2015-05-01/.built] Error 2 make[3]: Leaving directory /home/fly/workSpace/MTK/openwrt_widora/tools/make-ext4fs'
    make[2]: *** [tools/make-ext4fs/compile] Error 2
    make[2]: Leaving directory /home/fly/workSpace/MTK/openwrt_widora' make[1]: *** [/home/fly/workSpace/MTK/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy] Error 2 make[1]: Leaving directory /home/fly/workSpace/MTK/openwrt_widora'
    make: *** [world] 错误 2



  • 18.04?



  • 什么??



  • @feige 你的操作系统是什么版本



  • Linux version 4.4.0-31-generic (buildd@lgw01-43) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016



  • 建议使用ubuntu16.04 64位,并将wiki中提到的依赖包全部安装完后再编译,一般不会出什么问题



  • libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/liblzma/api -I../../src/liblzma/common -I../../src/liblzma/check -I../../src/liblzma/lz -I../../src/liblzma/rangecoder -I../../src/liblzma/lzma -I../../src/liblzma/delta -I../../src/liblzma/simple -I../../src/common -DTUKLIB_SYMBOL_PREFIX=lzma_ -I/home/fly/workSpace/MTK/openwrt_widora/staging_dir/host/include -I/home/fly/workSpace/MTK/openwrt_widora/staging_dir/host/usr/include -O2 -I/home/fly/workSpace/MTK/openwrt_widora/staging_dir/host/include -I/home/fly/workSpace/MTK/openwrt_widora/staging_dir/host/usr/include -MT liblzma_la-crc32_x86.lo -MD -MP -MF .deps/liblzma_la-crc32_x86.Tpo -c check/crc32_x86.S -fPIC -DPIC -o .libs/liblzma_la-crc32_x86.o
    check/crc32_x86.S: Assembler messages:
    check/crc32_x86.S:96: Error: invalid instruction suffix for push' check/crc32_x86.S:97: Error: invalid instruction suffix for push'
    check/crc32_x86.S:98: Error: invalid instruction suffix for push' check/crc32_x86.S:99: Error: invalid instruction suffix for push'
    check/crc32_x86.S:132: Error: relocated field and relocation type differ in signedness
    check/crc32_x86.S:265: Error: invalid instruction suffix for pop' check/crc32_x86.S:266: Error: invalid instruction suffix for pop'
    check/crc32_x86.S:267: Error: invalid instruction suffix for pop' check/crc32_x86.S:268: Error: invalid instruction suffix for pop'
    Makefile:936: recipe for target 'liblzma_la-crc32_x86.lo' failed
    make[8]: *** [liblzma_la-crc32_x86.lo] Error 1
    make[8]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/xz-5.2.1/src/liblzma'
    Makefile:1550: recipe for target 'all-recursive' failed
    make[7]: *** [all-recursive] Error 1
    make[7]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/xz-5.2.1/src/liblzma'
    Makefile:419: recipe for target 'all-recursive' failed
    make[6]: *** [all-recursive] Error 1
    make[6]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/xz-5.2.1/src'
    Makefile:612: recipe for target 'all-recursive' failed
    make[5]: *** [all-recursive] Error 1
    make[5]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/xz-5.2.1'
    Makefile:479: recipe for target 'all' failed
    make[4]: *** [all] Error 2
    make[4]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/xz-5.2.1'
    Makefile:24: recipe for target '/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/xz-5.2.1/.built' failed
    make[3]: *** [/home/fly/workSpace/MTK/openwrt_widora/build_dir/host/xz-5.2.1/.built] Error 2
    make[3]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora/tools/xz'
    tools/Makefile:122: recipe for target 'tools/xz/compile' failed
    make[2]: *** [tools/xz/compile] Error 2
    make[2]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora'
    tools/Makefile:121: recipe for target '/home/fly/workSpace/MTK/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy' failed
    make[1]: *** [/home/fly/workSpace/MTK/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy] Error 2
    make[1]: Leaving directory '/home/fly/workSpace/MTK/openwrt_widora'
    /home/fly/workSpace/MTK/openwrt_widora/include/toplevel.mk:181: recipe for target 'world' failed
    make: *** [world] Error 2


Log in to reply