This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bootstrap/5117: irix6.5 bootstrap failure when using SGI's compiler



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]