This is the mail archive of the gcc-help@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]

Mainline snapshot build problem on i686 Redhat 8.


Hi,

I'm new to building gcc, but I really want to get hold of the up-to-date
gfortran front end that is now in mainline to use and test it. But I'm
having problems with the build and would appreciate any help. (Apologies
if I've included too much detail, or not enough.)

I'm trying to build from the daily snapshot of mainline found at:

http://people.redhat.com/dnovillo/pub/mainline/snapshot/mainline-20040625.tar.bz2

To build, I've been using the script copied at the bottom of this email,
which was posted to the newsgroup comp.lang.fortran a while back. The main
commands are (I've wrapped the long line here for the email only):

Attempt 1:
----------

nice ../gcc/configure --disable-checking --prefix=/tmp/gcc
    --enable-languages=c,f95 --with-gmp=/usr/lib/
nice make bootstrap

This fails with:

/home/pmzag/Gfortran/objdir/gcc/xgcc -B/home/pmzag/Gfortran/objdir/gcc/
-B/tmp/gcc/i686-pc-linux-gnu/bin/ -B/tmp/gcc/i686-pc-linux-gnu/lib/
-isystem /tmp/gcc/i686-pc-linux-gnu/include -isystem
/tmp/gcc/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc/libmudflap -I. -O2 -g -O2 -Wall -ffunction-sections
-fdata-sections -O2 -g -O2 -MT mf-runtime.lo -MD -MP -MF
.deps/mf-runtime.Tpo -c ../../../gcc/libmudflap/mf-runtime.c  -fPIC -DPIC
-o .libs/mf-runtime.o
../../../gcc/libmudflap/mf-runtime.c:245: error: redefinition of `struct
option'
make[4]: *** [mf-runtime.lo] Error 1
make[4]: Leaving directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libmudflap'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libmudflap'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libmudflap'
make[1]: *** [all-target-libmudflap] Error 2
make[1]: Leaving directory `/home/pmzag/Gfortran/objdir'
make: *** [bootstrap] Error 2
cd ../gcc && autogen Makefile.def
fserr 2: cannot stat Makefile.def:  No such file or directory
make: *** [../gcc/Makefile.in] Error 1
bash$

Attempt 2:
----------

As Attempt 1 fails in libmudflap, I added the configure option
--disable-libmudflap, so I use:

nice ../gcc/configure --disable-checking --prefix=/tmp/gcc
    --enable-languages=c,f95 --with-gmp=/usr/lib/ --disable-libmudflap
nice make bootstrap

which fails with:

make[3]: Entering directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libiberty/testsuite'
make[3]: Entering directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libiberty'

...[snip some output]...

                        LIBCFLAGS="-O2 -g -O2 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -D_GNU_SOURCE
-fno-implicit-templates ${flags}" \
                        LDFLAGS=" ${flags}" \
                        MULTIFLAGS="${flags}" \
                        DESTDIR="" \
                        INSTALL="/usr/bin/install -c" \
                        INSTALL_DATA="/usr/bin/install -c -m 644" \
                        INSTALL_PROGRAM="/usr/bin/install -c" \
                        INSTALL_SCRIPT="/usr/bin/install -c" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[3]: Leaving directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libiberty'
make[2]: Leaving directory
`/home/pmzag/Gfortran/objdir/i686-pc-linux-gnu/libiberty'
make[1]: Leaving directory `/home/pmzag/Gfortran/objdir'
cd ../gcc && autogen Makefile.def
fserr 2: cannot stat Makefile.def:  No such file or directory
make: *** [../gcc/Makefile.in] Error 1
bash$




If this is a mainline problem (rather than a mistake by me) is there
another place I can build a recent gfortran from?

Many thanks for any help.

Best wishes,
Andrew



BTW: Here's the system details:

bash$ uname -a
Linux tazmx 2.4.18-24.8.0 #1 Fri Jan 31 06:51:30 EST 2003 i686 i686 i386
GNU/Linux

and I'm building with:

bash$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux --with-system-zlib
--enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

And finally here's the full build script I'm using, (from c.l.f. post):

#! /bin/bash
# build daily snapshot of tree-ssa (bootstrapped for i686)

installdir=/home/pmzag/Gfortran/
cd $installdir

nice rm -rf gcc
rm -rf objdir
mkdir objdir

dato=`date +%Y%m%d`
file=/home/pmzag/mainline-$dato.tar.bz2
echo Uncompressing and building from file $file

nice bunzip2 -c -d $file | tar xf -
nice rm -f $file

cd objdir

nice ../gcc/configure --disable-checking --prefix=/tmp/gcc
    --enable-languages=c,f95 --with-gmp=/usr/lib/
nice make bootstrap
rm -rf $installdir/gcc
mkdir $installdir/gcc
rm -rf /tmp/gcc
cd /tmp
ln -s $installdir/gcc .
cd -
nice make install


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