I have the problem that since a few weeks building OpenWrt from master fails for me. I first thought that this was maybe some bad commit but at this point somebody else must have noticed that and I haven't seen any issue report it so I guess it must be me. But I'm not sure what I do wrong. My normal way to build is to do
git pull -r
./scripts/feeds update -a
./scripts/feeds install -af
make menuconfig
make -j 8 defconfig download clean world
But I can't get this to work and the error messages that are thrown are not that helpfull
Here is my build log with V=s https://filehorst.de/d/edAkxrcp
Maybe somebody can point me in the right direction
Thanks for help
P.S. I would have seen this more in Installing and Using OpenWRT than in For Developers but text said for already-build OpenWrt firmware so I post it here, sorry if this was wrong.
If you need something else beside build log feel free to ask for it and I will provide it.
The rest is not useful. This way forces single-threaded building, so the error stops the build when it happens, rather than when all the rest of the parallel tasks are finished. And yes, you could grep thru the file, but you dumped a 21.5mb text file on a non-english site that pops video ads.. I'm not enticed to jump through hoops, but I am willing to help you figure out what the error is via the above instructions.
echo '1' | cmp -s - /home/user/build_openwrt_h2/openwrt/staging_dir/target-x86_64_musl/pkginfo/libatomic.version || { echo '1' > /home/user/build_openwrt_h2/openwrt/staging_dir/target-x86_64_musl/pkginfo/libatomic.version; }
lib/buildcustomize.pl: .
BEGIN failed--compilation aborted.
Failed to build miniperl. Please run make minitest
Try this: make -j1 V=sc package/feeds/packages/perl/host/{clean,compile} and see why perl is tossing a fit.
Or, check the perl script it's trying to run in the package you're building and see what the failure is. This could be a package issue rather than a perl issue.
ls -lah staging_dir/host/bin/python*
lrwxrwxrwx 1 user user 18 Mar 21 2021 staging_dir/host/bin/python -> /usr/bin/python3.7
lrwxrwxrwx 1 user user 18 Mar 21 2021 staging_dir/host/bin/python3 -> /usr/bin/python3.7
That is strange I have python2-dev installed. And yes I have installed all packages listed in the wiki.
a little bit late, I know, but I just stumbled upon this thread via Google:
For me the solution was make dirclean
Why? because I had just updated my distro and with it my python3 version.
The symlink was pointing to python 3.8 while python 3.10 was installed.
And so it was pointing to something that didn't exist.
Appreciate you following up with this information, as I also stumbled across this in my own way, and this was exactly my problem also. Thanks so much! Love all the resources that can be found on this forum.