From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21481 invoked by alias); 14 Dec 2001 16:16: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 21440 invoked by uid 71); 14 Dec 2001 16:16:01 -0000 Resent-Date: 14 Dec 2001 16:16:00 -0000 Resent-Message-ID: <20011214161600.21439.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, reichelt@igpm.rwth-aachen.de Received:(qmail 20815 invoked by uid 61); 14 Dec 2001 16:11:14 -0000 Message-Id:<20011214161114.20814.qmail@sources.redhat.com> Date: Fri, 14 Dec 2001 08:16:00 -0000 From: reichelt@igpm.rwth-aachen.de Reply-To: reichelt@igpm.rwth-aachen.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.2 (1.1.1.1.2.21) Subject: bootstrap/5117: irix6.5 bootstrap failure when using SGI's compiler X-SW-Source: 2001-12/txt/msg00827.txt.bz2 List-Id: >Number: 5117 >Category: bootstrap >Synopsis: irix6.5 bootstrap failure when using SGI's compiler >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Dec 14 08:16:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Volker Reichelt >Release: gcc 3.1 20011210 (experimental) >Organization: >Environment: mips-sgi-irix6.5 >Description: When I try to bootstrap gcc using SGI's latest own compiler (MIPSpro 7.3.1.2m) I get several errors because of wrong entries in "gcc/auto-host.h", "gcc/Makefile" an "fastjar/config.h". Apart from that the bootstrapping process works fine. Here are the details: % diff -u gcc/auto-host.h.wrong gcc/auto-host.h --- gcc/auto-host.h.wrong Fri Dec 14 17:03:10 2001 +++ gcc/auto-host.h Tue Dec 11 18:25:19 2001 @@ -43,7 +43,7 @@ /* #undef off_t */ /* Define to `int' if doesn't define. */ -#define pid_t int +/* #undef pid_t */ /* Define to `unsigned' if doesn't define. */ /* #undef size_t */ @@ -80,7 +80,7 @@ /* #undef HAVE_GAS_FILDS_FISTS */ /* Define to `int' if doesn't define. */ -#define ssize_t int +/* #undef ssize_t */ /* Define if cpp should also search $prefix/include. */ #define PREFIX_INCLUDE_DIR "NONE/include" @@ -389,7 +389,7 @@ #define HAVE_DECL_ATOL 0 /* Define to 1 if we found this declaration otherwise define to 0. */ -#define HAVE_DECL_SBRK 0 +#define HAVE_DECL_SBRK 1 /* Define to 1 if we found this declaration otherwise define to 0. */ #define HAVE_DECL_ABORT 0 @@ -461,13 +461,13 @@ #define HAVE_DECL_TIMES 0 /* Define if defines struct tms. */ -/* #undef HAVE_STRUCT_TMS */ +#define HAVE_STRUCT_TMS 1 /* Define if defines clock_t. */ -/* #undef HAVE_CLOCK_T */ +#define HAVE_CLOCK_T 1 /* Define if host mkdir takes a single argument. */ -#define MKDIR_TAKES_ONE_ARG 1 +/* #undef MKDIR_TAKES_ONE_ARG */ /* Define to the name of the distribution. */ #define PACKAGE "gcc" The following problem also prevents a proper bootstrap if I start with gcc 2.95.3 as initial compiler: % diff -u Makefile.wrong Makefile --- Makefile.wrong Fri Dec 14 17:03:00 2001 +++ Makefile Fri Dec 14 17:07:06 2001 @@ -596,7 +596,7 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ -Wl,-soname,$(SHLIB_SONAME) \ - -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) -lc && \ + -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) && \ rm -f $(SHLIB_SONAME) && \ $(LN_S) $(SHLIB_NAME) $(SHLIB_SONAME) # ??? Irix 6.5 seems to eat the option fine (if we somehow remove the And last, but not least I get into trouble when compiling "fastjar/jartool.c" because "malloc" isn't defined properly. This can be resolved by defining #define STDC_HEADERS 1 in "fastjar/config.h", but I think "jartool.c" could need some update as well: If you do not have STDC_HEADERS, but "malloc.h" instead, then "malloc.h" should be included. >How-To-Repeat: CC=cc ../gcc-20011210/configure make bootstrap-lean >Fix: >Release-Note: >Audit-Trail: >Unformatted: