All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Link error: host instead of target libc
Date: Fri, 27 Mar 2009 20:30:19 -0700	[thread overview]
Message-ID: <200903272030.23571.raj.khem@gmail.com> (raw)
In-Reply-To: <20090327095751.GA8994@fh-wedel.de>

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

On Friday 27 March 2009 02:57:51 Martin Dietze wrote:
> Hi,
> 
>  still trying to get nylon/mtx-1 built with the current OE code,
> I am getting this error at install of glibc-2.3.3:
> 
> | /var/src/OE/tmp/cross/mipsel/lib/gcc-lib/mipsel-oe-linux/3.3.4/../../../../mipsel-oe-linux/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
> | /var/src/OE/tmp/cross/mipsel/lib/gcc-lib/mipsel-oe-linux/3.3.4/../../../../mipsel-oe-linux/bin/ld: cannot find /lib/libc.so.6
> | collect2: ld returned 1 exit status
> | make[2]: *** [/var/src/OE/tmp/work/mipsel-oe-linux/glibc-2.3.3-r16/build-mipsel-oe-linux/math/libm.so] Error 1

One reason could be that you linker is not aware of sysroot properly. As a result it does not append correct sysroot path and ends up looking at /lib which ofcourse it your host libc (x86) and hence the error. you might need to backport sysroot related patches to binutils 2.14

We have been able to build mipsel with angstrom-2008 I would suggest that you use those versions of toolchain and kernel headers for nylon to start with. Its gcc 4.2.4 binutils 2.18.x.x.x eglibc-2.9 linux-libc-headers 2.6.23

> 
> Having asked google I found that people had this kind of problem
> before, but I could not extract any hint on how to solve this
> there. My checkout of OE dates back to this commit:
> 
> | commit 8ff9eac82736ab3adc5ffd223a39d9eafd2409be
> | Author: Dmitry 'MAD' Artamonow <mad_soft@inbox.ru>
> | Date:   Tue Feb 24 21:38:10 2009 -0800
> 
> I followed Mickey's proposal and derived my conf/distro/nylon.conf
> from minimal.conf adding my preferred versions etc.
> 
> Having had a longer break from nylon maintainership I seem to have
> missed a lot of changes in OE; and I am quite clueless now where to
> start searching for what causes the above error. Any hint?
> 
> Cheers,
> 
> Martin
> 

-- 
Khem Raj

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

  parent reply	other threads:[~2009-03-28  3:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27  9:57 Link error: host instead of target libc Martin Dietze
2009-03-27 10:11 ` Martin Dietze
2009-03-28  3:30 ` Khem Raj [this message]
2009-03-30  8:14   ` Martin Dietze

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=200903272030.23571.raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@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.