golang-armbuilds icon indicating copy to clipboard operation
golang-armbuilds copied to clipboard

error: size of array '_check_for_64_bit_pointer_matching_GoInt' is negative

Open xtiankisutsa opened this issue 8 years ago • 2 comments

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

xtiankisutsa avatar May 10 '16 16:05 xtiankisutsa

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]; ^

wangmu0579 avatar Sep 26 '17 12:09 wangmu0579

Unfortunately, i wasn't able to fix the issue.

xtiankisutsa avatar Oct 12 '17 06:10 xtiankisutsa