[ELDK] ISSUE: core-image-lsb-sdk.bb, do_rootfs

Wolfgang Denk wd at denx.de
Wed Feb 8 09:14:00 CET 2012


Dear Lorenzo,

In message <CAN_dYjzfyrzsR4P5_C4HyVAbmgoFcaD=t7ebL-NcBVajkS9KcQ at mail.gmail.com> you wrote:
>
> After quite some time trying to build a generic-mips-softfloat image (I
> made my own scripts for mips softfloat), I think I am almost there.
> However, while executing TASK 5079 of 5081, it fails to find libstdc++.

Efforts always go up exponentially as you are approaching completion
of the task ;-)

> 2º) For some reason that I don't understand, libstdc++.so* are installed at
> {anything}/usr/lib/*nof* instead of just {anything}/usr/lib. What is this
> nof concept anyway?

NOF = No Floating Point Support = soft-float.

MIPS is set up for a multilib configuration.  This is needed because
otherwise (with a hard-float only setup), attempts to build U-Boot
would run into issues like this:

	mips-linux-ld: Warning:
	...sysroots/mips-linux/usr/lib/mips-linux/4.6.1/libgcc.a(_lshrdi3.o)
	uses hard float, u-boot uses soft float

For details see commit commit fb62301 "meta-eldk: add support for
generic mips machine" in our ELDK repository, especially the
MULTILIB_* settings in meta/recipes-devtools/gcc/gcc-4.6/t-mips.patch

When building for a soft-float only target, you probably don't want to
use a multilib configuration.

> 2.1º) During build, many packets looked for libstdc++ at {sysroot}/usr/lib.
> So I manually created symlinks for libstdc++ there.

I think this is a consequence of incorrect multilib setup.

> 2.2º) I really suspect that's the problem. But since I have no knowledge so
> far of why there's this NOF subdir, I am not confident on how to properly
> solve the problem.
>
> 3º) I have attached to this email the log file about the error. Hope you
> find it useful.

You might also want to check recent contributions to OE-core,
especially this commit:

commit 26630a9f37b04e215eff9b8e63414b6b2066d6fa
Author: Andreas Oberritter <obi at opendreambox.org>
Date:   Thu Feb 2 14:00:34 2012 +0100

    tune-mips32.inc: Add mips32-nf and mips32el-nf
    
    tune-mips32.inc only lists mips32 CPUs with hardware FPU.
    Extend it to list CPUs without hardware FPU, too.
    
    Signed-off-by: Andreas Oberritter <obi at opendreambox.org>

See http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/15036

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
So we follow our wandering paths, and the very darkness acts  as  our
guide and our doubts serve to reassure us. - Jean-Pierre de Caussade,
eighteenth-century Jesuit priest


More information about the eldk mailing list