All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kumita Bruce <bruce.kumita@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Issue of Yocto multilib sdk
Date: Wed, 19 Jun 2013 17:02:46 +0800	[thread overview]
Message-ID: <CALaXJ9nQCTk==sDA2UySBBwRd_g_gqvO0F=_r7gK14gQE-rKwQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3986 bytes --]

Hi experts,

I use Yocto to generate multilib sdk, I append following content in my
local.conf.
    require conf/multilib.conf
    MULTILIBS = "multilib:lib64"
    DEFAULTTUNE_virtclass-multilib-lib64 = "x86-64"

    IMAGE_INSTALL_append = " \
        ${@multilib_pkg_extend(d, "binutils")} \
        ${@multilib_pkg_extend(d, "eglibc")} \
        ${@multilib_pkg_extend(d, "eglibc-dev")} \
        ${@multilib_pkg_extend(d, "eglibc-staticdev")} \
        ${@multilib_pkg_extend(d, "gcc")} \
        ${@multilib_pkg_extend(d, "glib-2.0")} \
        ${@multilib_pkg_extend(d, "glib-2.0-dev")} \
        ${@multilib_pkg_extend(d, "libgcc-dev")} \
        ${@multilib_pkg_extend(d, "libstdc++")} \
        ${@multilib_pkg_extend(d, "libstdc++-dev")} \
        ${@multilib_pkg_extend(d, "libstdc++-staticdev")} \
    "

The sdk is generated successfully, I
installed poky-eglibc-x86_64-i586-toolchain-gmae-1.4+snapshot-20130619.sh
in the default path(/opt/poky/1.4+snapshot/).
1. 32bit build for my test C program, it passed,
    $ source /opt/poky/1.4+snapshot/environment-setup-i586-poky-linux
    $ $CC mytest.c -o mytest.c
2. 64bit build for the same test C program, it failed.
    $
source /opt/poky/1.4+snapshot/environment-setup-x86_64-pokymllib64-linux
    $ $CC mytest.c -o mytest
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
cannot find crtbegin.o: No such file or directory
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
cannot find -lgcc
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
skipping incompatible
/opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so when
searching for -lgcc_s
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
skipping incompatible
/opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so when
searching for -lgcc_s
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
cannot find -lgcc_s
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
skipping incompatible
/opt/poky/1.4+snapshot/sysroots/i586-poky-linux/usr/lib/libc.so when
searching for -lc
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
skipping incompatible
/opt/poky/1.4+snapshot/sysroots/i586-poky-linux/usr/lib/libc.so when
searching for -lc
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
cannot find -lc
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
cannot find -lgcc
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
skipping incompatible
/opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so when
searching for -lgcc_s
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
skipping incompatible
/opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so when
searching for -lgcc_s
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
cannot find -lgcc_s
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld:
cannot find crtend.o: No such file or directory
collect2: error: ld returned 1 exit status

Am I missing something?


Cheers,

Bruce

[-- Attachment #2: Type: text/html, Size: 4765 bytes --]

             reply	other threads:[~2013-06-19  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19  9:02 Kumita Bruce [this message]
2013-07-26 12:36 ` Issue of Yocto multilib sdk 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

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='CALaXJ9nQCTk==sDA2UySBBwRd_g_gqvO0F=_r7gK14gQE-rKwQ@mail.gmail.com' \
    --to=bruce.kumita@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.