[#4240] oprofile kernel building failed with latest toolchain in trunk
Submitted By: Vivi Li
Open Date
2008-07-14 06:36:02 Close Date
2008-12-04 04:50:50
Priority:
Medium Assignee:
Graf Yang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
toolchain 4.1 - 2008_Jul_12
App binary format:
N/A
Summary: oprofile kernel building failed with latest toolchain in trunk
Details:
Built of oprofile kernel failed in trunk with latest toolchain in trunk.
Bellow is the log.
--
bfin-uclinux-gcc -W -Wall -fno-common -Wdeclaration-after-statement -fno-omit-frame-pointer -pipe -Wall -g -O2 -mcpu=bf537-0.2 -I/home/test/work/cruise/checkouts/uclinux-dist/lib/popt -Wl,-elf2flt -mcpu=bf537-0.2 -L/home/test/work/cruise/checkouts/uclinux-dist/lib/popt/build/.libs -o oprofiled init.o oprofiled.o opd_stats.o opd_sfile.o opd_kernel.o opd_trans.o opd_cookie.o opd_events.o opd_mangling.o opd_perfmon.o opd_anon.o liblegacy/liblegacy.a ../libdb/libodb.a ../libop/libop.a ../libutil/libutil.a -lpopt -liberty ^M
liblegacy/liblegacy.a(opd_kernel.o): In function `opd_drop_module_sample':^M
../../../daemon/liblegacy/opd_kernel.c:283: undefined reference to `_query_module'^M
../../../daemon/liblegacy/opd_kernel.c:297: undefined reference to `_query_module'^M
collect2: ld returned 1 exit status^M
make[7]: *** [oprofiled] Error 1^M
make[7]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/oprofile/build/daemon'^M
make[6]: *** [install-recursive] Error 1^M
make[6]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/oprofile/build/daemon'^M
make[5]: *** [install-recursive] Error 1^M
--
Follow-ups
--- Vivi Li 2008-10-08 03:03:57
The latest error message is as bellow:
--
checking for win32_pstatus_t in sys/procfs.h... no^M
config.status: creating Doxyfile^M
*** BFD does not support target bfin-unknown-uclinux.^M
*** Look in bfd/config.bfd for supported targets.^M
config.status: creating Makefile^M
yes^M
checking whether alloca needs Cray hooks... make[3]: *** [build/build] Error
1^M
make[3]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/lib/bfd'^M
make[2]: *** [bfd] Error 2^M
make[2]: *** Waiting for unfinished jobs....^M
--
--- Mike Frysinger 2008-10-08 03:16:18
query_module() is a linux-2.4 specific function that is not supported on
Blackfin
--- Vivi Li 2008-11-06 03:38:18
The problem is now in lib BFD, not query_module().
--- Mike Frysinger 2008-11-06 03:47:59
why are you enabling libbfd ? the one in the dist isnt usable for Blackfin and
we already include it in our toolchain ...
--- Vivi Li 2008-11-19 03:37:20
In uclinux-dist/user/Kconfig, lib BFD is enabled when OPROFILE application is
selected.
--
config USER_OPROFILE
bool "oprofile"
select LIB_BFD
select LIB_LIBIBERTY
select LIB_POPT
help
A system-wide profiler.
--
--- Mike Frysinger 2008-11-20 13:23:15
thanks ... ive disabled that dependency, so i imagine it'll work for you now ...
--- Vivi Li 2008-11-21 04:27:42
No BFD problem now.
And it fails again at query_module():
--
bfin-uclinux-gcc -W -Wall -fno-common -Wdeclaration-after-statement
-fno-omit-frame-pointer -pipe -Wall -g -O2 -mcpu=bf537-0.2 -Wl,-elf2flt
-mcpu=bf537-0.2 -L/home/test/work/cruise/checkouts/uclinux-dist/lib/STLport/lib
-o oprofiled init.o oprofiled.o opd_stats.o opd_sfile.o opd_kernel.o
opd_trans.o opd_cookie.o opd_events.o opd_mangling.o opd_perfmon.o opd_anon.o
liblegacy/liblegacy.a ../libabi/libabi.a ../libdb/libodb.a ../libop/libop.a
../libutil/libutil.a -lpopt -liberty ^M
liblegacy/liblegacy.a(opd_kernel.o): In function `opd_drop_module_sample':^M
../../../daemon/liblegacy/opd_kernel.c:283: undefined reference to
`_query_module'^M
../../../daemon/liblegacy/opd_kernel.c:297: undefined reference to
`_query_module'^M
collect2: ld returned 1 exit status^M
make[7]: *** [oprofiled] Error 1^M
make[7]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/oprofile/build/daemon'^M
make[6]: *** [all-recursive] Error 1
--
--- Mike Frysinger 2008-11-21 09:00:10
that is a bug in oprofile Graf can fix ... query_module() does not exist for
linux-2.6 systems and thus should not be used
--- Graf Yang 2008-11-27 07:22:09
Could we default set UCLIBC_LINUX_MODULE_24=y to make the compile successful?
This option resides in uClibc/extra/Configs/Config.bfinfdpic.default and
Config.bfin.default
--- Mike Frysinger 2008-11-27 21:09:05
no. the Blackfin port has never supported linux-2.4 and it makes no sense to
enable old baggage to work around random applications. you're talking about
everyone wasting space for no reason.
--- Graf Yang 2008-12-01 05:16:31
I removed the linux-2.4 interface from oprofile, now they can build.
--- Vivi Li 2008-12-04 04:50:50
It's OK now with 4.1 toolchain.
Close it. Thanks!
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found