Hi Will,
Thank you for your reply.
The building issue (" liberty library not found") was fixed. But the new issue("/usr/lib/libbfd.so : error adding symbols:") was appeared in oProfile-v1.0.0.
I don`t konw why it did not use my libbfd.so that I have given in configure parameter. And I am sure my libbfd.so( "/home/ryan/workdir/brcm/tvos2.0-dth/tvos-dbs/platform/linux_h5/target/external/binutils/usr/lib/libbfd.so ") is fine . Below is my building parameter:
export AS=$(TARGET_AS); \
export LD=$(TARGET_LD); \
export CC=$(TARGET_CC); \
export CXX=$(TARGET_CXX); \
export AR=$(TARGET_AR); \
export NM=$(TARGET_NM); \
export STRIP=$(TARGET_STRIP); \
export OBJCOPY=$(TARGET_OBJCOPY); \
export OBJDUMP=$(TARGET_OBJDUMP); \
export RANLIB=$(TARGET_RANLIB); \
export CFLAGS="$(CFLAGS) -I$(OUTDIR)/include ";\
export LDFLAGS="$(LDFLAGS) -L$(OUTDIR)/external/popt/usr/lib -L$(OUTDIR)/external/binutils/usr/lib"; \
export LD_LIBRARY_PATH="$(OUTDIR)/external/binutils/usr/lib:$(OUTDIR)/external/zlib/usr/lib:$(OUTDIR)/external/popt/usr/lib";\
export LIBRARY_PATH="$(OUTDIR)/external/binutils/usr/lib:$(OUTDIR)/external/zlib/usr/lib:$(OUTDIR)/external/popt/usr/lib";\
export ac_cv_va_copy=yes; \
./configure --host=mipsel-linux-gnu --with-kernel=/home/ryan/workdir/platform/linux_h5/platform/kernel/linux --with-extra-libs=$(OUTDIR)/external/popt/usr/lib/:$(OUTDIR)/external/zlib/usr/lib:$(OUTDIR)/external/binutils/usr/lib --with-extra-includes=$(OUTDIR)/include --with-binutils=$(PRIVATE_LOCAL_PATH)/../binutils/binutils-2.26 --prefix=$(TARGET_PREFIX) ;
I also build oProfile-v1.1.0 in the same configure parameter. The error message("kernel supports perf_events... no ") appeared again.
I have already opened the kernel option in ordering to make Linux support to oProfile.
CONFIG_PERF_EVENTS=y
CONFIG_PROFILING=y
CONFIG_OPROFILE=y
CONFIG_HAVE_OPROFILE=y
Just make it work, I don`t care the oProfile version. I enclosed building log, both of them.
I am anticipating your reply.
Best Regards,
Ryan
DateïŒ10/10/2015
-----é®ä»¶å件-----
å件人: William Cohen [mailto:***@redhat.com]
åéæ¶éŽ: 2017幎2æ16æ¥ 22:53
æ¶ä»¶äºº: ***@multicorewareinc.com; oprofile-***@lists.sf.net
äž»é¢: Re: oProfile building trouble
Post by l***@multicorewareinc.comHi all,
I met some trouble when I build oprofile. It shows me "kernel supports perf_events... noâ.
I have tried oprofile-1.0.0, oprofile-1.1.0, oprofile-0.9.6.
My building environment is kernel3.3.8, binutils-2.26 and popt-1.14.
I enclosed building log. Any help would be appreciated.
BestRegards,
Ryan
DateïŒ10/10/2015
Hi Ryan,
The real problem seems to be:
checking for cplus_demangle in -liberty... no
configure: error: liberty library not found
The configure can't find the needed file ( libiberty.a) to build things with liberty. On fedora these are supplied by binutils-devel. I am not so sure what supplies them for the cross compile enviroment you are using.
-Will