[OpenWrt/LEDE] fatal error: asm/unistd.h: No such file or directory

This topic contains 0 replies, has 1 voice, and was last updated by  technote 2017-12-21 13:44.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #239

    technote
    Keymaster

    빌드하다 보면 아래와 같은 No suck file or directory error가 발생하는 경우가 있다.

    make -j5 를 통해서 빌드하였는데 이럴경우 5개의 job이 병행하여빌드를 하게 되는데 일부 job이 늦을 경우 발생할 수 있다.

    아래와 같은 문제가 발생하였을 때는 그냥 make로 빌드해 보자.

    tor -fPIC -I. -I. -I../.././gcc -I/home/user/lede/build_dir/toolchain-mips_24kc_ gcc-5.4.0_musl/gcc-5.4.0/libgcc -I/home/user/lede/build_dir/toolchain-mips_24kc_gc c-5.4.0_musl/gcc-5.4.0/libgcc/. -I/home/user/lede/build_dir/toolchain-mips_24kc_gc c-5.4.0_musl/gcc-5.4.0/libgcc/../gcc -I/home/user/lede/build_dir/toolchain-mips_24 kc_gcc-5.4.0_musl/gcc-5.4.0/libgcc/../include -DHAVE_CC_TLS -o unwind-c.o -MT un wind-c.o -MD -MP -MF unwind-c.dep -fexceptions -c /home/user/lede/build_dir/toolch ain-mips_24kc_gcc-5.4.0_musl/gcc-5.4.0/libgcc/unwind-c.c -fvisibility=hidden -DHID E_EXPORTS In file included from /home/user/lede/build_dir/toolchain-mips_24kc_gcc-5.4.0_musl /gcc-5.4.0/libgcc/unwind-dw2.c:401:0: ./md-unwind-support.h:30:24: fatal error: asm/unistd.h: No such file or directory compilation terminated. make[6]: *** [unwind-dw2.o] Error 1 make[6]: *** Waiting for unfinished jobs.... cc1: note: someone does not honour COPTS correctly, passed 2 times cc1: note: someone does not honour COPTS correctly, passed 2 times make[6]: Leaving directory ' /home/user/lede/build_dir/toolchain-mips_24kc_gcc-5.4. 0_musl/gcc-5.4.0-final/mips-openwrt-linux-musl/libgcc' make[5]: *** [all-target-libgcc] Error 2 make[5]: Leaving directory '/home/user/lede/build_dir/toolchain-mips_24kc_gcc-5.4. 0_musl/gcc-5.4.0-final' make[4]: *** [all] Error 2 make[4]: Leaving directory '/home/user/lede/build_dir/toolchain-mips_24kc_gcc-5.4. 0_musl/gcc-5.4.0-final' make[3]: *** [/home/user/lede/build_dir/toolchain-mips_24kc_gcc-5.4.0_musl/gcc-5.4 .0-final/.built] Error 2 make[3]: Leaving directory '/home/user/lede/toolchain/gcc/final' make[2]: *** [toolchain/gcc/final/compile] Error 2 make[2]: *** Waiting for unfinished jobs.... 73 83.3M 73 60.9M 0 0 51701 0 0:28:10 0:20:35 0:07:35 65733 73 83.3M 73 61.0M 0 0 51708 0 0:28:09 0:20:36 0:07:33 54828^Cma ke[3]: *** wait: No child processes. Stop. make[3]: *** Waiting for unfinished jobs.... make[3]: *** wait: No child processes. Stop. make[2]: *** [toolchain/kernel-headers/compile] Error 2 make[1]: *** [/home/user/lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/stamp /.toolchain_compile] Interrupt make: *** [world] Interrupt

    • This topic was modified 11 months ago by  technote.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.