i have a error when compiling cups for lede
pi@DESKTOP-05E7INQ:~/source$ make[3] -C tools/squashfs4 compile
make[3]: command not found
pi@DESKTOP-05E7INQ:~/source$ make[2] toolchain/compile
make[2]: command not found
pi@DESKTOP-05E7INQ:~/source$ make -j1 v=s
make[1] world
make[2] target/compile
make[3] -C target/linux compile
make[2] diffconfig
make[2] package/cleanup
make[2] package/compile
make[3] -C package/libs/libjson-c host-compile
make[3] -C package/libs/libubox host-compile
make[3] -C package/system/opkg host-compile
make[3] -C package/libs/toolchain compile
make[3] -C package/libs/libnl-tiny compile
make[3] -C package/libs/libjson-c compile
make[3] -C package/utils/lua compile
make[3] -C package/libs/libubox compile
make[3] -C package/system/ubus compile
make[3] -C package/system/uci compile
make[3] -C package/network/config/netifd compile
make[3] -C package/firmware/linux-firmware compile
make[3] -C package/firmware/prism54-firmware compile
make[3] -C package/kernel/linux compile
make[3] -C package/system/ubox compile
make[3] -C package/libs/ncurses host-compile
make[3] -C package/libs/zlib compile
make[3] -C package/libs/ncurses compile
make[3] -C package/utils/util-linux compile
make[3] -C package/system/fstools compile
make[3] -C package/system/fwtool host-compile
make[3] -C package/system/fwtool compile
make[3] -C package/system/procd compile
make[3] -C package/system/usign host-compile
make[3] -C package/system/ucert host-compile
make[3] -C package/utils/jsonfilter compile
make[3] -C package/system/openwrt-keyring compile
make[3] -C package/system/usign compile
make[3] -C package/base-files compile
make[3] -C package/libs/libtool compile
make[3] -C feeds/packages/libs/libjpeg compile
make[3] -C feeds/packages/libs/libpng compile
make[3] -C package/libs/libusb compile
make[3] -C feeds/packages/libs/libcups compile
make[3] -C feeds/cups/cups compile
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/home/pi/source/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 1
pi@DESKTOP-05E7INQ:~/source$ recipe for target 'world' failed
jeff
October 8, 2018, 3:30pm
2
Rohitdk1998:
make[3]: command not found
(See next post)
Have you installed the build prerequisites?
It's V=s
to get verbosity in the build (upper case).
Are you typing "make[3]
" and "make[2]
" into the command line? That should be just "make
".
Please solve this
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/home/pi/source/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 1
pi@DESKTOP-05E7INQ:~/source$ recipe for target 'world' failed
I think the error message gives a clear instruction of what to execute now to see the cause of the error: "make -j1 V=s
".
I already try this but same error came.
Are you sure you typed it correctly? Because "V=s
" should produce lots of messages that you have not posted here.
1 Like
Per
October 9, 2018, 7:30am
8
As jeff pointed out, you used a lower case V.
mbo2o
October 10, 2018, 5:59am
10
Obviously, but the extra information (due to using V=s) in the lines before the error is what you need to read and troubleshoot
EDIT
using V=s is not going to magically fix the error, it is used to get more verbose output to help with troubleshooting
cp -fpR "/home/pi/source/target/linux/generic/files"/. /home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./arch/mips/fw/myloader/Makefile': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./arch/mips/fw/myloader/myloader.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/Kconfig': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/Makefile': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/mtdsplit.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/mtdsplit.h': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/mtdsplit_eva.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/mtdsplit_seama.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/mtdsplit_trx.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/mtdsplit/mtdsplit_uimage.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/mtd/myloader.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/adm6996.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/b53/Kconfig': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/b53/Makefile': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/b53/b53_phy_fixup.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/b53/b53_priv.h': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/b53/b53_regs.h': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/b53/b53_spi.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/b53/b53_srab.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/mvsw61xx.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/rtl8366_smi.h': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./drivers/net/phy/rtl8366s.c': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./include/linux/myloader.h': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./include/linux/platform_data/adm6996-gpio.h': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./include/linux/routerboot.h': File exists
cp: cannot create regular file '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/./include/uapi/linux/switch.h': File exists
Makefile:28: recipe for target '/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/.prepared_d9e30a57388032edb7fa950f7df2fed9' failed
make[4]: *** [/home/pi/source/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.75/.prepared_d9e30a57388032edb7fa950f7df2fed9] Error 1
make[4]: Leaving directory '/home/pi/source/target/linux/brcm63xx'
Per
October 11, 2018, 3:00pm
12
Which OS are you using? Can you put the whole log as a gist somewhere, or at least include more of the lines above? I think this error is a result of it doing something wrong earlier in the process. Also, please show the exact commands you used to set up the build environment and run make.
zma.a -lpthread -lm -lz -o unsquashfs
make[4]: Leaving directory '/home/pi/source-17.01.4/build_dir/host/squashfs4.2/squashfs-tools'
touch /home/pi/source-17.01.4/build_dir/host/squashfs4.2/.built
make[3]: Leaving directory '/home/pi/source-17.01.4/tools/squashfs4'
make[3]: Entering directory '/home/pi/source-17.01.4/tools/squashfs4'
install -m0755 /home/pi/source-17.01.4/build_dir/host/squashfs4.2/squashfs-tools/mksquashfs /home/pi/source-17.01.4/staging_dir/host/bin/mksquashfs4
install -m0755 /home/pi/source-17.01.4/build_dir/host/squashfs4.2/squashfs-tools/unsquashfs /home/pi/source-17.01.4/staging_dir/host/bin/unsquashfs4
mkdir -p /home/pi/source-17.01.4/staging_dir/host/stamp
touch /home/pi/source-17.01.4/build_dir/host/squashfs4.2/.built
touch /home/pi/source-17.01.4/staging_dir/host/stamp/.squashfs4_installed
make[3]: Leaving directory '/home/pi/source-17.01.4/tools/squashfs4'
make[2]: Leaving directory '/home/pi/source-17.01.4'
make[2]: Entering directory '/home/pi/source-17.01.4'
/home/pi/source-17.01.4/tmp/.packagedeps:6124: *** missing separator. Stop.
make[2]: Leaving directory '/home/pi/source-17.01.4'
toolchain/Makefile:89: recipe for target '/home/pi/source-17.01.4/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi/stamp/.toolchain_install' failed
make[1]: *** [/home/pi/source-17.01.4/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi/stamp/.toolchain_install] Error 2
make[1]: Leaving directory '/home/pi/source-17.01.4'
/home/pi/source-17.01.4/include/toplevel.mk:198: recipe for target 'world' failed
make: *** [world] Error 2
As @Per suggested, I also think there is something wrong with your build infrastructure; I would start again from a clean folder, and keep track of all commands you execute.
Seems to happen if compiled in WSL. Had the same problem, but ran it again in a VM and it compiled
bexx
May 2, 2020, 1:15pm
16
I had the same problem using the windows subsystem for linux (WSL).
recipe for target 'world' failed make: *** [world] Error 2
It was caused by the link of windows "environment variables" into the WSL.
create /etc/wsl.conf
and add
'[interop]
appendWindowsPath = false'
AND/OR
Open the windows registry and HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{GUID}\Flags
Change the hex value from 7 to 5 (Reference StackOverflow )
I created the page OpenWrt Build System - Windows Subsystem for Linux to collect all findings, to get the OpenWrt build system working within WSL
1 Like