E8450-apk build

hi,

I try to update my nuild and I got that error about apk, some of you have an idea about the problem?
thanks

make[3]: Entering directory '/media/james/D/Linksys_E8450/main/package/system/apk'
/media/james/D/Linksys_E8450/main/staging_dir/host/bin/sed -e "s|@CC@|'/media/james/D/Linksys_E8450/main/staging_dir/host/bin/gcc',|" -e "s|@CXX@|'/media/james/D/Linksys_E8450/main/staging_dir/host/bin/g++',|" -e "s|@PKGCONFIG@|/media/james/D/Linksys_E8450/main/staging_dir/host/bin/pkg-config|" -e "s|@CMAKE@|/media/james/D/Linksys_E8450/main/staging_dir/host/bin/cmake|" -e "s|@PYTHON@|/media/james/D/Linksys_E8450/main/staging_dir/host/bin/python3|" -e "s|@CFLAGS@|'-O2', '-I/media/james/D/Linksys_E8450/main/staging_dir/host/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/hostpkg/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/target-mips_24kc_musl/host/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/host/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/hostpkg/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/target-mips_24kc_musl/host/include',|" -e "s|@CXXFLAGS@|'-O2', '-I/media/james/D/Linksys_E8450/main/staging_dir/host/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/hostpkg/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/target-mips_24kc_musl/host/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/host/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/hostpkg/include', '-I/media/james/D/Linksys_E8450/main/staging_dir/target-mips_24kc_musl/host/include',|" -e "s|@LDFLAGS@|'-L/media/james/D/Linksys_E8450/main/staging_dir/host/lib', '-L/media/james/D/Linksys_E8450/main/staging_dir/hostpkg/lib', '-L/media/james/D/Linksys_E8450/main/staging_dir/target-mips_24kc_musl/host/lib',|" -e "s|@PREFIX@|/media/james/D/Linksys_E8450/main/staging_dir/host|" < /media/james/D/Linksys_E8450/main/staging_dir/host/lib/meson/openwrt-native.txt.in > /media/james/D/Linksys_E8450/main/build_dir/hostpkg/apk-3.0.0_pre20241113/openwrt-native.txt
VERSION=3.0.0_pre20241113 /media/james/D/Linksys_E8450/main/staging_dir/host/bin/python3 /media/james/D/Linksys_E8450/main/staging_dir/host/bin/meson.py  setup --native-file /media/james/D/Linksys_E8450/main/build_dir/hostpkg/apk-3.0.0_pre20241113/openwrt-native.txt -Ddefault_library=static -Dcompressed-help=false -Ddocs=disabled -Dhelp=enabled -Dlua_version=5.1 -Durl_backend=wget -Dzstd=false -Dcrypto_backend=openssl /media/james/D/Linksys_E8450/main/build_dir/hostpkg/apk-3.0.0_pre20241113/openwrt-build /media/james/D/Linksys_E8450/main/build_dir/hostpkg/apk-3.0.0_pre20241113/openwrt-build/..
bash: line 1: /media/james/D/Linksys_E8450/main/staging_dir/host/bin/python3: No such file or directory
make[3]: *** [Makefile:98: /media/james/D/Linksys_E8450/main/build_dir/hostpkg/apk-3.0.0_pre20241113/.configured] Error 127
make[3]: Leaving directory '/media/james/D/Linksys_E8450/main/package/system/apk'
time: package/system/apk/host-compile#0.20#0.12#0.28
    ERROR: package/system/apk [host] failed to build.
make[2]: *** [package/Makefile:183: package/system/apk/host/compile] Error 1
make[2]: Leaving directory '/media/james/D/Linksys_E8450/main'
make[1]: *** [package/Makefile:179: /media/james/D/Linksys_E8450/main/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/media/james/D/Linksys_E8450/main'
make: *** [/media/james/D/Linksys_E8450/main/include/toplevel.mk:248: world] Error 2

You aren't getting an error about apk, but about a build-dependency -python3- not being found, either because you don't have python3 installed on the host or (guessing from your path name) because the filesystem you're building on doesn't support symlinks (and probably many other things as well).

Maybe cause I used Ubuntu before and now I'm on Debian distro... This is the only change I've made.

are you fulfilling https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem ?

1 Like

Yep for Debian:

sudo apt update
sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev \
python3-setuptools rsync swig unzip zlib1g-dev file wget

finally, I re installed ubuntu and the build compiled perfectly. Everytime I try Debian I get problems

Building on Debian isn't a problem either, I've been running Debian/unstable for the last 2.5 decades and am regularly building OpenWrt (for eight different targets) on my Debian systems.

1 Like

I don't know what to say, fresh install with Ubuntu and worked immediately.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.