[OpenWrt-Devel] Compile error compiling golang for Raspberri Pi3 image.
Perry Couprie
perry at couprie.net
Thu May 21 18:18:20 EDT 2020
Hi,
I am trying to compile openwrt for Raspberri PI3.
On of the selected packages to compile in the firmware is GOLANG.
When compiling golang i get the following compile error.
What can i do to get it to compile ?
Perry
go-gcc-helper: running aarch64-openwrt-linux-musl-gcc -I
../src/os/signal/internal/pty -fPIC -pthread -fmessage-length=0
-fdebug-prefix-map=/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/tmp/go-build166944271/b192=/tmp/go-build
-gno-record-gcc-switches
-I/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/staging_dir/target-aarch64_cortex-a53_musl/usr/include
-I/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/usr/include
-I/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/include/fortify
-I/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/include
-I $WORK/b192/ -Os -pipe -mcpu=cortex-a53 -g3 -fno-caller-saves -fno-plt
-fhonour-copts -Wno-error=unused-but-set-variable
-Wno-error=unused-result
-ffile-prefix-map=/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3=go-1.14.3
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -o $WORK/b192/_cgo_main.o -c _cgo_main.c
# cmd/go
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x001.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<239>: sym#29: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x002.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<240>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x003.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<241>: sym#52: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x004.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<242>: sym#47: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x005.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<243>: sym#58: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x001.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<244>: sym#29: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x002.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<245>: sym#27: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x003.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<246>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x004.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<247>: sym#44: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x005.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<248>: sym#60: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x006.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<249>: sym#64: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x007.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<250>: sym#44: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x008.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<251>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x009.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<252>: sym#53: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x010.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<253>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x011.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<254>: sym#43: ignoring symbol in
section 1 (type 0)
_cgo_init: relocation target x_cgo_init not defined
_cgo_mmap: relocation target x_cgo_mmap not defined
_cgo_munmap: relocation target x_cgo_munmap not defined
_cgo_notify_runtime_init_done: relocation target
x_cgo_notify_runtime_init_done not defined
_cgo_sigaction: relocation target x_cgo_sigaction not defined
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/tool/linux_amd64/link:
too many errors
# cmd/trace
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x001.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<170>: sym#29: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x002.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<171>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x003.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<172>: sym#52: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x004.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<173>: sym#47: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x005.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<174>: sym#58: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x001.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<175>: sym#29: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x002.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<176>: sym#27: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x003.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<177>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x004.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<178>: sym#44: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x005.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<179>: sym#60: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x006.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<180>: sym#64: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x007.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<181>: sym#44: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x008.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<182>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x009.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<183>: sym#53: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x010.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<184>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x011.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<185>: sym#43: ignoring symbol in
section 1 (type 0)
_cgo_init: relocation target x_cgo_init not defined
_cgo_mmap: relocation target x_cgo_mmap not defined
_cgo_munmap: relocation target x_cgo_munmap not defined
_cgo_notify_runtime_init_done: relocation target
x_cgo_notify_runtime_init_done not defined
_cgo_sigaction: relocation target x_cgo_sigaction not defined
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/tool/linux_amd64/link:
too many errors
# cmd/pprof
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x001.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<200>: sym#29: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x002.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<201>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x003.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<202>: sym#52: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x004.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<203>: sym#47: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/net.a(_x005.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<204>: sym#58: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x001.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<205>: sym#29: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x002.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<206>: sym#27: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x003.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<207>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x004.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<208>: sym#44: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x005.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<209>: sym#60: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x006.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<210>: sym#64: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x007.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<211>: sym#44: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x008.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<212>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x009.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<213>: sym#53: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x010.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<214>: sym#40: ignoring symbol in
section 1 (type 0)
loadelf:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/linux_arm64/runtime/cgo.a(_x011.o):
wm4.0.87d8ca21e8f70af1bffbb306e334e542<215>: sym#43: ignoring symbol in
section 1 (type 0)
_cgo_init: relocation target x_cgo_init not defined
_cgo_mmap: relocation target x_cgo_mmap not defined
_cgo_munmap: relocation target x_cgo_munmap not defined
_cgo_notify_runtime_init_done: relocation target
x_cgo_notify_runtime_init_done not defined
_cgo_sigaction: relocation target x_cgo_sigaction not defined
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/pkg/tool/linux_amd64/link:
too many errors
make[4]: *** [Makefile:389:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/build_dir/target-aarch64_cortex-a53_musl/go-1.14.3/.built]
Error 2
make[4]: Leaving directory
'/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/feeds/packages/lang/golang/golang'
time: package/feeds/packages/golang/compile#842.32#58.37#275.67
make[3]: *** [package/Makefile:113:
package/feeds/packages/golang/compile] Error 2
make[3]: Leaving directory
'/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src'
make[2]: *** [package/Makefile:107:
/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile]
Error 2
make[2]: Leaving directory
'/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src'
make[1]: ***
[/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src/include/toplevel.mk:224:
world] Error 2
make[1]: Leaving directory
'/home/pclc/build-3.2/build/brcm2709/trunk/luci/RaspberryPi3/openwrt-src'
make: *** [Makefile:29: compile] Error 2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list