On Tue, May 11, 2010 at 4:53 PM, Diego Novillo <dnovillo@xxxxxxxxxx> wrote: > On Tue, May 11, 2010 at 02:24, Sandeep Soni <soni.sandeepb@xxxxxxxxx> wrote: > >> I installed elfutils-libelf-devel-0.145-1 and that worked. > > Yes. Older libelfs will not work. However, you should've gotten a > configuration-time error. If you can reproduce, could you file a bug? > The 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=16 $$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: target-libada gnattools (Any other directories should still work fine.) checking for default BUILD_CONFIG... bootstrap-debug *** removing build-i686-pc-linux-gnu/libiberty/Makefile to force reconfigure *** removing build-i686-pc-linux-gnu/fixincludes/Makefile to force reconfigure *** 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? 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? -- Cheers Sandy