golang-armbuilds
golang-armbuilds copied to clipboard
error: size of array '_check_for_64_bit_pointer_matching_GoInt' is negative
time ./make.bash fails with the following error:
runtime/cgo
In file included from $WORK/runtime/cgo/_obj/_cgo_export.c:2:0: /data/local/tmp/go-build236511552/runtime/cgo/_obj/_cgo_export.h:35:14: error: size of array '_check_for_64_bit_pointer_matching_GoInt' is negative typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
Attempted fix: export GOARCH=arm64
Full build log: buildlog.txt
Similar issue: https://github.com/golang/go/issues/10334
Platform: Kali Nethunter running on Nexus 9 Linux kali 3.10.40-g6857980-dirty #2 SMP PREEMPT Sat Nov 28 06:32:48 UTC 2015 aarch64 GNU/Linux
Have you solved your problem? I also met this: ** VERSION was not set, using default version. This is OK while in development. Build tags: headless Extra ldflags:
runtime/cgo
In file included from $WORK/runtime/cgo/_obj/_cgo_export.c:2:0: /tmp/go-build661120796/runtime/cgo/_obj/_cgo_export.h:37:14: error: size of array ‘_check_for_64_bit_pointer_matching_GoInt’ is negative typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; ^
Unfortunately, i wasn't able to fix the issue.