Subject: Re: trouble compiling gcc3 on IRIX64 6.5.20m
To: Jeremy C. Reed <reed@reedmedia.net>
From: Ryan Cresawn <cresawn@chass.utoronto.ca>
List: tech-pkg
Date: 11/24/2003 17:01:33
Jeremy,

Oops!  So I ran 'bmake' again and all of the output is below.  It's
not that much since I didn't run 'bmake clean'.

Ryan


# bmake
===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Building for gcc3-3.3nb5
gmake[1]: Entering directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/libiberty'
gmake[2]: Entering directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/libiberty/testsuite'
gmake[2]: Nothing to be done for all'.
gmake[2]: Leaving directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/libiberty/testsuite'
gmake[1]: Leaving directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/libiberty'
gmake[1]: Entering directory /usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc'
(cd intl && /usr/pkg/bin/gmake all)
gmake[2]: Entering directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/intl'
gmake[2]: Nothing to be done for all'.
gmake[2]: Leaving directory /usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/intl'
/usr/pkg/bin/gmake
GCC_FOR_TARGET="/usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/xgcc
-B/usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/
-B/usr/pkg/gcc-3.3/mips-sgi-irix6.5/bin/
-B/usr/pkg/gcc-3.3/mips-sgi-irix6.5/lib/ -isystem
/usr/pkg/gcc-3.3/mips-sgi-irix6.5/include" \
  BUILD_PREFIX="" BUILD_PREFIX_1="loser-" \
    AR_FOR_TARGET="ar" \
      AR_CREATE_FOR_TARGET="ar  rc" \
        AR_FLAGS_FOR_TARGET="" \
	  CFLAGS="-O2 -I/usr/pkg/include -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long " \
  RANLIB_FOR_TARGET="true" \
    RANLIB_TEST_FOR_TARGET="[ -f true ] || ( [ "mips-sgi-irix6.5" =
"mips-sgi-irix6.5" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
  NM_FOR_TARGET="/usr/bin/nm" AWK="/usr/bin/awk" \
    LIBGCC2_CFLAGS="-O2  -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \
  INCLUDES="-I. -I. -I. -I./. -I./config -I./../include" \
    CONFIG_H="config.h auto-host.h ./../include/ansidecl.h
./config/mips/iris6.h ./defaults.h ./defaults.h insn-constants.h
insn-flags.h" MACHMODE_H="machmode.h machmode.def " \
  LIB1ASMSRC='' \
    MAKEOVERRIDES= \
      -f libgcc.mk all
      gmake[2]: Entering directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc'
for d in libgcc mabi=64 libgcc/mabi=64; do \
  if [ -d $d ]; then true; else /bin/sh ./mkinstalldirs $d; fi; \
  done
  if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
  gmake[2]: Leaving directory /usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc'
  echo timestamp > stmp-multilib
  gmake[1]: Leaving directory /usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc'
  gmake[1]: Entering directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/mips-sgi-irix6.5/libiberty'
if [ x"" != x ]; then \
  /usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/xgcc
-B/usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/
-B/usr/pkg/gcc-3.3/mips-sgi-irix6.5/bin/
-B/usr/pkg/gcc-3.3/mips-sgi-irix6.5/lib/ -isystem
/usr/pkg/gcc-3.3/mips-sgi-irix6.5/include -c -DHAVE_CONFIG_H -O2 -O2
-I/usr/pkg/include -I. -I./../../include  -W -Wall -Wtraditional
-pedantic  fibheap.c -o pic/fibheap.o; \
else true; fi
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/xgcc
-B/usr/pkgsrc/lang/gcc3/work/gcc-3.3/gcc/
-B/usr/pkg/gcc-3.3/mips-sgi-irix6.5/bin/
-B/usr/pkg/gcc-3.3/mips-sgi-irix6.5/lib/ -isystem
/usr/pkg/gcc-3.3/mips-sgi-irix6.5/include -c -DHAVE_CONFIG_H -O2 -O2
-I/usr/pkg/include -I. -I./../../include  -W -Wall -Wtraditional
-pedantic fibheap.c -o fibheap.o
fibheap.c: In function fibheap_union':
fibheap.c:166: warning: implicit declaration of function free'
fibheap.c:171: warning: function free' was previously declared within
a block
fibheap.c:187: warning: function free' was previously declared within
a block
fibheap.c: In function fibheap_extract_min':
fibheap.c:206: warning: function free' was previously declared within
a block
fibheap.c: In function fibheap_delete_node':
fibheap.c:285: error: LONG_MIN' undeclared (first use in this function)
fibheap.c:285: error: (Each undeclared identifier is reported only once
fibheap.c:285: error: for each function it appears in.)
fibheap.c: In function fibheap_delete':
fibheap.c:297: warning: function free' was previously declared within
a block
fibheap.c: In function fibheap_consolidate':
fibheap.c:395: warning: implicit declaration of function memset'
gmake[1]: *** [fibheap.o] Error 1
gmake[1]: Leaving directory
/usr/pkgsrc/lang/gcc3/work/gcc-3.3/mips-sgi-irix6.5/libiberty'
gmake: *** [all-target-libiberty] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc3
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc3
# 


On Mon, Nov 24, 2003 at 01:44:30PM -0800, Jeremy C. Reed wrote:
> On Mon, 24 Nov 2003, Ryan Cresawn wrote:
> 
> >   ... successful compilation output removed ...
> 
> You also remove the line that caused the problem.
> 
> >   gmake[1]: *** [fibheap.o] Error 1
> >   gmake[1]: Leaving directory
> >   /usr/pkgsrc/lang/gcc3/work/gcc-3.3/mips-sgi-irix6.5/libiberty'
> >   gmake: *** [all-target-libiberty] Error 2
> 
>    Jeremy C. Reed
>    http://www.reedmedia.net/