You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What operating system and processor architecture are you using?
Darwin, x86_64 compiling for Android / Arm inside Docker Container.
What did you do?
Ran the command docker run -v $GOPATH/src:/src mobile-21 /bin/bash -c 'cd /src/getmelange.com/mobile && ./make.bash'
What did you expect to see?
A successful compilation of my project.
What did you see instead?
# runtime/cgo
/go/src/runtime/cgo/gcc_android_arm.c:16:0: error: "PTHREAD_KEYS_MAX" redefined [-Werror]
#define PTHREAD_KEYS_MAX 128
^
In file included from /usr/local/android-ndk-r10d/sysroot/usr/include/limits.h:86:0,
from /usr/local/android-ndk-r10d/lib/gcc/arm-linux-androideabi/4.8/include-fixed/limits.h:168,
from /usr/local/android-ndk-r10d/lib/gcc/arm-linux-androideabi/4.8/include-fixed/syslimits.h:7,
from /usr/local/android-ndk-r10d/lib/gcc/arm-linux-androideabi/4.8/include-fixed/limits.h:34,
from /usr/local/android-ndk-r10d/sysroot/usr/include/signal.h:34,
from /usr/local/android-ndk-r10d/sysroot/usr/include/pthread.h:33,
from /go/src/runtime/cgo/gcc_android_arm.c:5:
/usr/local/android-ndk-r10d/sysroot/usr/include/sys/limits.h:166:0: note: this is the location of the previous definition
#define PTHREAD_KEYS_MAX _POSIX_THREAD_KEYS_MAX
^
cc1: all warnings being treated as errors
Looks to be some sort of redefined constant. Note that I am attempting to change the Docker container to the latest version of the NDK (v10d).
The text was updated successfully, but these errors were encountered:
jhleath
changed the title
PTHREAD_KEYS_MAX defined in both Go and NDKv10
mobile: PTHREAD_KEYS_MAX defined in both Go and NDKv10
Dec 18, 2014
Fixes #9374.
Change-Id: Ic53757eba98fc43bcd24e25e03876fef917b4da1
Reviewed-on: https://go-review.googlesource.com/1751
Reviewed-by: David Crawshaw <crawshaw@golang.org>
mikioh
changed the title
mobile: PTHREAD_KEYS_MAX defined in both Go and NDKv10
runtime/cgo: PTHREAD_KEYS_MAX defined in both Go and NDKv10
Aug 5, 2015
What version of Go are you using (go version)?
devel
inside the mobile docker container.What operating system and processor architecture are you using?
Darwin, x86_64 compiling for Android / Arm inside Docker Container.
What did you do?
Ran the command
docker run -v $GOPATH/src:/src mobile-21 /bin/bash -c 'cd /src/getmelange.com/mobile && ./make.bash'
What did you expect to see?
A successful compilation of my project.
What did you see instead?
Looks to be some sort of redefined constant. Note that I am attempting to change the Docker container to the latest version of the NDK (v10d).
The text was updated successfully, but these errors were encountered: