From: Richard P. <rp...@rp...> - 2010-10-23 09:23:50
|
On Fri, 2010-10-22 at 18:46 -0500, Maynard Johnson wrote: > nelakurthi koteswararao wrote: > > Dear Maynord johnson, > I've been away from my office/computer for a few days, so just > catching up on email. It's best if you post oprofile questions to the > oprofile-list, as you'll be able to leverage help from the entire > community. I don't have any experience with ARM and cross-builds, so > Richard Purdie (on cc) may have more insight. I believe others have > successfully built oprofile with gcc 4.5, but I'm not finding specific > postings right now to point to that would prove that. On the other > hand, similar errors have been seen in the past when binutils' libbfd > was incorrectly built (i.e., without -fPIC). You might look at that > possibility. I'm building oprofile with gcc 4.5 just fine. Looking at the error below, its as it says, the version of libbfd you have can't be used to build oprofile. You need to recompile libbfd or obtain a recompiled library. Cheers, Richard > -Maynard > > > > I have one issue while building oprofile-0.9.6 source with latest Gcc-4.5.1 > > version only.. > > The below error was not observed for gcc-4.3.3 version.. > > Actually i am getting this error while building the OPROFILE RPM.. > > THE Error is given below. > > {{{ > > > > make[2]: Entering directory > > `/home/koti/rpmdir/BUILD/oprofile-0.9.6/objdir/libopagent' > > if /bin/sh ../libtool --tag=CC --mode=compile arm-sony-linux-gnueabi-dev-gcc > > -march=armv7-a -DHAVE_CONFIG_H -I. -I../../libopagent -I.. -I ../../libop > > -I ../../libutil -O2 -MT libopagent_la-opagent.lo -MD -MP -MF > > ".deps/libopagent_la-opagent.Tpo" -c -o libopagent_la-opagent.lo `test -f > > 'opagent.c' || echo '../../libopagent/'`opagent.c; \ > > then mv -f ".deps/libopagent_la-opagent.Tpo" > > ".deps/libopagent_la-opagent.Plo"; else rm -f > > ".deps/libopagent_la-opagent.Tpo"; exit 1; fi > > mkdir .libs > > arm-sony-linux-gnueabi-dev-gcc -march=armv7-a -DHAVE_CONFIG_H -I. > > -I../../libopagent -I.. -I ../../libop -I ../../libutil -O2 -MT > > libopagent_la-opagent.lo -MD -MP -MF .deps/libopagent_la-opagent.Tpo -c > > ../../libopagent/opagent.c -fPIC -DPIC -o .libs/libopagent_la-opagent.o > > arm-sony-linux-gnueabi-dev-gcc -march=armv7-a -DHAVE_CONFIG_H -I. > > -I../../libopagent -I.. -I ../../libop -I ../../libutil -O2 -MT > > libopagent_la-opagent.lo -MD -MP -MF .deps/libopagent_la-opagent.Tpo -c > > ../../libopagent/opagent.c -o libopagent_la-opagent.o >/dev/null 2>&1 > > /bin/sh ../libtool --tag=CC --mode=link arm-sony-linux-gnueabi-dev-gcc > > -march=armv7-a -O2 -o libopagent.la -rpath /devel/usr/lib/oprofile > > -version-info 1:0:0 > > -Wl,--version-script=../../libopagent/opagent_symbols.ver > > libopagent_la-opagent.lo -lbfd -liberty -ldl > > arm-sony-linux-gnueabi-dev-gcc -march=armv7-a -shared > > .libs/libopagent_la-opagent.o > > /usr/local/arm-sony-linux-gnueabi/target/armv7a/tool/devel/usr/lib/libbfd.a > > -liberty -ldl -march=armv7-a > > -Wl,--version-script=../../libopagent/opagent_symbols.ver -Wl,-soname > > -Wl,libopagent.so.1 -o .libs/libopagent.so.1.0.0 > > /usr/local/arm-sony-linux-gnueabi/cross/devel/lib/gcc/arm-sony-linux-gnueabi/4.5.1/../../../../arm-sony-linux-gnueabi/bin/ld: > > /usr/local/arm-sony-linux-gnueabi/target/armv7a/tool/devel/usr/lib/libbfd.a(bfd.o): > > relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when > > making a shared object; recompile with -fPIC > > /usr/local/arm-sony-linux-gnueabi/target/armv7a/tool/devel/usr/lib/libbfd.a: > > could not read symbols: Bad value > > collect2: ld returned 1 exit status > > make[2]: *** [libopagent.la] Error 1 > > make[2]: Leaving directory > > `/home/koti/rpmdir/BUILD/oprofile-0.9.6/objdir/libopagent' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/koti/rpmdir/BUILD/oprofile-0.9.6/objdir' > > make: *** [all] Error 2 > > error: Bad exit status from /var/tmp/rpm-tmp.8810 (%build) > > > > }}} > > > > DO you have any input regarding the above error? > > > > THanks for allowing me to send error message to you.. > > Thanks & > > Regards > > koteswararao > > > |