Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: Issue of Yocto multilib sdk
Date: Fri, 2 Aug 2013 10:47:24 -0500	[thread overview]
Message-ID: <51FBD48C.9080209@windriver.com> (raw)
In-Reply-To: <89483D19B008F748B6F04D85F328657A0EE1E1D1@039-SN1MPN1-002.039d.mgd.msft.net>

On 8/2/13 5:10 AM, Sardan Alexandru Cezar-B41700 wrote:
>>
>> There could be several issues here:
>> 1. default library path for 64bit is wrong... You can inspect it by
>> looking at SEARCH_DIR in the linker script. Just run:
>>
>> $CC -o mytest -Wl,-verbose mytest.c
>>
>> Then you can try to set the library path explicitly with -L. See if it
>> works.
>>
>> 2. you don't have the 64bit libraries and it falls back to looking into
>> /lib or /usr/lib which contain the 32bit libraries...
>>
>> Do you have any lib64/ usr/lib64/ in your target sysroot?
>>
>
> [Alex Sardan] Yes, it seems that the 64bit libraries are not being
> installed in the sysroot.
> What is the right way of adding them? I tried adding libgcc to
> MULTILIB_IMAGE_INSTALL but it doesn't do the trick.

By default all libraries end up in 'lib' (no suffix).  When you enable the 
multilib support, the lib directory depends on the multilib you are compiling 
(and installing).

i.e.:
MACHINE = "<some 64bit ppc capable machine>"

require conf/multilib.conf
DEFAULTTUNE = "ppc"
MULTILIBS = "multilib:lib64"
DEFAULTTUNE_virtclass-multilib-lib64 = "ppc64"


If you enable the multilib support, and then build with:

bitbake lib64-core-image-minimal  -- you should see an all 'lib64' 
core-image-minimal (assuming lib64 is your alternative library name)

IMAGE_INSTALL_append = " lib64-bash"

Should switch bash to being the 64-bit version, and install all of the necessary 
libraries -- in addition to the 32-bit items being default.

--Mark

> Thanks,
> Alex
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



      reply	other threads:[~2013-08-02 15:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19  9:02 Issue of Yocto multilib sdk Kumita Bruce
2013-07-26 12:36 ` Alexandru-Cezar Sardan
2013-07-26 13:56   ` Laurentiu Palcu
2013-08-02 10:10     ` Sardan Alexandru Cezar-B41700
2013-08-02 15:47       ` Mark Hatle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51FBD48C.9080209@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox