Re: [Gc] Build failure on Solaris 10 with Sun Studio

Ivan Maidanski ivmai at mail.ru
Wed Sep 8 14:22:06 PDT 2010


Hi!

Thanks. Fixed (in some other way).


Wed, 08 Sep 2010 00:05:38 +0200 ludo at gnu.org (Ludovic CourtХs):

> 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