From: Jean-Claude Gervais <jc.gervais@videotron.ca>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] asm/page.h: No such file or directory - Link error
Date: Fri, 02 Nov 2007 15:08:27 -0400 [thread overview]
Message-ID: <1194030507.13028.23.camel@mercury.sprymusic> (raw)
In-Reply-To: <4729B7A1.4040305@lakedaemon.net>
On Thu, 2007-11-01 at 07:25 -0400, Jason wrote:
> Jean-Claude Gervais wrote:
> > On Wed, 2007-10-31 at 20:43 +0100, Pal Szasz wrote:
> >> Just a little addition: there is another flag which might be involved:
> >>
> >> -mfloat-abi=softfp
> >>
> >
> > How do I pass those flags to the compiler by using crossedev?
> >
> > Here's the shell script I am currently using.
> > I changed it to go with Jason's recommended toolset versions but I am
> > still getting the same linking errors about floating-point
> > incompatibilities...
> >
> > .-.-.-.-.-.-.-
> >
> > #!/bin/bash
> >
> > CBUILD="i686-pc-linux-gnu"
> >
> > CHOST=$CBUILD
> >
> > CTARGET="arm-softfloat-linux-uclibc"
> >
> > #export ROOT="/usr/arm-softfloat-linux-uclibc"
> >
> > PORTAGE_CONFIGROOT="/usr/arm-softfloat-linux-uclibc"
> >
> > UCLIBC_CPU="ARM920T" USE="-*" crossdev -v --binutils 2.17 --gcc 3.4.6-r2
> > --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target
> > arm-softfloat-linux-uclibc
>
> before you tried this command, did you delete the old attempt? eg
>
> crossdev -C arm-softfloat-linux-uclibc
>
> Chances are you have stale uclibc files installed from a previous
> attempt that are conflicting with the current attempt.
You are correct, unmerging the gcc did the trick.
>
> Also, make sure you unset PORTAGE_CONFIGROOT, CTARGET, CHOST, and
> CBUILD. Those may foul up crossdev (You're not cross-compiling a
> cross-compiling toolchain are you?). Those variable assignments are for
> _after_ the toolchain is built when you want to use it.
I'm a bit confused. I had those defined while crossdev was running. It
might explain some of the problems I've had.
>From your description, it appears generating the toolset is SIMPLER than
I thought.
Just to be clear; I am executing the following, is it OK?
-.-.-.-.-.-.-.-.-.-.-.-.-
SYSROOT="/usr/arm-softfloat-linux-uclibc"
UCLIBC_CPU="ARM920T" USE="-*" crossdev -v -S --gcc 3.4.6-r2 --ex-gdb
--target arm-softfloat-linux-uclibc
-.-.-.-.-.-.-.-.-.-.-.-.-
Apart from having to create an empty
$SYSROOT/usr/include/asm/page.h
the toolchain builds.
I came to a erroneous conclusion of setting CBUILD, CHOST, CTARGET and
PORTAGE_CONFIGROOT during crossdev execution from (mis)reading this
documentation:
http://www.gentoo.org/proj/en/base/embedded/cross-development.xml
Is this document out of date? It mentions setting the ROOT variable, but
crossdev complained that ROOT was not supported... Maybe ROOT is not
intended to be used with crossedev, in which case it's another
misunderstanding on my part.
Is there a document I should read that might help?
Thank you very much for your help, Jason.
PS - About the top-posting, it was a mistake on my part, thanks to those
who pointed it out.
--
gentoo-embedded@gentoo.org mailing list
next prev parent reply other threads:[~2007-11-02 19:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 18:18 [gentoo-embedded] asm/page.h: No such file or directory Jean-Claude Gervais
2007-10-31 18:28 ` Pal Szasz
2007-10-31 19:20 ` [gentoo-embedded] asm/page.h: No such file or directory - Link error Jean-Claude Gervais
2007-10-31 19:31 ` Jason
2007-10-31 19:41 ` Pal Szasz
2007-10-31 19:43 ` Pal Szasz
2007-10-31 20:27 ` Jean-Claude Gervais
2007-11-01 11:25 ` Jason
2007-11-02 19:08 ` Jean-Claude Gervais [this message]
2007-11-02 19:58 ` Jason
2008-01-14 19:08 ` Christopher Friedt
2008-01-15 16:22 ` Christopher Friedt
2007-11-02 16:00 ` Mike Frysinger
2007-11-02 16:33 ` Marco Costa
2007-11-02 16:37 ` Jason
2007-11-02 16:44 ` Marco Costa
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=1194030507.13028.23.camel@mercury.sprymusic \
--to=jc.gervais@videotron.ca \
--cc=gentoo-embedded@lists.gentoo.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