Bug 55969 - libgo fails to build on darwin
Summary: libgo fails to build on darwin
Status: RESOLVED DUPLICATE of bug 46986
Alias: None
Product: gcc
Classification: Unclassified
Component: go (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 14:00 UTC by Richard Biener
Modified: 2014-10-23 03:34 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-darwin
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
preprocessed source (15.33 KB, application/octet-stream)
2013-01-14 14:00 UTC, Richard Biener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Biener 2013-01-14 14:00:29 UTC
Created attachment 29160 [details]
preprocessed source

I get

/Users/richard/obj/./gcc/xgcc -B/Users/richard/obj/./gcc/
-B/usr/local/x86_64-apple-darwin12.2.0/bin/
-B/usr/local/x86_64-apple-darwin12.2.0/lib/ -isystem
/usr/local/x86_64-apple-darwin12.2.0/include -isystem
/usr/local/x86_64-apple-darwin12.2.0/sys-include    -DHAVE_CONFIG_H -I.
-I../../../src/trunk/libgo  -I ../../../src/trunk/libgo/runtime
-I../../../src/trunk/libgo/../libffi/include -I../libffi/include
-pthread  -fexceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings
-Wcast-qual -Werror -minline-all-stringops -D_GNU_SOURCE
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I
../../../src/trunk/libgo/../libgcc -I
../../../src/trunk/libgo/../libbacktrace -I ../../gcc/include -O2 -g -MT
go-main.o -MD -MP -MF .deps/go-main.Tpo -c -o go-main.o `test -f
'runtime/go-main.c' || echo
'../../../src/trunk/libgo/'`runtime/go-main.c -save-temps
In file included from ../../../src/trunk/libgo/runtime/runtime.h:18:0,
                 from ../../../src/trunk/libgo/runtime/go-main.c:17:
/usr/include/ucontext.h:43:2: error: #error The deprecated ucontext
routines require _XOPEN_SOURCE to be defined
 #error The deprecated ucontext routines require _XOPEN_SOURCE to be defined
  ^
Comment 1 Richard Biener 2013-01-14 14:09:53 UTC
dnl See whether setcontext changes the value of TLS variables.
AC_CACHE_CHECK([whether setcontext clobbers TLS variables],

probably doesn't check what it should because of this, too.
Comment 2 Jack Howarth 2013-01-14 15:39:48 UTC
Shouldn't this be part of PR46986? I was unaware that any of those issues mentioned in that PR had been addressed in gcc trunk for darwin yet.
Comment 3 Ian Lance Taylor 2013-01-14 17:35:21 UTC
Gccgo doesn't work on Darwin anyhow.  I don't think the problems are hard to fix.
Comment 4 rguenther@suse.de 2013-01-14 18:23:21 UTC
ian at airs dot com <gcc-bugzilla@gcc.gnu.org> wrote:

>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55969
>
>--- Comment #3 from Ian Lance Taylor <ian at airs dot com> 2013-01-14
>17:35:21 UTC ---
>Gccgo doesn't work on Darwin anyhow.  I don't think the problems are
>hard to
>fix.

I expected to get go excluded then as not supported...
Comment 5 ian@gcc.gnu.org 2013-02-05 22:36:31 UTC
Author: ian
Date: Tue Feb  5 22:36:20 2013
New Revision: 195768

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195768
Log:
	PR go/55969
	* configure.ac: Disable libgo on some systems where it does not
	work.

Modified:
    trunk/configure
    trunk/configure.ac
Comment 6 Ian Lance Taylor 2013-02-05 22:37:42 UTC
The top level configure script should no longer build libgo on systems like Darwin where it is known to be unsupported.

*** This bug has been marked as a duplicate of bug 46986 ***
Comment 7 ian@gcc.gnu.org 2014-10-23 03:34:34 UTC
Author: ian
Date: Thu Oct 23 03:34:02 2014
New Revision: 216573

URL: https://gcc.gnu.org/viewcvs?rev=216573&root=gcc&view=rev
Log:
Commit old ChangeLog entry forgotten in commit of actual change.

	PR go/55969
	* configure.ac: Disable libgo on some systems where it does not
	work.

Modified:
    trunk/ChangeLog