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 ^
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.
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.
Gccgo doesn't work on Darwin anyhow. I don't think the problems are hard to fix.
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...
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
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 ***
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