OpenWrt / master build failure with Python 3.9
Moritz Warning
moritzwarning at web.de
Mon Mar 8 16:53:09 GMT 2021
Thanks, "make dirclean" did the trick. :-)
On 3/8/21 2:48 PM, Alexandru Ardelean wrote:
> On Mon, Mar 8, 2021 at 2:17 PM Moritz Warning <moritzwarning at web.de> wrote:
>>
>> Hi,
>>
>> OpenWrt master does not build for me, because the isntalled Python version is too new (/usr/bin/python3.9 exists).
>> OpenWrt create link to /usr/bin/python3.7, but that does not exist. See error message down below.
>>
>> $ ls -al /home/mwarning/openwrt/staging_dir/host/bin/python
>> lrwxrwxrwx 1 mwarning mwarning 18 Mar 8 08:56 /home/mwarning/openwrt/staging_dir/host/bin/python -> /usr/bin/python3.7
>>
>> $ ls /usr/bin/python3.7
>> ls: cannot access '/usr/bin/python3.7': No such file or directory
>>
>> $ python --version
>> Python 3.9.2
>
> This looks like you upgraded your system [just recently], but did not
> do a "make dirclean" in your OpenWrt tree.
> Maybe start from a clean checkout?
>
>>
>> $ make
>> [..]
>> mkdir -p /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/stamp
>> SHELL= flock /home/mwarning/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/openwrt-keyring-2021-02-20-49283916/.pkgdir/openwrt-keyring/. /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/'
>> touch /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/stamp/.openwrt-keyring_installed
>> echo "openwrt-keyring" >> /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/pkginfo/openwrt-keyring.default.install
>> make[3]: Leaving directory '/home/mwarning/openwrt/package/system/openwrt-keyring'
>> time: package/system/openwrt-keyring/compile#0.12#0.10#0.21
>> make[3]: Entering directory '/home/mwarning/openwrt/package/system/usign'
>> mkdir -p /home/mwarning/openwrt/dl
>> SHELL= flock /home/mwarning/openwrt/tmp/.usign-2020-05-23-f1f65026.tar.xz.flock -c ' /home/mwarning/openwrt/scripts/download.pl "/home/mwarning/openwrt/dl" "usign-2020-05-23-f1f65026.tar.xz" "3f6569a5e63fdfd032976ac0f79d736d3935101ac1b97fb370514b013c5e6bb6" "" || ( echo "Checking out files from the git repository..."; mkdir -p /home/mwarning/openwrt/tmp/dl && cd /home/mwarning/openwrt/tmp/dl && rm -rf usign-2020-05-23-f1f65026 && [ \! -d usign-2020-05-23-f1f65026 ] && git clone https://git.openwrt.org/project/usign.git usign-2020-05-23-f1f65026 && (cd usign-2020-05-23-f1f65026 && git checkout f1f65026a94137c91b5466b149ef3ea3f20091e9 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd usign-2020-05-23-f1f65026 && git log -1 --format='\''@%ct'\''` && rm -rf usign-2020-05-23-f1f65026/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c usign-2020-05-23-f1f65026 | xz -zc -7e > /home/mwarning/openwrt/tmp/dl/usign-2020-05-23-f1f65026.tar.xz && mv /home/mwarning/openwrt/tmp/dl/usign-2020-05-23-f1f65026.tar.xz /home/mwarning/openwrt/dl/ && rm -rf usign-2020-05-23-f1f65026; ) '
>> mkdir -p /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/stamp
>> SHELL= flock /home/mwarning/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/usign-2020-05-23-f1f65026/.pkgdir/usign/. /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/'
>> touch /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/stamp/.usign_installed
>> echo "usign" >> /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/pkginfo/usign.default.install
>> make[3]: Leaving directory '/home/mwarning/openwrt/package/system/usign'
>> time: package/system/usign/compile#0.16#0.11#0.24
>> make[3]: Entering directory '/home/mwarning/openwrt/package/base-files'
>> mkdir -p /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/stamp
>> SHELL= flock /home/mwarning/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/linux-arc770_generic/base-files/.pkgdir/base-files/. /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/'
>> touch /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/root-arc770/stamp/.base-files_installed
>> echo "base-files" >> /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/pkginfo/base-files.default.install
>> make[3]: Leaving directory '/home/mwarning/openwrt/package/base-files'
>> time: package/base-files/compile#0.68#0.14#0.89
>> make[3]: Entering directory '/home/mwarning/openwrt/package/firmware/wireless-regdb'
>> mkdir -p /home/mwarning/openwrt/dl
>> SHELL= flock /home/mwarning/openwrt/tmp/.wireless-regdb-2020.11.20.tar.xz.flock -c ' /home/mwarning/openwrt/scripts/download.pl "/home/mwarning/openwrt/dl" "wireless-regdb-2020.11.20.tar.xz" "b4164490d82ff7b0086e812ac42ab27baf57be24324d4c0ee1c5dd6ba27f2a52" "" "@KERNEL/software/network/wireless-regdb/" '
>> rm -f /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/wireless-regdb-2020.11.20/.built
>> touch /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/wireless-regdb-2020.11.20/.built_check
>> /home/mwarning/openwrt/staging_dir/host/bin/python /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/wireless-regdb-2020.11.20/db2fw.py /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/wireless-regdb-2020.11.20/regulatory.db /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/wireless-regdb-2020.11.20/db.txt
>> bash: line 1: /home/mwarning/openwrt/staging_dir/host/bin/python: No such file or directory
>> make[3]: *** [Makefile:35: /home/mwarning/openwrt/build_dir/target-arc_arc700_glibc/wireless-regdb-2020.11.20/.built] Error 127
>> make[3]: Leaving directory '/home/mwarning/openwrt/package/firmware/wireless-regdb'
>> time: package/firmware/wireless-regdb/compile#0.10#0.08#0.17
>> ERROR: package/firmware/wireless-regdb failed to build.
>> make[2]: *** [package/Makefile:114: package/firmware/wireless-regdb/compile] Error 1
>> make[2]: Leaving directory '/home/mwarning/openwrt'
>> make[1]: *** [package/Makefile:108: /home/mwarning/openwrt/staging_dir/target-arc_arc700_glibc/stamp/.package_compile] Error 2
>> make[1]: Leaving directory '/home/mwarning/openwrt'
>> make: *** [/home/mwarning/openwrt/include/toplevel.mk:230: world] Error 2
>>
>> Where does OpenWrt create the /home/mwarning/openwrt/staging_dir/host/bin/python?
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel at lists.openwrt.org
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
More information about the openwrt-devel
mailing list