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

gccgo: compilation fails on Darwin #463

Open
gopherbot opened this issue Dec 25, 2009 · 22 comments
Open

gccgo: compilation fails on Darwin #463

gopherbot opened this issue Dec 25, 2009 · 22 comments

Comments

@gopherbot
Copy link

by f.guerrieri:

What steps will reproduce the problem?
1. After the fix of issue #392 I updated the svn repo
2. from a clean objdir run configure and make
3. wait for the compilation to fail

What is the expected output? What do you see instead?

go1: warning: internal and protected visibility attributes not supported in
this configuration; ignored
go1: warning: internal and protected visibility attributes not supported in
this configuration; ignored
/var/folders/q1/q1Dz7ZzsFY4lXXLuWTaMgU+++TI/-Tmp-//cc2HM7VZ.s:31:Expected
comma after segment-name
/var/folders/q1/q1Dz7ZzsFY4lXXLuWTaMgU+++TI/-Tmp-//cc2HM7VZ.s:31:Rest of
line ignored. 1st junk character valued 32 ( ).
/var/folders/q1/q1Dz7ZzsFY4lXXLuWTaMgU+++TI/-Tmp-//cc2HM7VZ.s:31:Junk
character 92 (\).
/var/folders/q1/q1Dz7ZzsFY4lXXLuWTaMgU+++TI/-Tmp-//cc2HM7VZ.s:31:Rest of
line ignored. 1st junk character valued 49 (1).
make[3]: *** [runtime/libruntime.a] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-libgo] Error 2
make: *** [all] Error 2


What is your $GOOS?  $GOARCH?
darwin, 386

Which revision are you using? 

~/projects/gccgo 506 $ svn info
Path: .
URL: svn://gcc.gnu.org/svn/gcc/branches/gccgo
Repository Root: svn://gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 155457
Node Kind: directory
Schedule: normal
Last Changed Author: ian
Last Changed Rev: 155452
Last Changed Date: 2009-12-24 08:51:30 +0100 (Gio, 24 Dic 2009)


Please provide any additional information below.

Tell me if you need the output of make and/or of configure. I get a good
number of warning during the build.
@gopherbot
Copy link
Author

Comment 1 by f.guerrieri:

oops, I meant issue #329, not issue #392 which is unrelated.

@rsc
Copy link
Contributor

rsc commented Dec 28, 2009

Comment 2:

Labels changed: added gccgo.

Owner changed to i...@golang.org.

@ianlancetaylor
Copy link
Contributor

Comment 3:

This error is coming from the .go_export section.  The gccgo import/export machinery 
will need an overhaul for Mac OS.  I don't know who will do that.

Status changed to LongTerm.

@rsc
Copy link
Contributor

rsc commented Jul 15, 2010

Comment 4:

Labels changed: added expertneeded.

@rsc
Copy link
Contributor

rsc commented Apr 20, 2011

Comment 5:

Status changed to HelpWanted.

@rsc
Copy link
Contributor

rsc commented Apr 20, 2011

Comment 6:

Issue #1721 has been merged into this issue.

@ianlancetaylor
Copy link
Contributor

Comment 7:

See also http://gcc.gnu.org/PR46986

@gopherbot
Copy link
Author

Comment 8 by khronnuz:

When I try to compile on Snow Leopard 10.6.7 with xcode 4.2 I get:
cgo_bsd.go:5[_obj/cgo_bsd.cgo1.go:8]: undefined: _Cconst_AI_MASK
cgo_unix.go:69[_obj/cgo_unix.cgo1.go:72]: undefined: _Cconst_AI_ALL
cgo_unix.go:69[_obj/cgo_unix.cgo1.go:72]: undefined: _Cconst_AI_V4MAPPED
cgo_unix.go:69[_obj/cgo_unix.cgo1.go:72]: undefined: _Cconst_AI_CANONNAME
make[1]: *** [_go_.6] Error 1
make: *** [net.install] Error 1

@ianlancetaylor
Copy link
Contributor

Comment 9:

This issue is about gccgo, not 6g.  Comment #8 is about 6g.  You should open a new issue
for 6g.

@rsc
Copy link
Contributor

rsc commented Jun 13, 2011

Comment 10:

issue #1881

@gopherbot
Copy link
Author

Comment 11 by anders.f.bjorklund:

The gcc bug report (46896) has patches for import/export as per Comment #3:
http://gcc.gnu.org/bugzilla/attachment.cgi?id=25177 (__GNU_GO __go_export)

@rsc
Copy link
Contributor

rsc commented Oct 6, 2011

Comment 12:

Labels changed: added priority-low.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 13:

Labels changed: added priority-someday.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 15:

Labels changed: added repo-gccgo.

@rsc
Copy link
Contributor

rsc commented Mar 3, 2014

Comment 16:

Adding Release=None to all Priority=Someday bugs.

Labels changed: added release-none.

@ALTree
Copy link
Member

ALTree commented Jan 29, 2018

Since

OS X 10.6 (Snow Leopard) is explicitly unsupported.

this issue can be closed.

@ALTree ALTree closed this as completed Jan 29, 2018
@ianlancetaylor ianlancetaylor changed the title gccgo: compilation fails on snow leopard gccgo: compilation fails on Darwin Jan 29, 2018
@ianlancetaylor
Copy link
Contributor

I like the way you think, but it doesn't work on any more recent release of Darwin either. I changed the title.

@ALTree
Copy link
Member

ALTree commented Jan 30, 2018

@ianlancetaylor oops. Thanks for noticing.

@simonhf
Copy link

simonhf commented May 14, 2021

Following along as I'd love to have a go with gccgo on Darwin... :-)

@barracuda156
Copy link

Any updates here?

Upstream ticket is here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986

@ianlancetaylor
Copy link
Contributor

I don't think anybody is working on this.

@barracuda156
Copy link

barracuda156 commented Aug 4, 2023

I don't think anybody is working on this.

@ianlancetaylor I see. That’s upsetting, but what to do.

P. S. Since the old Go which is bootstrappable from C is x86-only, and there are no binaries for ppc, we cannot get Go on Darwin PPC in a conventional way. Perhaps the old Go is fixable, but when I reviewed the source code last time it appeared non-trivial: it was not clear which values should be set for a number of arch-specific defines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants