Errors during image building

Hi,

I have the ea8450 and I try to build image from master, usually it is working great, but since 2 days, impossible to build a new image.

here the errors:

time: target/linux/prereq#0.20#0.05#0.25
 make[1] tools/flock/compile
 make[2] -C tools/flock compile
 make[1] tools/download
 make[2] -C tools/autoconf download
    ERROR: tools/autoconf failed to build.
make tools/download: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
 make[1] toolchain/download
 make[2] -C toolchain/gdb download
    ERROR: toolchain/gdb failed to build.
make toolchain/download: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
 make[1] package/download
 make[2] -C package/base-files download
 make[2] -C package/boot/arm-trusted-firmware-mediatek download
    ERROR: package/boot/arm-trusted-firmware-mediatek failed to build (build variant: mt7622-snand-1ddr).
make package/download: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
 make[1] target/download
 make[2] -C target/linux download
    ERROR: target/linux failed to build.
make target/download: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/media/james/D/Linksys_E8450/master/include/toplevel.mk:204: download] Error

make[2]: Entering directory '/media/james/D/Linksys_E8450/master/scripts/config'
make[1]: Entering directory '/media/james/D/Linksys_E8450/master'
make[2]: Entering directory '/media/james/D/Linksys_E8450/master'
make[2]: Entering directory '/media/james/D/Linksys_E8450/master'
make[3]: Entering directory '/media/james/D/Linksys_E8450/master/tools/flock'
make[3]: Entering directory '/media/james/D/Linksys_E8450/master/tools/xz'
make[3]: *** [Makefile:40: /media/james/D/Linksys_E8450/master/dl/xz-5.4.4.tar.bz2] Error 1
make[2]: *** [tools/Makefile:228: tools/xz/compile] Error 1
make[1]: *** [tools/Makefile:224: /media/james/D/Linksys_E8450/master/staging_dir/host/stamp/.tools_compile_nyyynyynnnyyynynyyyyyyynyyynnynyynnynnyyyyyynyyyyyyyyyyynynnyyyyyyy] Error 2
make: *** [/media/james/D/Linksys_E8450/master/include/toplevel.mk:232: world] Error 2



Linksys_E8450/master$ make -j1 V=sc
rm: cannot remove '/media/james/D/Linksys_E8450/master/tmp/info/.overrides-packageinfo-144459': Permission denied
make[3]: *** No rule to make target '/media/james/D/Linksys_E8450/master/tmp/info/.files-packageinfo-146015'.  Stop.
cat: /media/james/D/Linksys_E8450/master/tmp/info/.files-packageinfo-146015: No such file or directory
cat: /media/james/D/Linksys_E8450/master/tmp/info/.overrides-packageinfo-146015: No such file or directory
rm: cannot remove '/media/james/D/Linksys_E8450/master/tmp/info/.files-packageinfo.stamp.f85bc2a13abd29b07c1e221d8964abe3': Permission denied
touch: cannot touch '/media/james/D/Linksys_E8450/master/tmp/info/.files-packageinfo.stamp.d41d8cd98f00b204e9800998ecf8427e': Permission denied
touch: cannot touch '/media/james/D/Linksys_E8450/master/tmp/info/.files-packageinfo.stamp': Permission denied
make[2]: *** [include/scan.mk:104: /media/james/D/Linksys_E8450/master/tmp/info/.files-packageinfo.stamp] Error 1
make[1]: *** [/media/james/D/Linksys_E8450/master/include/toplevel.mk:81: prepare-tmpinfo] Error 2
make: *** [/media/james/D/Linksys_E8450/master/include/toplevel.mk:230: world] Error 2

Do you have an idea?
thanks

These error messages suggest one of two potential mistakes:

  • trying to work on a checkout you previously cloned or have built as root (so wrong file access permissions, preventing the new build to work on it)
  • trying to build on a non-POSIX (non-linux) filesystem like vfat or NTFS, the build process requires POSIX like behaviour (case sensitive, locking, etc.)
1 Like

I use the same folder (openwrt ) to make my builds since 2 years, so I just try to update it from it again, the only thing I changed is ubuntu to linux mint, but my drive for that is intact, I load linux mint on another drive.

In that case I'd suggest to make a fresh git clone, if only for a quit test.

Changing distributions (respectively all kinds of re-installing) can (will) change UIDs/ GIDs used by the OS, but the on-disk UIDs/ GIDs for existing partitions will need manual fixing. This results in the same kind of behaviour.

1 Like