From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30992 invoked by alias); 25 Jun 2004 10:16:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30939 invoked from network); 25 Jun 2004 10:16:07 -0000 Received: from unknown (HELO donut.maths.ox.ac.uk) (163.1.148.3) by sourceware.org with SMTP; 25 Jun 2004 10:16:07 -0000 Received: by donut.maths.ox.ac.uk (Postfix, from userid 627) id 0997E1C224; Fri, 25 Jun 2004 11:16:07 +0100 (BST) Received: from cream-puff.maths.ox.ac.uk (cream-puff.maths.ox.ac.uk [163.1.148.1]) by donut.maths.ox.ac.uk (Postfix) with ESMTP id CAB671C209 for ; Fri, 25 Jun 2004 11:16:06 +0100 (BST) Received: (from grief@localhost) by cream-puff.maths.ox.ac.uk (8.9.3/8.8.6) id LAA387831; Fri, 25 Jun 2004 11:16:06 +0100 (BST) Date: Fri, 25 Jun 2004 10:16:00 -0000 From: Andrew Grief To: gcc-help@gcc.gnu.org Subject: Mainline snapshot build problem on i686 Redhat 8. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Bogosity: No, tests=bogofilter, spamicity=0.281436, version=0.14.5.4 X-SW-Source: 2004-06/txt/msg00254.txt.bz2 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