Compiling of Borgbackup fails

Compiling Borgbackup is not possible.

When trying to build Openwrt from source, an error occurs that I cannot resolve.

The error reads:

ERROR Backend 'poetry.core.masonry.api' is not available

When I try to build poetry via

./scripts/feeds install python3-poetry-core

no entry for the package appears in the .config and menuconfig.

With the compiling of the firmware with Borgbackup I tried it now under Alpine Linux, Manjaro and Debian. On all three distributions the same result. I am trying to build it for a Dynalink DL-WRX36.

After updating to Python 3.11 I have a new error:


cd "/home/user/openwrt/2023-05-24/build_dir/target-aarch64_cortex-a53_musl/pypi/msgpack-1.0.2" && CC="ccache aarch64-openwrt-linux-musl-gcc" CCSHARED="ccache aarch64-openwrt-linux-musl-gcc -DPIC -fPIC" CXX="ccache aarch64-openwrt-linux-musl-g++" LD="ccache aarch64-openwrt-linux-musl-gcc" LDSHARED="ccache aarch64-openwrt-linux-musl-gcc -shared" CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/openwrt/2023-05-24/build_dir/target-aarch64_cortex-a53_musl/pypi/msgpack-1.0.2=msgpack-1.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CPPFLAGS="-I/home/user/openwrt/2023-05-24/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/include -I/home/user/openwrt/2023-05-24/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/include/fortify -I/home/user/openwrt/2023-05-24/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/include -I/home/user/openwrt/2023-05-24/staging_dir/target-aarch64_cortex-a53_musl/usr/include/python3.11" LDFLAGS="-L/home/user/openwrt/2023-05-24/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/lib -L/home/user/openwrt/2023-05-24/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/lib -znow -zrelro -lpython3.11" _PYTHON_HOST_PLATFORM="linux-aarch64" __PYVENV_LAUNCHER__="/usr/bin/python3.11" PYTHONPATH="/home/user/openwrt/2023-05-24/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11:/home/user/openwrt/2023-05-24/staging_dir/target-aarch64_cortex-a53_musl//usr/lib/python3.11/site-packages:/home/user/openwrt/2023-05-24/build_dir/target-aarch64_cortex-a53_musl/pypi/msgpack-1.0.2/ipkg-install//usr/lib/python3.11/site-packages" PYTHONDONTWRITEBYTECODE=1 _python_sysroot="/home/user/openwrt/2023-05-24/staging_dir/target-aarch64_cortex-a53_musl" _python_prefix="/usr" _python_exec_prefix="/usr"    /home/user/openwrt/2023-05-24/staging_dir/hostpkg/bin/python3.11  -m build --no-isolation --outdir "/home/user/openwrt/2023-05-24/build_dir/target-aarch64_cortex-a53_musl/pypi/msgpack-1.0.2/"/openwrt-build --wheel   "/home/user/openwrt/2023-05-24/build_dir/target-aarch64_cortex-a53_musl/pypi/msgpack-1.0.2/"
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "/usr/lib/python3.11/site-packages/build/__init__.py", line 17, in <module>
    import subprocess
  File "/home/user/openwrt/2023-05-24/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11/subprocess.py", line 104, in <module>
    from _posixsubprocess import fork_exec as _fork_exec
ModuleNotFoundError: No module named '_posixsubprocess'
make[2]: *** [Makefile:44: /home/user/openwrt/2023-05-24/build_dir/target-aarch64_cortex-a53_musl/pypi/msgpack-1.0.2/.built] Error 1
make[2]: Leaving directory '/home/user/openwrt/2023-05-24/feeds/packages/lang/python/python-msgpack'
time: package/feeds/packages/python-msgpack/compile#0.45#0.17#0.59
    ERROR: package/feeds/packages/python-msgpack failed to build.
make[1]: *** [package/Makefile:120: package/feeds/packages/python-msgpack/compile] Error 1
make[1]: Leaving directory '/home/user/openwrt/2023-05-24'
make: *** [/home/user/openwrt/2023-05-24/include/toplevel.mk:231: package/feeds/packages/python-msgpack/compile] Fehler 2