[yocto] [prelink-cross] Prelinking to wrong library ld-linux.so.3 instead ld-linux-armhf.so.3

Keskinarkaus, Teemu Teemu.Keskinarkaus at Maximatecc.com
Mon Nov 30 23:41:18 PST 2015


Hi,

As the subject states, I'm having that problem with Yocto. I'm using Yocto 1.7 and already updated the prelink-cross to latest version.  This happens only on the applications I've added myself. The actual Yocto applications compiles just fine. I don't have any autoconf in use with my applications so I'm not sure if that has anything to do with the prelink issue.

As a workaround I've made symbolic link from /lib/ld-linux-armhf.so.3 to /lib/ld-linux.so.3, but I would like to solve the actual problem.

With Yocto 1.7 default prelink I get following errors to log.do_rootfs:

build/tmp/sysroots/i686-linux/usr/sbin/prelink: /usr/bin/weston-terminal: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

With latest prelink I get following errors in that log:

/build/tmp/sysroots/i686-linux/usr/sbin/prelink: /usr/bin/testapplication: Could not parse ` /build/tmp/sysroots/i686-linux/usr/sbin//prelink-rtld: error while loading shared libraries: ld-linux-armhf.so.3'

So with old version the prelink is using the proper library for existing Yocto applications, but my application is missing from that list. And with latest application only my application is listed with not founding the library it should.  Why it's only on those recipes I've created? I've looked some existing recipes and they don't have any prelink references. In local.conf I have "image-prelink" defined in USER_CLASSES.

I found someone else having issues with prelink as well, but didn't find any solution that would work for me since it seems to happen only on applications/recipes that I've made.

Here is the recipe for testapplication:

--
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
PR = "r15"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

inherit localapp

EXTRA_OEMAKE = " \
CC_PREFIX=arm-poky-linux-gnueabi- \
"

--


Localapp changes the source directory so sources can be locally.

--
inherit base externalsrc

EXTERNALSRC = "${COREBASE}/../apps/${PN}"
EXTERNALSRC_BUILD = "${EXTERNALSRC}"
--

Teemu Keskinarkaus
Software system engineer



________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151201/8a5682bd/attachment.html>


More information about the yocto mailing list