10457 questions

12466 answers

19390 comments

21901 members

0 votes
50 views 1 comments
by

Hi, I have extracted the version 2.06.1 SDK into a folder and ran make -j4 to try and compile the whole firmware rather than a single package, but it keeps failing to complete the command.

I am running Ubuntu 20.04 and have run the command to install the dependencies for version 7 found in the guide here. I assume this is the problem? I'd appreciate it if anyone could let me know what dependencies I need to install for version 2.06.1 rather than version7? 

Thanks in advance,

Charlie

This was the output of make -j4 in case it might be something else causing the problem:

WARNING: Makefile 'package/configdb/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/diag/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/dsutils/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/mcm-core/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/network/services/net-snmp/Makefile' has a dependency on 'libpci', which does not exist
WARNING: Makefile 'package/qmi-client-helper/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/network/utils/qmicli/Makefile' has a dependency on 'libmbim', which does not exist
WARNING: Makefile 'package/qmuxd/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/xmllib/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
make[1]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
make compile-install
make[2]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
make[3]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
make[3]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
+ mkdir -p /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi
+ cd /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi
+ mkdir -p bin lib include stamp
mkdir -p /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp
touch /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/.prepared
make[4]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/toolchain/gdb'
make[4]: Nothing to be done for 'compile'.
make[4]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/toolchain/gdb'
time: toolchain/gdb/compile#0.00#0.00#0.03
make[4]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/toolchain/binutils'
make --jobserver-auth=3,4  -C /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1 all
make[5]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1'
rm -rf /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mdm9x07
make[3]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
make[6]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1'
make[4]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/toolchain/fortify-headers'
make[4]: Nothing to be done for 'compile'.
make[4]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/toolchain/fortify-headers'
time: toolchain/fortify-headers/compile#0.01#0.01#0.03
make[7]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/libiberty'
make[7]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/intl'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/intl'
make[8]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/libiberty/testsuite'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/libiberty/testsuite'
make[7]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/libiberty'
make[6]: Nothing to be done for 'all-target'.
make[7]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/zlib'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/zlib'
make[7]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/etc'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/etc'
make[7]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/bfd'
Making info in doc
make[8]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/bfd/doc'
make[8]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/bfd/doc'
Making info in po
make[8]: Entering directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/bfd/po'
make[8]: *** No rule to make target 'info'.  Stop.
make[8]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/bfd/po'
make[7]: *** [Makefile:1636: info-recursive] Error 1
make[7]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/bfd'
make[6]: *** [Makefile:2691: all-bfd] Error 2
make[6]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1'
make[5]: *** [Makefile:850: all] Error 2
make[5]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1'
make[4]: *** [Makefile:103: /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/binutils-2.31.1/.built] Error 2
make[4]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/toolchain/binutils'
time: toolchain/binutils/compile#0.78#0.46#1.34
make[3]: *** [toolchain/Makefile:100: toolchain/binutils/compile] Error 2
make[3]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
make[2]: *** [toolchain/Makefile:96: /home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/stamp/.toolchain_compile] Error 2
make[2]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
make[1]: *** [Makefile:102: world] Error 2
make[1]: Leaving directory '/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64'
make: *** [/home/charlie/Documents/RUT_OS/openwrt-gpl-mdm9x07.Linux-x86_64/include/toplevel.mk:231: world] Error 2

1 Answer

0 votes
by

Hello,

Try following the instructions for legacy WebUI SDK provided in this link, and, if possible, perform these instructions with Ubuntu 18.04 LTS version. The firmware can also be compiled in virtual machine or windows PC with Ubuntu installed.

Best regards,

Žygimantas

by
Hi Žygimantas,

Thanks for the help. I installed a virtual machine running Ubuntu 18.04 and then followed the instructions in the link you provided but the build still failed. It seems to be due to a dependency called common.

Here is the output from the build process:

make -j2 V=s
WARNING: Makefile 'package/configdb/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/diag/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/dsutils/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/mcm-core/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/network/services/net-snmp/Makefile' has a dependency on 'libpci', which does not exist
WARNING: Makefile 'package/qmi-client-helper/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/network/utils/qmicli/Makefile' has a dependency on 'libmbim', which does not exist
WARNING: Makefile 'package/qmuxd/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/xmllib/Makefile' has a build dependency on 'common', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
WARNING: Makefile 'package/feeds/packages/xz/Makefile' has a dependency on 'bash', which does not exist
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
make compile-install
make[2]: Entering directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
make[3]: Entering directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
make[3]: Entering directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
+ mkdir -p /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi
+ cd /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi
+ mkdir -p bin lib include stamp
mkdir -p /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp
touch /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/.prepared
+ mkdir -p /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/host
+ cd /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/host
+ mkdir -p bin lib include stamp
mkdir -p /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/host/stamp /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/host/include/sys
install -m0644 /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/tools/include/*.h /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/host/include/
install -m0644 /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/tools/include/sys/*.h /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/host/include/sys/
ln -sf lib /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/host/lib64
touch /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/host/.prepared
make[4]: Entering directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/tools/flock'
touch: cannot touch '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/host/flock/.prepared8a39d031cbb2a2262d4c98af1e505866_6664517399ebbbc92a37c5bb081b5c53_check': Permission denied
touch: cannot touch '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/host/flock/.prepared8a39d031cbb2a2262d4c98af1e505866_6664517399ebbbc92a37c5bb081b5c53_check': Permission denied
Makefile:25: recipe for target '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/host/flock/.prepared8a39d031cbb2a2262d4c98af1e505866_6664517399ebbbc92a37c5bb081b5c53_check' failed
make[4]: *** [/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/build_dir/host/flock/.prepared8a39d031cbb2a2262d4c98af1e505866_6664517399ebbbc92a37c5bb081b5c53_check] Error 1
make[4]: Leaving directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/tools/flock'
time: tools/flock/compile#0.04#0.02#0.15
tools/Makefile:158: recipe for target 'tools/flock/compile' failed
make[3]: *** [tools/flock/compile] Error 2
make[3]: Leaving directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
tools/Makefile:156: recipe for target '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.tools_compile_yynyynnyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyyynyynynnyyynnyyy' failed
make[2]: *** [/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.tools_compile_yynyynnyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyyynyynynnyyynnyyy] Error 2
make[2]: *** Waiting for unfinished jobs....
rm -rf /home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mdm9x07
make[3]: Leaving directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
make[2]: Leaving directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
Makefile:102: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64'
Build failed - please re-run with -j1 to see the real error message
/home/charlie/openwrt-gpl-mdm9x07.Linux-x86_64/include/toplevel.mk:229: recipe for target 'world' failed
make: *** [world] Error 1