From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29387 invoked by alias); 11 May 2010 13:00:49 -0000 Received: (qmail 29377 invoked by uid 22791); 11 May 2010 13:00:47 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,TW_BJ,TW_JC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 May 2010 13:00:41 +0000 Received: from hpaq7.eem.corp.google.com (hpaq7.eem.corp.google.com [172.25.149.7]) by smtp-out.google.com with ESMTP id o4BD0duH024206 for ; Tue, 11 May 2010 06:00:39 -0700 Received: from pxi8 (pxi8.prod.google.com [10.243.27.8]) by hpaq7.eem.corp.google.com with ESMTP id o4BD0ae6001349 for ; Tue, 11 May 2010 06:00:37 -0700 Received: by pxi8 with SMTP id 8so2000889pxi.40 for ; Tue, 11 May 2010 06:00:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.188.37 with SMTP id q37mr3772579rvp.212.1273582835167; Tue, 11 May 2010 06:00:35 -0700 (PDT) Received: by 10.141.22.12 with HTTP; Tue, 11 May 2010 06:00:35 -0700 (PDT) In-Reply-To: References: <4BE7E328.70003@onetel.com> Date: Tue, 11 May 2010 13:00:00 -0000 Message-ID: Subject: Re: Build Error From: Diego Novillo To: Sandeep Soni Cc: mike , gcc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg00192.txt.bz2 [ Moved to gcc@gcc.gnu.org ] On Tue, May 11, 2010 at 08:46, Sandeep Soni wrote: > On Tue, May 11, 2010 at 4:53 PM, Diego Novillo wrot= e: >> On Tue, May 11, 2010 at 02:24, Sandeep Soni wr= ote: >> >>> I installed elfutils-libelf-devel-0.145-1 and that worked. >> >> Yes. =C2=A0Older libelfs will not work. =C2=A0However, you should've got= ten a >> configuration-time error. =C2=A0If you can reproduce, could you file a b= ug? >> =C2=A0The checking done during configuration did not spot the old version >> of libelf. >> > > Here was the configuration output: > > [root@Sandy build]# ../trunk/configure > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking target system type... i686-pc-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether ln works... yes > checking whether ln -s works... yes > checking for a sed that does not truncate output... /bin/sed > checking for gawk... gawk > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for gnatbind... no > checking for gnatmake... no > checking whether compiler driver understands Ada... no > checking how to compare bootstrapped objects... cmp > --ignore-initial=3D16 $$f1 $$f2 > checking for objdir... .libs > checking for the correct version of gmp.h... yes > checking for the correct version of mpfr.h... yes > checking for the correct version of mpc.h... yes > checking for the correct version of the gmp/mpfr/mpc libraries... yes > checking for version 0.10 (or later revision) of PPL... no > checking how to run the C preprocessor... gcc -E > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking libelf.h usability... yes > checking libelf.h presence... yes > checking for libelf.h... yes > checking gelf.h usability... yes > checking gelf.h presence... yes > checking for gelf.h... yes > checking libelf/libelf.h usability... yes > checking libelf/libelf.h presence... yes > checking for libelf/libelf.h... yes > checking libelf/gelf.h usability... yes > checking libelf/gelf.h presence... yes > checking for libelf/gelf.h... yes > checking for the correct version of libelf... yes > checking for elf_getshdrstrndx... no > checking for elf_getshstrndx... yes > The following languages will be built: c,c++,fortran,java,lto,objc > *** This configuration is not supported in the following subdirectories: > =C2=A0 =C2=A0 target-libada gnattools > =C2=A0 =C2=A0(Any other directories should still work fine.) > checking for default BUILD_CONFIG... bootstrap-debug > *** removing build-i686-pc-linux-gnu/libiberty/Makefile to force reconfig= ure > *** removing build-i686-pc-linux-gnu/fixincludes/Makefile to force reconf= igure > *** removing prev-intl/Makefile to force reconfigure > *** removing intl/Makefile to force reconfigure > *** removing prev-libiberty/Makefile to force reconfigure > *** removing libiberty/Makefile to force reconfigure > *** removing prev-zlib/Makefile to force reconfigure > *** removing zlib/Makefile to force reconfigure > *** removing prev-libcpp/Makefile to force reconfigure > *** removing libcpp/Makefile to force reconfigure > *** removing prev-libdecnumber/Makefile to force reconfigure > *** removing libdecnumber/Makefile to force reconfigure > *** removing prev-gcc/Makefile to force reconfigure > *** removing gcc/Makefile to force reconfigure > checking for bison... bison -y > checking for bison... bison > checking for gm4... no > checking for gnum4... no > checking for m4... m4 > checking for flex... flex > checking for flex... flex > checking for makeinfo... makeinfo > checking for expect... no > checking for runtest... no > checking for ar... ar > checking for as... as > checking for dlltool... no > checking for ld... ld > checking for lipo... no > checking for nm... nm > checking for ranlib... ranlib > checking for strip... strip > checking for windres... no > checking for windmc... no > checking for objcopy... objcopy > checking for objdump... objdump > checking for cc... cc > checking for c++... c++ > checking for gcc... gcc > checking for gcj... no > checking for gfortran... gfortran > checking for ar... no > checking for ar... ar > checking for as... no > checking for as... as > checking for dlltool... no > checking for dlltool... no > checking for ld... no > checking for ld... ld > checking for lipo... no > checking for lipo... no > checking for nm... no > checking for nm... nm > checking for objdump... no > checking for objdump... objdump > checking for ranlib... no > checking for ranlib... ranlib > checking for strip... no > checking for strip... strip > checking for windres... no > checking for windres... no > checking for windmc... no > checking for windmc... no > checking where to find the target ar... host tool > checking where to find the target as... host tool > checking where to find the target cc... just compiled > checking where to find the target c++... just compiled > checking where to find the target c++ for libstdc++... just compiled > checking where to find the target dlltool... host tool > checking where to find the target gcc... just compiled > checking where to find the target gcj... just compiled > checking where to find the target gfortran... just compiled > checking where to find the target ld... host tool > checking where to find the target lipo... host tool > checking where to find the target nm... host tool > checking where to find the target objdump... host tool > checking where to find the target ranlib... host tool > checking where to find the target strip... host tool > checking where to find the target windres... host tool > checking where to find the target windmc... host tool > checking whether to enable maintainer-specific portions of Makefiles... no > checking whether -fkeep-inline-functions is supported... yes > configure: creating ./config.status > config.status: creating Makefile > > > There were these lines : > checking for the correct version of libelf... yes > checking for elf_getshdrstrndx... no > checking for elf_getshstrndx... yes > > I think this is fine.Right? Hmm, it did not detect elf_getshdrstrndx and yet it tried to use it later on. I think that's the bug. Yes, please file a bug. I believe it's going to be easy to fix, though. There should be an unguarded use of that function somewhere, it needs to be changed. > > If not, should I file a bug? > >>> However, now I face a different error that says: >>> >>> make[2]: Entering directory `/home/Sandy/Development/build' >>> make[3]: Entering directory `/home/Sandy/Development/build' >>> rm -f stage_current >>> make[3]: Leaving directory `/home/Sandy/Development/build' >>> Comparing stages 2 and 3 >>> warning: gcc/cc1-checksum.o differs >>> warning: gcc/cc1obj-checksum.o differs >>> warning: gcc/cc1plus-checksum.o differs >>> Bootstrap comparison failure! >>> gcc/gcc.o differs >>> gcc/plugin.o differs >>> make[2]: *** [compare] Error 1 >>> make[2]: Leaving directory `/home/Sandy/Development/build' >>> make[1]: *** [stage3-bubble] Error 2 >>> make[1]: Leaving directory `/home/Sandy/Development/build' >>> make: *** [all] Error 2 >> >> Did you start the build from scratch after installing the new libelf? >> > > Yes.I mean, did make clean and started from configure step again. > > ../trunk/configure > make > > Should I delete the previous build directory altogether and then start > the build again? Yes, try from whole cloth. Diego.