Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Include "allow-multiple-definition" LD flag for Android ARM #35

Merged
merged 1 commit into from
Jan 14, 2016

Conversation

dan-turner
Copy link
Contributor

Closes #34

@karalabe
Copy link
Owner

I was wondering why I didn't catch this one :) Turns out it was fixed by Go 1.6 (golang/go#9510), and since I was using that for the Android builds this slipped through. Thanks for catching it!

@karalabe
Copy link
Owner

Strange, but this doesn't seem to fix it for me currently. I get the same linker errors. (I'm trying to build master, since develop already removed the gmp).

@dan-turner
Copy link
Contributor Author

Even after publishing the new docker image? I must confess I didn't test it
because I would have had to create my own docker images and change all the
references to it.

On Thursday, 14 January 2016, Péter Szilágyi [email protected]
wrote:

Strange, but this doesn't seem to fix it for me currently. I get the same
linker errors.


Reply to this email directly or view it on GitHub
#35 (comment).

@karalabe
Copy link
Owner

You need to rebuild only the base image and one of the release images to do it :)

docker build --tag karalabe/xgo-base ./docker/base
docker build --tag karalabe/xgo-1.5.3 ./docker/go-1.5.3

Then you can specify to xgo the version you require explicitly so that it doesn't require all the meta images to be built (e.g. --go=1.5.3 or GO=1.5.3 (in make)) :)

@karalabe
Copy link
Owner

Still, android builds most definitely worked well, so I screwed something up bad..

@karalabe
Copy link
Owner

Ok, I think docker screwed something up. I did a ton of rebuilds and now everything works fine. Will probably push out the images and then clean up everything and do a recheck to make sure.

@dan-turner
Copy link
Contributor Author

Nice!

On Thursday, 14 January 2016, Péter Szilágyi [email protected]
wrote:

Ok, I think docker screwed something up. I did a ton of rebuilds and now
everything works fine. Will probably push out the images and then clean up
everything and do a recheck to make sure.


Reply to this email directly or view it on GitHub
#35 (comment).

@karalabe karalabe merged commit dd1cb83 into karalabe:master Jan 14, 2016
@karalabe
Copy link
Owner

I've also polished this a bit so that the workaround is used only for Go 1.5 and below. Since Go 1.6 fixes the issue and android/arm64 and android/386 are only supported in Go 1.6+, there's no point in adding the workaround to these platforms. a9a3fc2

admpub pushed a commit to admpub/xgo that referenced this pull request Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants