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: darwin/386 malformed mach-o file: unsupported scattered relocation 2/1 #4002

Closed
davecheney opened this issue Aug 24, 2012 · 2 comments
Closed

Comments

@davecheney
Copy link
Contributor

What steps will reproduce the problem?

Cross compiling from amd64 -> 386 on a darwin/amd64 10.7.4 machine produces 

odessa(~/go/src) % GOARCH=386 ./make.bash 2>&1 | tail
os/user
testing
testing/iotest
testing/quick
# cmd/go
/Users/dfc/go/pkg/darwin_386/crypto/x509.a(_all.o): malformed mach-o file: unsupported
scattered relocation 2/1
/Users/dfc/go/pkg/darwin_386/runtime/cgo.a(_all.o): malformed mach-o file: unsupported
scattered relocation 2/1
# cmd/godoc
/Users/dfc/go/pkg/darwin_386/crypto/x509.a(_all.o): malformed mach-o file: unsupported
scattered relocation 2/1
/Users/dfc/go/pkg/darwin_386/runtime/cgo.a(_all.o): malformed mach-o file: unsupported
scattered relocation 2/1

Please use labels and text to provide additional information.

% xcodebuild -version
Xcode 4.2.1
Build version 4D502

% uname -a
Darwin odessa.fritz.box 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT
2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

yes, the command line tools are installed, in this version of Xcode they are not an
optional extra.
@minux
Copy link
Member

minux commented Aug 24, 2012

Comment 1:

i just searched our issues and found three issues for this problem.
it seems we finally have to fix it now.

Status changed to Duplicate.

Merged into issue #1635.

@rsc
Copy link
Contributor

rsc commented Aug 31, 2012

Comment 2:

Or we could tell people to use 64-bit Go on their 64-bit Macs.
They stopped making 32-bit Macs a long time ago.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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

4 participants