[Gc] Build failure on Solaris 10 with Sun Studio

Ludovic Courtès ludo at gnu.org
Tue Sep 7 15:05:38 PDT 2010


Hello,

GC 7.2alpha4 (and 7.1) fails to build on Solaris 10
(sparc-sun-solaris2.10) with Sun Studio (Sun C 5.8 Patch 121015-06
2007/10/03):

--8<---------------cut here---------------start------------->8---
/bin/bash ./libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H    -I./include -I../include  -I./libatomic_ops/src  -I../libatomic_ops/src   -g -O -c -o specific.lo ../specific.c
libtool: compile:  cc -DHAVE_CONFIG_H -I./include -I../include -I./libatomic_ops/src -I../libatomic_ops/src -g -O -c ../specific.c  -KPIC -DPIC -o .libs/specific.o
"../include/private/specific.h", line 57: warning: no explicit type given
"../include/private/specific.h", line 57: syntax error before or at: unsigned
"../include/private/specific.h", line 84: warning: no explicit type given
"../include/private/specific.h", line 84: syntax error before or at: void
cc: acomp failed for ../specific.c
--8<---------------cut here---------------end--------------->8---

Apparently the culprit is the ‘__inline__’ keyword.

I believe this is fixed by calling ‘AC_C_INLINE’ in ‘configure.ac’ and
then using ‘inline’ instead ‘__inline__’ (info "(autoconf) C Compiler").

Thanks,
Ludo’.



More information about the Gc mailing list