Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgo-gcc-export-header-prolog:25:14: error: size of array '_check_for_64_bit_pointer_matching_GoInt' is negative #22668

Closed
funnywwh opened this issue Nov 11, 2017 · 1 comment

Comments

@funnywwh
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go1.9.2

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

GOROOT=D:\tools\go1.9.2.src\go
GOARCH=arm64
GOARM=7
GOOS=linux
CGO_ENABLED=1
GOOS=android
GOARM=6
NDK_ROOT=d:/ndkroot21-3
PATH=%NDK_ROOT%/bin;%PATH%
CC=arm-linux-androideabi-gcc.exe
CXX=arm-linux-androideabi-g++.exe
CGO_CXXFLAGS="-lstdc++"
#CGO_LDFLAGS=-lgcc
GO15VENDOREXPERIMENT=1

use android-ndk-r14b-windows-x86_64

What did you do?

main.go

package main

import "C"

func main() {

}

What did you expect to see?

build ok

What did you see instead?

runtime/cgo

In file included from _cgo_export.c:3:0:
cgo-gcc-export-header-prolog:25:14: error: size of array '_check_for_64_bit_pointer_matching_GoInt' is negative

@funnywwh
Copy link
Author

i make a misstake.use arm ndk instead of arm64 while make_standalone_toolchain.py.
should use make_standalone_toolchain.py --arch arm64 --api 21 --force --install-dir d:\ndkroot21-arm64

@golang golang locked and limited conversation to collaborators Nov 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants