public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: reichelt@igpm.rwth-aachen.de
To: gcc-gnats@gcc.gnu.org
Subject: bootstrap/5117: irix6.5 bootstrap failure when using SGI's compiler
Date: Fri, 14 Dec 2001 08:16:00 -0000	[thread overview]
Message-ID: <20011214161114.20814.qmail@sources.redhat.com> (raw)


>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 <sys/types.h> doesn't define.  */
-#define pid_t int
+/* #undef pid_t */
 
 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
 /* #undef size_t */
@@ -80,7 +80,7 @@
 /* #undef HAVE_GAS_FILDS_FISTS */
 
 /* Define to `int' if <sys/types.h> 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 <sys/times.h> defines struct tms. */
-/* #undef HAVE_STRUCT_TMS */
+#define HAVE_STRUCT_TMS 1
 
 /* Define if <time.h> 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:


             reply	other threads:[~2001-12-14 16:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-14  8:16 reichelt [this message]
2001-12-14 10:51 rodrigc
2001-12-14 10:56 rodrigc
2001-12-17  1:26 Reichelt
2002-01-02 22:39 rodrigc
2002-01-08 12:46 Reichelt
2002-01-08 13:26 Reichelt
2002-01-10  2:36 Reichelt
2002-01-11  4:43 rodrigc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011214161114.20814.qmail@sources.redhat.com \
    --to=reichelt@igpm.rwth-aachen.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).