On Mon, May 10, 2010 at 3:33 PM, Sandeep Soni <soni.sandeepb@xxxxxxxxx> wrote: > Hi, > > I tried to build GCC again from the svn repository but make gave me an > error in the end that said, > > ../../trunk/gcc/lto/lto-elf.c: In function 'validate_file' : > ../../trunk/gcc/lto/lto-elf.c:539:3:error: implicit declaration of > function 'elf_getshdrstrndx' [-Werror=implicit-function-declaration] > > cc1:all warnings being treated as errors > make[3]:*** [lto/lto-elf.o] Error 1 > Leaving directory '/home/sandy/Development/build/gcc' > > make[3]:*** [all-stage2-gcc] Error 2 > Leaving directory '/home/sandy/Development/build' > > make[1]:*** [stage2-bubble] Error 2 > Leaving directory '/home/sandy/Development/build' > > make:*** [all] Error 2 > > > I did the following procedure in installation. > mkdir Development && cd Development > svn co svn://gcc.gnu.org/svn/gcc/trunk > mkdir bld && cd bld > ../trunk/configure > make > > Before this I installed the necessary prerequisites namely the > libraries mpfr, gmp, mpc and libelf (I need LTO enabled) > > and configured the path in /etc/ld.so.conf.d/local.conf to point to > /usr/local/lib and then did ldconfig. > > Are there any more libraries needed for the build? > Can now someone help me to diagnose the problem? > > -- > Cheers > Sandy > Is this realated to Bug 41336? To be more precise in the details, I am building on: Host: Intel i3 processor Operating System: Fedora 11 The libraries installed are: gmp-4.3.2 libelf-0.8.12 mpc-0.8.1 mpfr-2.4.2 Thanks in advance. -- Cheers Sandy