I'm new to openWRT.
Trying to build an image for Netgear WAX610y from the master. Continue to get the following error for my platform. Tried to include all information. Seems the package already exists, however the build fails.
Can someone help me with this? The following is the build log.
cd "/home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0" && CC="aarch64-openwrt-linux-musl-gcc"
CCSHARED="aarch64-openwrt-linux-musl-gcc -DPIC -fPIC"
CXX="aarch64-openwrt-linux-musl-g++"
LD="aarch64-openwrt-linux-musl-gcc"
LDSHARED="aarch64-openwrt-linux-musl-gcc -shared"
CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0=chardet-5.2.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro"
CPPFLAGS="-I/home/kurt/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.3.0_musl/usr/include -I/home/kurt/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.3.0_musl/include -I/home/kurt/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.3.0_musl/include/fortify -I/home/kurt/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/python3.11"
LDFLAGS="-L/home/kurt/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.3.0_musl/usr/lib -L/home/kurt/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -lpython3.11" _
PYTHON_HOST_PLATFORM="linux-aarch64" _
PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata__linux_aarch64-linux-musl"
PYTHONPATH="/home/kurt/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11:/home/kurt/openwrt/staging_dir/target-aarch64_cortex-a53_musl//usr/lib/python3.11/site-packages:/home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0/ipkg-install//usr/lib/python3.11/site-packages"
PYTHONDONTWRITEBYTECODE=1 _
python_sysroot="/home/kurt/openwrt/staging_dir/target-aarch64_cortex-a53_musl"
_python_prefix="/usr"
_python_exec_prefix="/usr"
CARGO_BUILD_TARGET=aarch64-unknown-linux-musl
CARGO_HOME=/home/kurt/openwrt/dl/cargo
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
CARGO_PROFILE_RELEASE_DEBUG=false
CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS=false
CARGO_PROFILE_RELEASE_LTO=true
CARGO_PROFILE_RELEASE_OPT_LEVEL=z
CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS=true
CARGO_PROFILE_RELEASE_PANIC=unwind
CARGO_PROFILE_RELEASE_RPATH=false
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-openwrt-linux-musl-gcc
RUSTFLAGS="-Ctarget-feature=-crt-static -lssp_nonshared -lssp_nonshared -Clink-arg=-fuse-ld=bfd -Ctarget-feature=-crt-static -lssp_nonshared -lssp_nonshared -Clink-arg=-fuse-ld=bfd"
TARGET_CC=aarch64-openwrt-linux-musl-gcc
TARGET_CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0=chardet-5.2.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mno-outline-atomics"
PYO3_CROSS_LIB_DIR="/home/kurt/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11"
SETUPTOOLS_RUST_CARGO_PROFILE="release" /home/kurt/openwrt/staging_dir/hostpkg/bin/python3.11 -m installer --destdir "/home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0/ipkg-install" --no-compile-bytecode --prefix /usr "/home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0/"/openwrt-build/chardet-5.2.0-*.whl
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/kurt/openwrt/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 98, in <module>
_main(sys.argv[1:], "python -m installer")
File "/home/kurt/openwrt/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 94, in _main
installer.install(source, destination, {})
File "/home/kurt/openwrt/staging_dir/hostpkg/lib/python3.11/site-packages/installer/_core.py", line 87, in install
record = destination.write_script(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kurt/openwrt/staging_dir/hostpkg/lib/python3.11/site-packages/installer/destinations.py", line 230, in write_script
entry = self.write_to_fs(
^^^^^^^^^^^^^^^^^
File "/home/kurt/openwrt/staging_dir/hostpkg/lib/python3.11/site-packages/installer/destinations.py", line 167, in write_to_fs
raise FileExistsError(message)
FileExistsError: File already exists: /home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0/ipkg-install/usr/bin/chardetect
make[3]: *** [Makefile:56: /home/kurt/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/chardet-5.2.0/.built] Error 1
make[3]: Leaving directory '/home/kurt/openwrt/feeds/packages/lang/python/python-chardet'
time: package/feeds/packages/python-chardet/compile#3.42#0.31#3.20
ERROR: package/feeds/packages/python-chardet failed to build.
make[2]: *** [package/Makefile:189: package/feeds/packages/python-chardet/compile] Error 1
make[2]: Leaving directory '/home/kurt/openwrt'
make[1]: *** [package/Makefile:183: /home/kurt/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/kurt/openwrt'
make: *** [/home/kurt/openwrt/include/toplevel.mk:233: world] Error 2