* [gentoo-embedded] Can't emerge for ARM
@ 2005-09-12 19:51 Stanisław Raczyński
2005-09-12 23:11 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Stanisław Raczyński @ 2005-09-12 19:51 UTC (permalink / raw
To: gentoo-embedded
Hello,
For days I have been trying to emerge anything for my ARM-based board.
I've searched through this mailing group archives, wikis and all the
other sites I could find and I must say that there is a bit little
information available (or at least I can't find it).
I've succesfully installed the ARM toolchain using crossdev (crossdev -t
arm). Then I've downloaded and unpacked the ARM Gentoo-embedded stage3
tarball to /opt/arm-gentoo-uclibc-linux/stage3 and now I would like to
emerge something (e.g. bash) to this directory. Thus I run:
Linuch stage3 # ROOT="/opt/arm-gentoo-uclibc-linux/stage3"
CHOST="arm-unknown-linux-gnu" emerge -av bash
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild U ] app-shells/bash-3.0-r12 [3.0-r11] to
/opt/arm-gentoo-uclibc-linux/stage3/ -bashlogger -build +nls 0 kB
Looks OK, but after unpacking the sources:
>>> Source unpacked.
* econf: updating bash-3.0/support/config.guess with
/usr/share/gnuconfig/config.guess
* econf: updating bash-3.0/support/config.sub with
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=arm-unknown-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
--build=arm-unknown-linux-gnu --disable-profiling --without-gnu-malloc
--with-ncurses
checking build system type... arm-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for emacs... no
checking for xemacs... no
Beginning configuration for bash-3.0-release for arm-unknown-linux-gnu
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables
See `config.log' for more details.
I get similar results on different packages. I'm stuck and need help.
What do I do wrong?
Best wishes,
Stanislaw
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-embedded] Can't emerge for ARM
2005-09-12 19:51 [gentoo-embedded] Can't emerge for ARM Stanisław Raczyński
@ 2005-09-12 23:11 ` Mike Frysinger
2005-09-13 23:40 ` Stanisław Raczyński
0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2005-09-12 23:11 UTC (permalink / raw
To: gentoo-embedded; +Cc: Stanisław Raczyński
On Monday 12 September 2005 03:51 pm, Stanisław Raczyński wrote:
> checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
> checking for C compiler default output... configure: error: C compiler
> cannot create executables
> See `config.log' for more details.
>
> I get similar results on different packages. I'm stuck and need help.
> What do I do wrong?
you should look at config.log like the error message is telling you to
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-embedded] Can't emerge for ARM
2005-09-13 23:40 ` Stanisław Raczyński
@ 2005-09-13 22:43 ` Mike Frysinger
2005-09-19 18:01 ` Stanisław Raczyński
0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2005-09-13 22:43 UTC (permalink / raw
To: gentoo-embedded
On Tuesday 13 September 2005 07:40 pm, Stanisław Raczyński wrote:
> there is no error with -march=k8 switch, but I get an error right after:
you didnt set CBUILD
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-embedded] Can't emerge for ARM
2005-09-12 23:11 ` Mike Frysinger
@ 2005-09-13 23:40 ` Stanisław Raczyński
2005-09-13 22:43 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Stanisław Raczyński @ 2005-09-13 23:40 UTC (permalink / raw
To: gentoo-embedded
Mike Frysinger wrote:
>you should look at config.log like the error message is telling you to
>-mike
>
>
>
Thanks, Mike
My config.log says:
configure:2391: checking for C compiler default output
configure:2394: arm-unknown-linux-gnu-gcc -O2 -march=k8
-fomit-frame-pointer -pipe -ffast-math conftest.c >&5
Assembler messages:
Error: unknown architecture `k8'
Error: unrecognized option -march=k8
conftest.c:1: error: bad value (k8) for -march= switch
The -march=k8 switch comes from my global Gentoo CFLAGS, since I am
using that architecture. However, when I run the emerge like this:
CFLAGS="-O2" ROOT=/opt/arm-gentoo-uclibc-linux/stage3/
CHOST=arm-unknown-linux-gnu emerge -av bash,
there is no error with -march=k8 switch, but I get an error right after:
configure:2391: checking for C compiler default output
configure:2394: arm-unknown-linux-gnu-gcc -O2 conftest.c >&5
configure:2397: $? = 0
configure:2443: result: a.out
configure:2448: checking whether the C compiler works
configure:2454: ./a.out
./configure: line 2455: ./a.out: cannot execute binary file
configure:2457: $? = 126
configure:2466: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
I've got a feeling that I make a cardinal error elsewhere.
Any thoughts?
Best wishes,
Stanislaw
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-embedded] Can't emerge for ARM
2005-09-13 22:43 ` Mike Frysinger
@ 2005-09-19 18:01 ` Stanisław Raczyński
0 siblings, 0 replies; 5+ messages in thread
From: Stanisław Raczyński @ 2005-09-19 18:01 UTC (permalink / raw
To: gentoo-embedded
Mike Frysinger wrote:
> you didnt set CBUILD
>
>-mike
>
>
>
OK. Now my command looks like this:
CFLAGS="-mcpu=arm920t -O2" CTARGET="arm-unknown-linux-gnu"
CBUILD="arm-unknown-linux-gnu" ROOT=/opt/arm-gentoo-uclibc-linux/stage3/
CHOST="arm-unknown-linux-gnu" emerge -av bash
After running it I get:
configure:2448: checking whether the C compiler works
configure:2454: ./a.out
./configure: line 2455: ./a.out: cannot execute binary file
configure:2457: $? = 126
configure:2466: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
I get some progress when running:
CFLAGS="-mcpu=arm920t -O2" CTARGET="arm-unknown-linux-gnu"
CBUILD="*--host=*arm-unknown-linux-gnu"
ROOT=/opt/arm-gentoo-uclibc-linux/stage3/ CHOST="arm-unknown-linux-gnu"
emerge -av bash
Which is kinda silly, since it is the CHOST variable, which should set
the --host=${CHOST} flag for ebuild scripts.
Can you help me by writing an example of how should I run the emerge
command to compile for ARM? I would really appreciate that.
Best wishes,
Stanislaw
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-09-19 18:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-12 19:51 [gentoo-embedded] Can't emerge for ARM Stanisław Raczyński
2005-09-12 23:11 ` Mike Frysinger
2005-09-13 23:40 ` Stanisław Raczyński
2005-09-13 22:43 ` Mike Frysinger
2005-09-19 18:01 ` Stanisław Raczyński
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox