Try to build OpenWRT and got the error2 on staging dir

SHELL= flock /home/alphion/openWRT/openwrt-21.02.1_dev/tmp/.root-copy.flock -c 'cp -fpR /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/iptables-1.8.7/.pkgdir/libip4tc/. /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/'
touch /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp/.libip4tc_installed
echo "libip4tc" >> /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/iptables.default.install
mkdir -p /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp
echo '2' | cmp -s - /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/libip6tc.version || { echo '2' > /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/libip6tc.version; }
SHELL= flock /home/alphion/openWRT/openwrt-21.02.1_dev/tmp/.root-copy.flock -c 'cp -fpR /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/iptables-1.8.7/.pkgdir/libip6tc/. /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/'
touch /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp/.libip6tc_installed
echo "libip6tc" >> /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/iptables.default.install
mkdir -p /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp
SHELL= flock /home/alphion/openWRT/openwrt-21.02.1_dev/tmp/.root-copy.flock -c 'cp -fpR /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/iptables-1.8.7/.pkgdir/iptables/. /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/'
touch /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp/.iptables_installed
echo "iptables" >> /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/iptables.default.install
mkdir -p /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp
SHELL= flock /home/alphion/openWRT/openwrt-21.02.1_dev/tmp/.root-copy.flock -c 'cp -fpR /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/iptables-1.8.7/.pkgdir/iptables-mod-conntrack-extra/. /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/'
touch /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp/.iptables-mod-conntrack-extra_installed
echo "iptables-mod-conntrack-extra" >> /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/iptables.default.install
mkdir -p /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp
SHELL= flock /home/alphion/openWRT/openwrt-21.02.1_dev/tmp/.root-copy.flock -c 'cp -fpR /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/iptables-1.8.7/.pkgdir/iptables-mod-ipopt/. /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/'
touch /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp/.iptables-mod-ipopt_installed
echo "iptables-mod-ipopt" >> /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/iptables.default.install
mkdir -p /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp
SHELL= flock /home/alphion/openWRT/openwrt-21.02.1_dev/tmp/.root-copy.flock -c 'cp -fpR /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/iptables-1.8.7/.pkgdir/ip6tables/. /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/'
touch /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/root-airoha/stamp/.ip6tables_installed
echo "ip6tables" >> /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/pkginfo/iptables.default.install
make[3]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev/package/network/utils/iptables'
time: package/network/utils/iptables/compile#46.37#8.69#60.64
make[2]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev'
make[1]: *** [package/Makefile:108: /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev'
make: *** [/home/alphion/openWRT/openwrt-21.02.1_dev/include/toplevel.mk:230: world] Error 2
alphion@QAbundleserver:~/openWRT/openwrt-21.02.1_dev$ vi package/Makefile +108
alphion@QAbundleserver:~/openWRT/openwrt-21.02.1_dev$

wow,

that's pretty unreadable, use the </> button to wrap your text.

also, there's no error message, except the message saying there's an error, compile using -j1.

Please anybody help me to resove this issue

My compile cmd is
make MSDK=1 V=s -j4

I'm telling you what it's supposed to be, what you used previously is irrelevant, as long as it wasn't already the value you were asked to use.

Yes... I am trying this
make MSDK=1 V=s -j1

Hi All,
After I have tried this following command.
make MSDK=1 V=s -j1

Got the following error:

make[5]: Entering directory /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/src/ATF/arm-trusted-firmware-2.3' HOSTCC src/cert.c In file included from src/cert.c:7: /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory 27 | #include <bits/libc-header-start.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[6]: *** [src/cert.o] Error 1 make[5]: *** [tools/cert_create/cert_create] Error 2 make[5]: Leaving directory /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/src/ATF/arm-trusted-firmware-2.3'
make[4]: *** [make_bootbase:134: bootbase] Error 2
make[4]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/src'
make[3]: *** [Makefile:170: /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/.built] Error 2
make[3]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev/feeds/airoha/package/airoha/bootloader'
time: package/feeds/airoha/bootloader/compile#73.40#32.10#103.41
ERROR: package/feeds/airoha/bootloader failed to build.
make[2]: *** [package/Makefile:114: package/feeds/airoha/bootloader/compile] Error 1
make[2]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev'
make[1]: *** [package/Makefile:108: /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev'
make: *** [/home/alphion/openWRT/openwrt-21.02.1_dev/include/toplevel.mk:230: world] Error 2
alphion@QAbundleserver:~/openWRT/openwrt-21.02.1_dev$

still failing to use the </> button located here ^^^. I see ...

at least you know what the problem is.

Hi ,
Couldnt understand .. anything.. i did wrong here.. can you tell me.. anything missed to post here..

Thanks

image

doesn't matter, since you now know what your issue is.

/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory

For this any package need to be installed or update in my build environment.

DECRYPTION_SUPPORT is an experimental feature
make[5]: Entering directory `/home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/src/ATF/arm-trusted-firmware-2.3'
  HOSTCC  src/cert.c
In file included from src/cert.c:7:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
   27 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[6]: *** [src/cert.o] Error 1
make[5]: *** [tools/cert_create/cert_create] Error 2
make[5]: Leaving directory `/home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/src/ATF/arm-trusted-firmware-2.3'
make[4]: *** [make_bootbase:134: bootbase] Error 2
make[4]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/src'
make[3]: *** [Makefile:170: /home/alphion/openWRT/openwrt-21.02.1_dev/build_dir/target-arm_cortex-a7_glibc_eabi/linux-airoha_en7523/tcboot/.built] Error 2
make[3]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev/feeds/airoha/package/airoha/bootloader'
time: package/feeds/airoha/bootloader/compile#73.40#32.10#103.41
    ERROR: package/feeds/airoha/bootloader failed to build.
make[2]: *** [package/Makefile:114: package/feeds/airoha/bootloader/compile] Error 1
make[2]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev'
make[1]: *** [package/Makefile:108: /home/alphion/openWRT/openwrt-21.02.1_dev/staging_dir/target-arm_cortex-a7_glibc_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/alphion/openWRT/openwrt-21.02.1_dev'
make: *** [/home/alphion/openWRT/openwrt-21.02.1_dev/include/toplevel.mk:230: world] Error 2
alphion@QAbundleserver:~/openWRT/openwrt-21.02.1_dev$

Any package need to installed in my build environment.?
Thanks

probably, yes.

but you should ask the people providing you with the SDK...

sudo apt-get install gcc-multilib

It was built successfully.
Thanks

Yes.. got it thanks