From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24205 invoked by alias); 10 Mar 2003 17:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24150 invoked by uid 71); 10 Mar 2003 17:26:00 -0000 Resent-Date: 10 Mar 2003 17:26:00 -0000 Resent-Message-ID: <20030310172600.24148.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, laurent.goujon@online.fr Received: (qmail 21659 invoked by uid 48); 10 Mar 2003 17:17:07 -0000 Message-Id: <20030310171707.21658.qmail@sources.redhat.com> Date: Mon, 10 Mar 2003 17:26:00 -0000 From: laurent.goujon@online.fr Reply-To: laurent.goujon@online.fr To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: ada/10019: Can't bootstrap gcc on AIX with Ada enabled X-SW-Source: 2003-03/txt/msg00486.txt.bz2 List-Id: >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: