From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11178 invoked by alias); 21 Apr 2010 18:31:51 -0000 Received: (qmail 11125 invoked by uid 22791); 21 Apr 2010 18:31:39 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=BAYES_40,TW_PX,TW_XJ,TW_XZ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cernmx30.cern.ch (HELO CERNMX30.cern.ch) (137.138.144.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Apr 2010 18:31:24 +0000 Received: from cernfe12.cern.ch (137.138.140.37) by cernmxgwlb2.cern.ch (137.138.144.177) with Microsoft SMTP Server (TLS) id 14.0.639.21; Wed, 21 Apr 2010 20:31:20 +0200 Received: from localhost.localdomain (137.138.5.217) by smtp.cern.ch (137.138.140.59) with Microsoft SMTP Server (TLS) id 8.2.176.0; Wed, 21 Apr 2010 20:31:19 +0200 Received: by localhost.localdomain (sSMTP sendmail emulation); Wed, 21 Apr 2010 20:31:16 +0200 Date: Thu, 22 Apr 2010 06:48:00 -0000 From: Peter Elmer To: Subject: Problems building gcc4.5.0 fortran compiler when gold is enabled Message-ID: <20100421183116.GK24476@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.5.20 (2009-06-14) Keywords: CERN SpamKiller Note: -50 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00233.txt.bz2 Hi, I'm having some problems building gcc4.5.0 on linux/x86_64 with the fortr= an=20 compiler, graphite and gold all enabled at the same time. The build dies wi= th=20 errors as in (a) below when attempting to link f951 itself (in stage 2 of t= he compiler build).=20 The machine I'm using for the build itself is a RHEL5-derived system=20 (Scientific Linux 5) with gcc4.1.2 and binutils 2.17.50 on the system=20 itself. I however build and use binutils 2.20.1 as part of my build. Since = a=20 number of pieces are involved in building with gcc450/graphite/gold, I've=20 summarized the full build procedure I'm using in a single flat recipe in (b= )=20 below.=20 Does anyone recognize this problem? Is there something missing or=20 incorrect in my build recipe or something to be fixed in the gcc gfortran=20 build when gold and graphite (using ppl) are simultaneously enabled?=20 cheers, Pete (a) /build/45go/BUILD/slc5_amd64_gcc450/external/gcc/4.5.0/gcc-4.5.0/obj/./prev= -gcc/xgcc -B/build/45go/BUILD/slc5_amd64_gcc450/external/gcc/4.5.0/gcc-4.5.= 0/obj/./prev-gcc/ -B/build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/x86_64= -unknown-linux-gnu/bin/ -B/build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/= x86_64-unknown-linux-gnu/bin/ -B/build/45go/slc5_amd64_gcc450/external/gcc/= 4.5.0/x86_64-unknown-linux-gnu/lib/ -isystem /build/45go/slc5_amd64_gcc450/= external/gcc/4.5.0/x86_64-unknown-linux-gnu/include -isystem /build/45go/sl= c5_amd64_gcc450/external/gcc/4.5.0/x86_64-unknown-linux-gnu/sys-include = -g -O2 -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-p= rototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-lo= ng-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition= -Wc++-compat -DHAVE_CONFIG_H -o f951 \ fortran/arith.o fortran/array.o fortran/bbt.o fortran/check= .o fortran/cpp.o fortran/data.o fortran/decl.o fortran/dump-parse-tree.o fo= rtran/error.o fortran/expr.o fortran/interface.o fortran/intrinsic.o fortra= n/io.o fortran/iresolve.o fortran/match.o fortran/matchexp.o fortran/misc.o= fortran/module.o fortran/openmp.o fortran/options.o fortran/parse.o fortra= n/primary.o fortran/resolve.o fortran/scanner.o fortran/simplify.o fortran/= st.o fortran/symbol.o fortran/target-memory.o fortran/convert.o fortran/de= pendency.o fortran/f95-lang.o fortran/trans.o fortran/trans-array.o fortran= /trans-common.o fortran/trans-const.o fortran/trans-decl.o fortran/trans-ex= pr.o fortran/trans-intrinsic.o fortran/trans-io.o fortran/trans-openmp.o fo= rtran/trans-stmt.o fortran/trans-types.o main.o libbackend.a ../libcpp/lib= cpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libi= berty.a ../libdecnumber/libdecnumber.a attribs.o -L/build/45go/slc5_amd64_= gcc450/external/gcc/4.5.0/tmp/cloog-ppl/lib -lcloog -L/build/45go/slc5_amd6= 4_gcc450/external/gcc/4.5.0/tmp/ppl/lib -lppl_c -lppl -lgmpxx -L/build/45go= /slc5_amd64_gcc450/external/gcc/4.5.0/tmp/gmp/lib -L/build/45go/slc5_amd64_= gcc450/external/gcc/4.5.0/tmp/mpfr/lib -L/build/45go/slc5_amd64_gcc450/exte= rnal/gcc/4.5.0/tmp/mpc/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/x86_64-unknown-linux-gnu/b= in/ld: /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/tmp/ppl/lib/libppl_= c.a(ppl_c_implementation_common.o): in function ppl_io_asprint_variable:ppl= _c_implementation_common.cc:2004: error: undefined reference to '__cxa_begi= n_catch' /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/x86_64-unknown-linux-gnu/b= in/ld: /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/tmp/ppl/lib/libppl_= c.a(ppl_c_implementation_common.o): in function ppl_io_asprint_variable:ppl= _c_implementation_common.cc:2004: error: undefined reference to '__cxa_end_= catch' /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/x86_64-unknown-linux-gnu/b= in/ld: /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/tmp/ppl/lib/libppl_= c.a(ppl_c_implementation_common.o): in function ppl_io_asprint_variable:ppl= _c_implementation_common.cc:2004: error: undefined reference to '__cxa_begi= n_catch' /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/x86_64-unknown-linux-gnu/b= in/ld: /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/tmp/ppl/lib/libppl_= c.a(ppl_c_implementation_common.o): in function ppl_io_asprint_variable:ppl= _c_implementation_common.cc:2004: error: undefined reference to '__cxa_end_= catch' <... many other errors including various std:: symbols ...> (b) # Starting from some convenient directory in which to do a build export MYBUILD=3D$PWD mkdir $MYBUILD/install mkdir $MYBUILD/tmp wget ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.5.0/gcc-4.5.0.tar.bz2 wget ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.4.tar.bz2 wget http://www.mpfr.org/mpfr-2.3.2/mpfr-2.3.2.tar.bz2 wget http://www.multiprecision.org/mpc/download/mpc-0.8.1.tar.gz wget http://www.cs.unipr.it/ppl/Download/ftp/releases/0.10.2/ppl-0.10.2.tar= .bz2 wget ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-0.15.9.tar.gz wget http://ftp.gnu.org/gnu/bison/bison-2.4.tar.bz2 wget http://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2 gtar xjf gcc-4.5.0.tar.bz2 gtar xjf gmp-4.2.4.tar.bz2 gtar xjf mpfr-2.3.2.tar.bz2 gtar xzf mpc-0.8.1.tar.gz gtar xjf ppl-0.10.2.tar.bz2 gtar xzf cloog-ppl-0.15.9.tar.gz gtar xjf bison-2.4.tar.bz2 gtar xjf binutils-2.20.1.tar.bz2 # build bison as it is missing on the system and needed for binutils cd bison-2.4 ./configure --prefix=3D$MYBUILD/tmp/bison > configlog.out 2>&1 make -j6 > buildlog.out 2>&1 make install > installlog.out 2>&1=20 export PATH=3D$MYBUILD/tmp/bison/bin:$PATH cd ../binutils-2.20.1 ./configure --prefix=3D$MYBUILD/install --enable-gold > configlog.out 2>&1 make -j6 > buildlog.out 2>&1 # Minor fixup for the install=20 perl -p -i -e 's|LN =3D ln|LN =3D cp -p|;s|ln ([^-])|cp -p $1|g' `find . -n= ame Makefile` make install > installlog.out 2>&1 # Make temporary {gmp,mpfr,mpc,ppl,cloog-ppl} builds as they are needed=20 # for gcc4.5 with graphite enabled.=20 cd ../gmp-4.2.4 ./configure --prefix=3D$MYBUILD/tmp/gmp --disable-shared > configlog.out 2>= &1 make -j6 > buildlog.out 2>&1 make install > installlog.out 2>&1 cd ../mpfr-2.3.2 ./configure --prefix=3D$MYBUILD/tmp/mpfr --with-gmp=3D$MYBUILD/tmp/gmp --di= sable-shared > configlog.out 2>&1 make -j6 > buildlog.out 2>&1 make install > installlog.out 2>&1 cd ../mpc-0.8.1 ./configure --prefix=3D$MYBUILD/tmp/mpc --with-gmp=3D$MYBUILD/tmp/gmp --wit= h-mpfr=3D$MYBUILD/tmp/mpfr --disable-shared > configlog.out 2>&1 make -j6 > buildlog.out 2>&1 make install > installlog.out 2>&1 cd ../ppl-0.10.2 ./configure --prefix=3D$MYBUILD/tmp/ppl --disable-shared > configlog.out 2>= &1 make -j6 > buildlog.out 2>&1 make install > installlog.out 2>&1 cd ../cloog-ppl-0.15.9 ./configure --prefix=3D$MYBUILD/tmp/cloog-ppl --with-ppl=3D$MYBUILD/tmp/ppl= --with-gmp=3D$MYBUILD/tmp/gmp --disable-shared > configlog.out 2>&1 make -j6 > buildlog.out 2>&1 make install > installlog.out 2>&1 # Build the compiler cd ../gcc-4.5.0 mkdir -p obj cd obj ../configure --prefix=3D$MYBUILD/install --enable-languages=3Dc,c++,fortran= --with-gmp=3D$MYBUILD/tmp/gmp --with-mpfr=3D$MYBUILD/tmp/mpfr --with-mpc= =3D$MYBUILD/tmp/mpc --with-ppl=3D$MYBUILD/tmp/ppl --with-cloog=3D$MYBUILD/t= mp/cloog-ppl --enable-shared --enable-gold > configlog.out 2>&1 make -j6 bootstrap > buildlog.out 2>&1 ------------------------------------------------------------------------- Peter Elmer E-mail: Peter.Elmer@cern.ch Phone: +41 (22) 767-4644 Address: CERN Division PPE, Bat. 32 2C-14, CH-1211 Geneva 23, Switzerland -------------------------------------------------------------------------