[meta-xilinx] build error for util-linux-2.22 for microblaze with poky/master: undefined reference to `prlimit64'
Nathan Rossi
nathan.rossi at xilinx.com
Wed Apr 3 23:50:17 PDT 2013
> -----Original Message-----
> From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-
> bounces at yoctoproject.org] On Behalf Of Elvis Dowson
> Sent: Thursday, April 04, 2013 3:38 PM
> To: meta-xilinx Mailing List
> Subject: [meta-xilinx] build error for util-linux-2.22 for microblaze with
> poky/master: undefined reference to `prlimit64'
>
> Hi,
> Using the fixes from the recently released meta-xilinx repo on
> git.xilinx.com, I've adapted the patches to work with poky/master, building
> with the xilinx pre-built external toolchain.
>
> The build has now progressed considerably (1299 of 1323), and is now stuck
> with a build error at util-linux-2.22:
>
> sys-utils/prlimit.o: In function `get_unknown_hardsoft':
> /tool/yocto/poky/build/tmp/work/microblazeel-poky-linux/util-linux/2.22.2-
> r3/util-linux-2.22.2/sys-utils/prlimit.c:319: undefined reference to `prlimit64'
> sys-utils/prlimit.o: In function `do_prlimit':
> /tool/yocto/poky/build/tmp/work/microblazeel-poky-linux/util-linux/2.22.2-
> r3/util-linux-2.22.2/sys-utils/prlimit.c:363: undefined reference to `prlimit64'
>
>
> Would anyone have any ideas on how I can get past this build error? The
> version in danny branch uses util-linux-2.12, and the current master uses util-
> linux-2.22, and the error is due to a recent change in some stuff being
> refactored to the new function get_unknown_hardsoft().
>
> Elvis Dowson
Hi Elvis,
I've seen this issue before on some of the older microblaze pre-built toolchains. Could you confirm if the "prlimit64" symbol is missing from libc.
Should be able to tell by using readelf on libc.so from the toolchain sys-root.
$ microblazeel-xilinx-linux-gnu-readelf -a libc-2.14.90.so | grep "prlimit"
537: 000fd460 380 FUNC GLOBAL DEFAULT 11 prlimit@@GLIBC_2.13
1311: 000fd6c0 104 FUNC GLOBAL DEFAULT 11 prlimit64@@GLIBC_2.13
4117: 000fd6c0 104 FUNC LOCAL DEFAULT 11 __GI_prlimit64
6553: 000fd6c0 104 FUNC GLOBAL DEFAULT 11 prlimit64
6870: 000fd460 380 FUNC GLOBAL DEFAULT 11 prlimit
Also if it is not missing, just check to see whether it is a global or not.
Regards,
Nathan
More information about the meta-xilinx
mailing list