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
--
[email protected] mailing list

Reply via email to