Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: > Thanks. Unfortunately, this broke bootstrap on Solaris 10 and 11: > > /var/gcc/regression/trunk/11-gcc/build/./gcc/include-fixed/sys/feature_tests.h:367:2: > error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 > applications require the use of c99" > make[4]: *** [go-main.o] Error 1 > > Compiling with _XOPEN_SOURCE=600 only works with -std=gnu99 (c99 alone > breaks due to the uses of asm). Initially, I meant to apply this > globally to match what mksysinfo.sh does, but unfortunately that broke > x86_64-unknown-linux-gnu bootstrap: libgo.so fails to link: > > .libs/go-byte-array-to-string.o: In function `__pthread_cleanup_routine': > /usr/include/pthread.h:580: multiple definition of `__pthread_cleanup_routine' > .libs/go-append.o:/usr/include/pthread.h:580: first defined here > .libs/go-defer.o: In function `__pthread_cleanup_routine': > /usr/include/pthread.h:580: multiple definition of `__pthread_cleanup_routine' > .libs/go-append.o:/usr/include/pthread.h:580: first defined here > > and many more. I've therefore settled for the follwing patch, which > allowed i386-pc-solaris2.11 bootstrap to complete.
Thanks. Patch committed. Ian