messense / openwrt-netbird

OpenWrt package for netbird
BSD 3-Clause "New" or "Revised" License
98 stars 32 forks source link

Mips: Error relocating /usr/bin/netbird: __nanosleep_time64: symbol not found #6

Closed a1ad closed 9 months ago

a1ad commented 1 year ago

Using the latest netbird_0.8.2-1_mips_24kc.ipk

a1ad commented 1 year ago

Looks like out of memory problem.

a1ad commented 1 year ago

I just got some more time to check, and it is not an out of memory problem... Also, 5mb is huge for embedded devices

mlsmaycon commented 1 year ago

@a1ad can you share the output of:

cat /etc/openwrt_release

a1ad commented 1 year ago

DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='21.02.3' DISTRIB_REVISION='r16554-1d4dea6d4f' DISTRIB_TARGET='ath79/generic' DISTRIB_ARCH='mips_24kc' DISTRIB_DESCRIPTION='OpenWrt 21.02.3 r16554-1d4dea6d4f' DISTRIB_TAINTS=''

deluxghost commented 1 year ago

Same error for netbird_0.9.7-1_mipsel_24kc.ipk Device is https://openwrt.org/toh/xiaomi/xiaomi_redmi_router_ac2100

# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.1'
DISTRIB_REVISION='r16325-88151b8303'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt 21.02.1 r16325-88151b8303'
DISTRIB_TAINTS=''

My local build with this go command (not upx-ed) works:

CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS="softfloat" go build -ldflags "-s -w -X 'github.com/netbirdio/netbird/client/system.version=$TAG'" -o netbird .
snenyl commented 1 year ago

Same error with v0.16.0 and v0.15.3

root@Teltonika-RUTX50:~/3rd_party_opkg# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.0'
DISTRIB_REVISION='r16279-5cc0535800'
DISTRIB_TARGET='ipq40xx/generic'
DISTRIB_ARCH='arm_cortex-a7_neon-vfpv4'
DISTRIB_DESCRIPTION='OpenWrt 21.02.0 r16279-5cc0535800'
DISTRIB_TAINTS='no-all busybox'

Testing netbird

root@Teltonika-RUTX50:~/3rd_party_opkg# netbird
Error relocating /usr/bin/netbird: __nanosleep_time64: symbol not found