IRIX 6.2 egcs-971016/gcc/Makefile.in problem

Olav Kolbu olav.kolbu@usit.uio.no
Mon Oct 20 07:46:00 GMT 1997


Hi there!

Good to see that there is a C compiler that finally compiles more or less
cleanly under IRIX 6.2. Keep up the good work. Here are a couple of bugs
though:

The following block from gcc/Makefile.in creates a problem when
compiling using the IRIX 6.2 compilation suite (/bin/make, /bin/cc etc). 
'@inhibit_libc@' disappears and the \ ends up collecting
the first line of the comment below. This kinda messes things up :-)

-------------------
# Options to use when compiling libgcc2.a.
# -g1 causes output of debug info only for file-scope entities.
# we use this here because that should be enough, and also
# so that -g1 will be tested.
LIBGCC2_DEBUG_CFLAGS = -g1
LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS)
$(TARGET_LIBGCC2_CFLAGS)
$(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
        @inhibit_libc@

# Additional options to use when compiling libgcc2.a.
# Some targets override this to -Iinclude
--------------------

The obvious fix appears to be to break the line differently, avoiding the 
issue:

bash-2.00# diff Makefile.in.orig Makefile.in
272,273c272,274
< LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS)
$(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED \
<       @inhibit_libc@
---
> LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) \
> $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
> -D__GCC_FLOAT_NOT_NEEDED @inhibit_libc@


Other than that, gcc/f/bld.c fails to compile on a strange syntax error.
But since I used IRIX cc and the docs state that you need gcc to compile
the fortran bit I didn't bother too much with that. Let me know if you
want them.

Anyone interested in general warnings? There were a few that looked like
they could cause problems, typically "expression always 0" kinda things.

				OK

PS It failed to install as well, but I haven't had time to find out
  which bit failed (with "don't know how to make install"). I just added
  -k to make and continued. :-)

--
Olav Kolbu (Olav.Kolbu@usit.uio.no)
System Administrator
Center for Information Technology Services/Section for Operations
University of Oslo
P.O. Box 1059 Blindern, N-0316 Oslo, Norway
Phone: +47 22 85 27 80, Fax: +47 22 85 27 30





More information about the Gcc-bugs mailing list