Ysurac / openmptcprouter

OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
https://www.openmptcprouter.com/
GNU General Public License v3.0
1.86k stars 270 forks source link

Error building image for Orange Pi CM4 #3647

Open eXulW0lFy opened 1 week ago

eXulW0lFy commented 1 week ago

Expected Behavior

Current Behavior

I tried to build image for OPi cm4, but I got an error:

SHELL= flock /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/tmp/.root-copy.flock -c 'cp -fpR /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/.pkgdir/simple-obfs/. /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/target-aarch64_generic_musl/root-rockchip/'
touch /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/target-aarch64_generic_musl/root-rockchip/stamp/.simple-obfs_installed
removed '/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/bin/packages/aarch64_generic/openmptcprouter/simple-obfs_486bebd9-3_aarch64_generic.ipk'
mkdir -p /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/bin/targets/rockchip/armv8/packages /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs/CONTROL /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/target-aarch64_generic_musl/pkginfo
install -d -m0755 /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs/usr/bin
install -m0755 /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/src/obfs-local /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs/usr/bin
find /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-openwrt-linux-musl-"  NO_RENAME=1 ; NM="aarch64-openwrt-linux-musl-nm" STRIP="/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/scripts/strip-kmod.sh" PATCHELF="/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/host/bin/patchelf" /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/scripts/rstrip.sh /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs
rstrip.sh: /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs/usr/bin/obfs-local: executable
(cd /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/bin/packages/aarch64_generic/openmptcprouter
/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/host/bin/fakeroot /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/host/bin/bash /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/scripts/ipkg-build -m "" /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/bin/packages/aarch64_generic/openmptcprouter
Packaged contents of /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/ipkg-aarch64_generic/simple-obfs into /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/bin/packages/aarch64_generic/openmptcprouter/simple-obfs_486bebd9-3_aarch64_generic.ipk
echo "simple-obfs" >> /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/target-aarch64_generic_musl/pkginfo/simple-obfs.default.install
touch -r /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/.built /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3/.autoremove 2>/dev/null >/dev/null
find /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/build_dir/target-aarch64_generic_musl/simple-obfs/simple-obfs-486bebd9-3 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir'  -print0 | xargs -r -0 rm -rf
make[3]: Leaving directory '/home/orangepi/sda1/openmptcprouter/feeds/openmptcprouter/simple-obfs'
time: package/feeds/openmptcprouter/simple-obfs/compile#309.57#20.25#349.78
make[2]: Leaving directory '/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source'
make[1]: *** [package/Makefile:122: /home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source'
make: *** [/home/orangepi/sda1/openmptcprouter/opi-cm4/6.1/source/include/toplevel.mk:232: world] Error 2

I tried j=4, j=4 V=s, j=1 V=s and still got an error. It was about different package, but I managed to correctly capture log message only on my last try.

Here's last 512K of the log at pastebin: https://pastebin.com/rwX59BrM

Specifications

Options:

OMR_TARGET="myplatform" OMR_FEED_SRC="master" OMR_KERNEL="6.1"

OS: Debian 12 aarch64 (arm64).

Ysurac commented 5 days ago

Try to build using kernel 6.6

eXulW0lFy commented 1 day ago

When I ran ./build.sh it shows multiple errors:

ERROR: please fix feeds/packages/admin/qbee-agent/Makefile - see logs/feeds/packages/admin/qbee-agent/dump.txt for details
ERROR: please fix feeds/packages/devel/delve/Makefile - see logs/feeds/packages/devel/delve/dump.txt for details
ERROR: please fix feeds/packages/devel/gitlab-runner/Makefile - see logs/feeds/packages/devel/gitlab-runner/dump.txt for details
ERROR: please fix feeds/packages/libs/boringssl/Makefile - see logs/feeds/packages/libs/boringssl/dump.txt for details
ERROR: please fix feeds/packages/net/adguardhome/Makefile - see logs/feeds/packages/net/adguardhome/dump.txt for details
ERROR: please fix feeds/packages/net/alist/Makefile - see logs/feeds/packages/net/alist/dump.txt for details
ERROR: please fix feeds/packages/net/cloudflared/Makefile - see logs/feeds/packages/net/cloudflared/dump.txt for details
ERROR: please fix feeds/packages/net/cloudreve/Makefile - see logs/feeds/packages/net/cloudreve/dump.txt for details
ERROR: please fix feeds/packages/net/cni-route-override/Makefile - see logs/feeds/packages/net/cni-route-override/dump.txt for details
ERROR: please fix feeds/packages/net/croc/Makefile - see logs/feeds/packages/net/croc/dump.txt for details
ERROR: please fix feeds/packages/net/crowdsec/Makefile - see logs/feeds/packages/net/crowdsec/dump.txt for details
ERROR: please fix feeds/packages/net/crowdsec-firewall-bouncer/Makefile - see logs/feeds/packages/net/crowdsec-firewall-bouncer/dump.txt for details
ERROR: please fix feeds/packages/net/databag/Makefile - see logs/feeds/packages/net/databag/dump.txt for details
ERROR: please fix feeds/packages/net/dns-over-https/Makefile - see logs/feeds/packages/net/dns-over-https/dump.txt for details
ERROR: please fix feeds/packages/net/dnscrypt-proxy2/Makefile - see logs/feeds/packages/net/dnscrypt-proxy2/dump.txt for details
ERROR: please fix feeds/packages/net/dnslookup/Makefile - see logs/feeds/packages/net/dnslookup/dump.txt for details
ERROR: please fix feeds/packages/net/dnsproxy/Makefile - see logs/feeds/packages/net/dnsproxy/dump.txt for details
ERROR: please fix feeds/packages/net/dnstap/Makefile - see logs/feeds/packages/net/dnstap/dump.txt for details
ERROR: please fix feeds/packages/net/evilginx2/Makefile - see logs/feeds/packages/net/evilginx2/dump.txt for details
ERROR: please fix feeds/packages/net/frp/Makefile - see logs/feeds/packages/net/frp/dump.txt for details
ERROR: please fix feeds/packages/net/gateway-go/Makefile - see logs/feeds/packages/net/gateway-go/dump.txt for details
ERROR: please fix feeds/packages/net/geoipupdate/Makefile - see logs/feeds/packages/net/geoipupdate/dump.txt for details
ERROR: please fix feeds/packages/net/geth/Makefile - see logs/feeds/packages/net/geth/dump.txt for details
ERROR: please fix feeds/packages/net/gg/Makefile - see logs/feeds/packages/net/gg/dump.txt for details
ERROR: please fix feeds/packages/net/git-lfs/Makefile - see logs/feeds/packages/net/git-lfs/dump.txt for details
ERROR: please fix feeds/packages/net/irtt/Makefile - see logs/feeds/packages/net/irtt/dump.txt for details
ERROR: please fix feeds/packages/net/kcptun/Makefile - see logs/feeds/packages/net/kcptun/dump.txt for details
ERROR: please fix feeds/packages/net/librespeed-go/Makefile - see logs/feeds/packages/net/librespeed-go/dump.txt for details
ERROR: please fix feeds/packages/net/nebula/Makefile - see logs/feeds/packages/net/nebula/dump.txt for details
ERROR: please fix feeds/packages/net/netbird/Makefile - see logs/feeds/packages/net/netbird/dump.txt for details
ERROR: please fix feeds/packages/net/nextdns/Makefile - see logs/feeds/packages/net/nextdns/dump.txt for details
ERROR: please fix feeds/packages/net/obfs4proxy/Makefile - see logs/feeds/packages/net/obfs4proxy/dump.txt for details
ERROR: please fix feeds/packages/net/overture/Makefile - see logs/feeds/packages/net/overture/dump.txt for details
ERROR: please fix feeds/packages/net/rclone/Makefile - see logs/feeds/packages/net/rclone/dump.txt for details
ERROR: please fix feeds/packages/net/restic-rest-server/Makefile - see logs/feeds/packages/net/restic-rest-server/dump.txt for details
ERROR: please fix feeds/packages/net/sing-box/Makefile - see logs/feeds/packages/net/sing-box/dump.txt for details
ERROR: please fix feeds/packages/net/snowflake/Makefile - see logs/feeds/packages/net/snowflake/dump.txt for details
ERROR: please fix feeds/packages/net/speedtest-go/Makefile - see logs/feeds/packages/net/speedtest-go/dump.txt for details
ERROR: please fix feeds/packages/net/tailscale/Makefile - see logs/feeds/packages/net/tailscale/dump.txt for details
ERROR: please fix feeds/packages/net/trojan-go/Makefile - see logs/feeds/packages/net/trojan-go/dump.txt for details
ERROR: please fix feeds/packages/net/v2ray-core/Makefile - see logs/feeds/packages/net/v2ray-core/dump.txt for details
ERROR: please fix feeds/packages/net/v2raya/Makefile - see logs/feeds/packages/net/v2raya/dump.txt for details
ERROR: please fix feeds/packages/net/wgsd/Makefile - see logs/feeds/packages/net/wgsd/dump.txt for details
ERROR: please fix feeds/packages/net/wifi-presence/Makefile - see logs/feeds/packages/net/wifi-presence/dump.txt for details
ERROR: please fix feeds/packages/net/xray-core/Makefile - see logs/feeds/packages/net/xray-core/dump.txt for details
ERROR: please fix feeds/packages/net/yggdrasil/Makefile - see logs/feeds/packages/net/yggdrasil/dump.txt for details
ERROR: please fix feeds/packages/net/ztdns/Makefile - see logs/feeds/packages/net/ztdns/dump.txt for details
ERROR: please fix feeds/packages/utils/cni/Makefile - see logs/feeds/packages/utils/cni/dump.txt for details
ERROR: please fix feeds/packages/utils/cni-plugins/Makefile - see logs/feeds/packages/utils/cni-plugins/dump.txt for details
ERROR: please fix feeds/packages/utils/cni-plugins-nft/Makefile - see logs/feeds/packages/utils/cni-plugins-nft/dump.txt for details
ERROR: please fix feeds/packages/utils/containerd/Makefile - see logs/feeds/packages/utils/containerd/dump.txt for details
ERROR: please fix feeds/packages/utils/ctop/Makefile - see logs/feeds/packages/utils/ctop/dump.txt for details
ERROR: please fix feeds/packages/utils/docker/Makefile - see logs/feeds/packages/utils/docker/dump.txt for details
ERROR: please fix feeds/packages/utils/docker-compose/Makefile - see logs/feeds/packages/utils/docker-compose/dump.txt for details
ERROR: please fix feeds/packages/utils/dockerd/Makefile - see logs/feeds/packages/utils/dockerd/dump.txt for details
ERROR: please fix feeds/packages/utils/fx/Makefile - see logs/feeds/packages/utils/fx/dump.txt for details
ERROR: please fix feeds/packages/utils/librespeed-cli/Makefile - see logs/feeds/packages/utils/librespeed-cli/dump.txt for details
ERROR: please fix feeds/packages/utils/miniflux/Makefile - see logs/feeds/packages/utils/miniflux/dump.txt for details
ERROR: please fix feeds/packages/utils/nerdctl/Makefile - see logs/feeds/packages/utils/nerdctl/dump.txt for details
ERROR: please fix feeds/packages/utils/oci-runtime-tools/Makefile - see logs/feeds/packages/utils/oci-runtime-tools/dump.txt for details
ERROR: please fix feeds/packages/utils/podman/Makefile - see logs/feeds/packages/utils/podman/dump.txt for details
ERROR: please fix feeds/packages/utils/prometheus-statsd-exporter/Makefile - see logs/feeds/packages/utils/prometheus-statsd-exporter/dump.txt for details
ERROR: please fix feeds/packages/utils/restic/Makefile - see logs/feeds/packages/utils/restic/dump.txt for details
ERROR: please fix feeds/packages/utils/runc/Makefile - see logs/feeds/packages/utils/runc/dump.txt for details
ERROR: please fix feeds/packages/utils/syncthing/Makefile - see logs/feeds/packages/utils/syncthing/dump.txt for details
ERROR: please fix feeds/packages/utils/telegraf/Makefile - see logs/feeds/packages/utils/telegraf/dump.txt for details
ERROR: please fix feeds/packages/utils/yq/Makefile - see logs/feeds/packages/utils/yq/dump.txt for details
ERROR: please fix feeds/openmptcprouter/grpcurl/Makefile - see logs/feeds/openmptcprouter/grpcurl/dump.txt for details

I checked a couple of dump.txt files, they are similar:

Build-Depends: golang/host

Package: dns-over-https
Submenu: IP Addresses and Names
Version: 2.3.0-r2
Depends: +libc 
Conflicts: 
Menu-Depends: 
Provides: 
Section: net
Category: Network
Repository: base
Title: Query DNS over HTTPS
Maintainer: Martin Schneider <martschneider@google.com>
Source: dns-over-https-2.3.0.tar.gz
License: MIT
LicenseFiles: LICENSE
URL: https://github.com/m13253/dns-over-https
Type: ipkg
Description:   Client and server software to query DNS over HTTPS, using Google DNS-over-HTTPS protocol and IETF DNS-over-HTTPS (RFC 8484).
@@

Makefile:27: ../../lang/golang/golang-package.mk: No such file or directory
gmake[1]: *** No rule to make target '../../lang/golang/golang-package.mk'.  Stop.

I tried to build anyway, but it failed. Last lines of output:

-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/cmake-3.30/Templates/Windows/SmallLogo44x44.png
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/cmake-3.30/Templates/Windows/Windows_TemporaryKey.pfx
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/cmake-3.30/Templates/Windows/SplashScreen.png
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/cmake-3.30/Templates/CPack.GenericWelcome.txt
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/vim/vimfiles/indent
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/vim/vimfiles/indent/cmake.vim
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/vim/vimfiles/syntax
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/vim/vimfiles/syntax/cmake.vim
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/emacs/site-lisp/cmake-mode.el
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/aclocal/cmake.m4
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/bash-completion/completions/cmake
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/bash-completion/completions/cpack
-- Installing: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/share/bash-completion/completions/ctest
mkdir -p /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/stamp
touch /mnt/openmptcprouter/myplatform/6.6/source/build_dir/host/cmake-3.30.2/.built
touch /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/stamp/.cmake_installed 
find /mnt/openmptcprouter/myplatform/6.6/source/build_dir/host/cmake-3.30.2 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -print0 | xargs -r -0 rm -rf
make[3]: Leaving directory '/mnt/openmptcprouter/myplatform/6.6/source/tools/cmake'
time: tools/cmake/compile#14256.72#1001.67#5296.56
make[2]: Leaving directory '/mnt/openmptcprouter/myplatform/6.6/source'
make[1]: *** [tools/Makefile:227: /mnt/openmptcprouter/myplatform/6.6/source/staging_dir/host/stamp/.tools_compile_nyyyyyynnnyyyyynyyyyyyynyyynynyynnynnyyyyyynyyyyyyyyyyynynnyyyyynyyy] Error 2
make[1]: Leaving directory '/mnt/openmptcprouter/myplatform/6.6/source'
make: *** [/mnt/openmptcprouter/myplatform/6.6/source/include/toplevel.mk:248: world] Error 2

More logs (with pastebin limits): https://pastebin.com/Y5YYUwJw https://pastebin.com/iTHWEJLA

Ysurac commented 1 day ago

You can safely ignore all "ERROR". For the latest error difficult to say anything, did you try with a "make -j1 V=s" in source directory ?