Subject: anyone compiling gcc from cvs?
To: None <netbsd-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-users
Date: 08/23/2004 20:42:50
I'm actually looking for a fortran 90 compiler to run under NetBSD. It
seems that gcc 3.5 has such a beast, so I tried to compile it, but have
already got stuck at the configure stage..

First attempt (in /usr/obj/local/gcc):

/usr/src/local/gcc/configure --prefix=/usr/local/expt_gcc --enable-languages=f95

Result:

checking for correct version of gmp.h... no
configure: error: 
The following requested languages were not found: f95

Second attempt:

/usr/src/local/gcc/gcc/configure --prefix=/usr/local/expt_gcc --enable-languages=f95

.. configure succeeds, but then:

% gmake
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
sed -e "/^@@ifobjc.*/,/^@@end_ifobjc.*/d" \
    -e "/^@@ifc.*/d" -e "/^@@end_ifc.*/d" /usr/src/local/gcc/gcc/c-parse.in >>tmp-c-parse.y
/usr/local/bin/bash /usr/src/local/gcc/gcc/../move-if-change tmp-c-parse.y c-parse.y
bison  -o c-parse.c c-parse.y
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/usr/local/bin/bash /usr/src/local/gcc/gcc/mkconfig.sh config.h
TARGET_CPU_DEFAULT="" \
HEADERS="config/i386/i386.h config/i386/unix.h config/i386/att.h config/dbxelf.h config/elfos.h config/netbsd.h config/netbsd-elf.h config/i386/netbsd-elf.h defaults.h" DEFINES="NETBSD_ENABLE_PTHREADS" \
/usr/local/bin/bash /usr/src/local/gcc/gcc/mkconfig.sh tm.h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/usr/local/bin/bash /usr/src/local/gcc/gcc/mkconfig.sh bconfig.h
gcc -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I/usr/src/local/gcc/gcc -I/usr/src/local/gcc/gcc/. -I/usr/src/local/gcc/gcc/../include -I/usr/src/local/gcc/gcc/../libcpp/include   \
    /usr/src/local/gcc/gcc/genmodes.c -o genmodes.o
gcc -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I/usr/src/local/gcc/gcc -I/usr/src/local/gcc/gcc/. -I/usr/src/local/gcc/gcc/../include -I/usr/src/local/gcc/gcc/../libcpp/include   \
    /usr/src/local/gcc/gcc/errors.c -o errors.o
gmake: *** No rule to make target `../libiberty/libiberty.a', needed by `genmodes'.  Stop.


Any thoughts on what to do next? I note that libiberty appears in
configure.in:

  *-*-netbsd*)
    # Skip some stuff on all NetBSD configurations.
    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"

Is that relevant?

Cheers,

Patrick