From: Rick K. <rk...@il...> - 2009-07-28 15:13:25
|
Jie, This is a common problem that arises from mixing static and shared code/libraries. At the end of your output, you will find a clue that this is what's going wrong: > /usr/bin/ld: /usr/lib/../lib64/libbfd.a(bfd.o): relocation R_X86_64_32 against > `bfd_section_hash_newfunc' can not be used when making a shared object; recompile > with -fPIC > /usr/lib/../lib64/libbfd.a: could not read symbols: Bad value "libbfd.a" is a static library that is probably being used by the linker because the shared library version "libbfd.so" may not be present on your machine. Do: $ ls /usr/lib64/libbfd* to see what libraries are on your machine. If there is no "libbfd.so", and you have root privileges, you can probably address this problem by making a symbolic link to "/usr/lib64/libbfd*.so" to "/usr/lib64/libbfd.so". If this is not possible, a current workaround is to reconfigure PerfSuite with the flag "--disable-binutils", run "make clean", and "make" again. We are actually in the process of providing a more flexible way of dealing with this in the next release, but for now one of these approaches may help you out. Rick jj...@nu... wrote: > Hi, > > Recently I'm trying to install Perfsuite on an SMP machine with Intel Xeon E5450 > processors and Linux OS(RHEL5). > > The supported software packages (like kernel patch, perfctr lib, papi, tcl/tk, > tDOM, Expat) have been installed. > > When compiling Perfuite-0.6.2, I got the following error message: > ..... > ..... > Making all in tcllib > Making all in psutils > Making all in bfd > /bin/sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I../../../.. -I/usr/local/perfsuite/tcl/include -DUSE_TCL_STUBS -g -O2 -MT > libpsbfd_la-Bfd_control.lo -MD -MP -MF .deps/libpsbfd_la-Bfd_control.Tpo -c -o > libpsbfd_la-Bfd_control.lo `test -f 'Bfd_control.c' || echo './'`Bfd_control.c > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_control.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_control.Tpo -c Bfd_control.c -fPIC -DPIC -o > .libs/libpsbfd_la-Bfd_control.o > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_control.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_control.Tpo -c Bfd_control.c -o libpsbfd_la-Bfd_control.o > >> /dev/null 2>&1 >> > mv -f .deps/libpsbfd_la-Bfd_control.Tpo .deps/libpsbfd_la-Bfd_control.Plo > /bin/sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I../../../.. -I/usr/local/perfsuite/tcl/include -DUSE_TCL_STUBS -g -O2 -MT > libpsbfd_la-Bfd_init.lo -MD -MP -MF .deps/libpsbfd_la-Bfd_init.Tpo -c -o > libpsbfd_la-Bfd_init.lo `test -f 'Bfd_init.c' || echo './'`Bfd_init.c > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_init.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_init.Tpo -c Bfd_init.c -fPIC -DPIC -o > .libs/libpsbfd_la-Bfd_init.o > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_init.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_init.Tpo -c Bfd_init.c -o libpsbfd_la-Bfd_init.o >/dev/null > 2>&1 > mv -f .deps/libpsbfd_la-Bfd_init.Tpo .deps/libpsbfd_la-Bfd_init.Plo > /bin/sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I../../../.. -I/usr/local/perfsuite/tcl/include -DUSE_TCL_STUBS -g -O2 -MT > libpsbfd_la-Bfd_inquire.lo -MD -MP -MF .deps/libpsbfd_la-Bfd_inquire.Tpo -c -o > libpsbfd_la-Bfd_inquire.lo `test -f 'Bfd_inquire.c' || echo './'`Bfd_inquire.c > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_inquire.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_inquire.Tpo -c Bfd_inquire.c -fPIC -DPIC -o > .libs/libpsbfd_la-Bfd_inquire.o > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_inquire.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_inquire.Tpo -c Bfd_inquire.c -o libpsbfd_la-Bfd_inquire.o > >> /dev/null 2>&1 >> > mv -f .deps/libpsbfd_la-Bfd_inquire.Tpo .deps/libpsbfd_la-Bfd_inquire.Plo > /bin/sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I../../../.. -I/usr/local/perfsuite/tcl/include -DUSE_TCL_STUBS -g -O2 -MT > libpsbfd_la-Bfd_lookup.lo -MD -MP -MF .deps/libpsbfd_la-Bfd_lookup.Tpo -c -o > libpsbfd_la-Bfd_lookup.lo `test -f 'Bfd_lookup.c' || echo './'`Bfd_lookup.c > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_lookup.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_lookup.Tpo -c Bfd_lookup.c -fPIC -DPIC -o > .libs/libpsbfd_la-Bfd_lookup.o > gcc -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/perfsuite/tcl/include > -DUSE_TCL_STUBS -g -O2 -MT libpsbfd_la-Bfd_lookup.lo -MD -MP -MF > .deps/libpsbfd_la-Bfd_lookup.Tpo -c Bfd_lookup.c -o libpsbfd_la-Bfd_lookup.o > >> /dev/null 2>&1 >> > mv -f .deps/libpsbfd_la-Bfd_lookup.Tpo .deps/libpsbfd_la-Bfd_lookup.Plo > /bin/sh ../../../../libtool --tag=CC --mode=link gcc -g -O2 -lbfd -liberty > -version-info 1:0:0 -o libpsbfd.la -rpath /usr/local/perfsuite/ps/lib/psbfd0.2 > libpsbfd_la-Bfd_control.lo libpsbfd_la-Bfd_init.lo libpsbfd_la-Bfd_inquire.lo > libpsbfd_la-Bfd_lookup.lo > > > gcc -shared .libs/libpsbfd_la-Bfd_control.o .libs/libpsbfd_la-Bfd_init.o > .libs/libpsbfd_la-Bfd_inquire.o .libs/libpsbfd_la-Bfd_lookup.o -lbfd -liberty > -Wl,-soname -Wl,libpsbfd.so.1 -o .libs/libpsbfd.so.1.0.0 > /usr/bin/ld: /usr/lib/../lib64/libbfd.a(bfd.o): relocation R_X86_64_32 against > `bfd_section_hash_newfunc' can not be used when making a shared object; recompile > with -fPIC > /usr/lib/../lib64/libbfd.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[5]: *** [libpsbfd.la] Error 1 > make[4]: *** [all-recursive] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > > The BFD comes from binutils-devel package > (binutils-devel-2.17.50.0.6-9.el5.x86_64.rpm) of RHEL5. > > Hot to solve this problem? > > Regards, > Jie Jiang > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > PerfSuite-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfsuite-users > > |