ada/10019: Can't bootstrap gcc on AIX with Ada enabled
laurent.goujon@online.fr
laurent.goujon@online.fr
Mon Mar 10 18:06:00 GMT 2003
>Number: 10019
>Category: ada
>Synopsis: Can't bootstrap gcc on AIX with Ada enabled
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 10 17:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Laurent Goujon
>Release: gcc version 3.2.2
>Organization:
>Environment:
OS : IBM AIX 5.1.0
ARCH : RS6000
>Description:
When bootstrapping gcc with ada-language enabled, there's a conflit in the declaration of the function nanosleep in ada/init.c
It seems that AIX 5L provides some "linux" functions like nanosleep...
>How-To-Repeat:
$ cd (builddir)
$ ./configure --enable-languages=all
$ cd (srcdir)/gcc/ada
$ touch treeprs.ads [es]info.h nmake.ad[bs]
$ cd (buildir)
$ make bootstrap
result :
gcc -c -DIN_GCC `echo -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` \
-I- -I. -I.. -I../../../gcc-3.2.2/gcc/ada -I../../../gcc-3.2.2/gcc/ada/.. -I../../../gcc-3.2.2/gcc/ada/../config -I../../../gcc-3.2.2/gcc/ada/../../include -fexceptions ../../../gcc-3.2.2/gcc/ada/init.c
../../../gcc-3.2.2/gcc/ada/init.c:205:1: warning: "SA_NODEFER" redefined
In file included from /usr/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.2.1/include/sys/wait.h:48,
from /usr/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.2.1/include/stdlib.h:231,
from ../../../gcc-3.2.2/gcc/system.h:134,
from ../../../gcc-3.2.2/gcc/ada/init.c:56:
/usr/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.2.1/include/sys/signal.h:389:1: warning: this is the location of the previous definition
../../../gcc-3.2.2/gcc/ada/init.c:211: conflicting types for `nanosleep'
/usr/include/time.h:210: previous declaration of `nanosleep'
../../../gcc-3.2.2/gcc/ada/init.c: In function `nanosleep':
../../../gcc-3.2.2/gcc/ada/init.c:218: warning: implicit declaration of function `nsleep'
>Fix:
add #ifdef ! defined(_AIX51) above the nanosleep definition in init.c and #endif below !
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list