[uClinux-dev] cross compiling

Hector Oron hector.oron at gmail.com
Fri Oct 14 06:56:03 EDT 2005


Hello Stephane,
  The problem that you have is that the script doesn't think that you are
cross-compiling, so try to play with the --host= switch adding something
like m68k-elf-linux-gnu or things like that. I'm not pretty sure on how to
solve it, but i went thru this last night.
 Cheers !

 On 10/14/05, Stephane <germain_stephane at hotmail.com> wrote:
>
> Hi,
>
> I tried to compile a open software that is suppose to support cross
> compile
>
> from the doc:
> For example, to build Player on an x86/Linux system for an ARM/Linux
> system (e.g., the iPAQ), you would first configure Player like:
> $ ./configure --build=i686-pc-linux-gnu --host=arm-linux --without-rtk
>
> After put my cross compile directory first in my path (from the doc!)
> /$ export PATH=/usr/local/m68k-elf/bin:$PATH
> /My cross compile tool:
> m68k-elf-tools-20031003.sh
>
> I tried:
> /$ ./configure --build=i686-pc-linux-gnu --host=m68k-elf --without-rtk/
> and see the error:
> /checking build system type... i686-pc-linux-gnu
> checking host system type... m68k-unknown-elf
> checking target system type... m68k-unknown-elf
> checking for a BSD-compatible install... /bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for m68k-elf-strip... m68k-elf-strip
> checking whether make sets $(MAKE)... (cached) yes
> checking for m68k-elf-gcc... gcc
> checking for C compiler default output file name... configure: error: C
> compiler cannot create executables
> See `config.log' for more details./
>
>
> From /config.log : (what I think pertinent!)/
>
> [...]
> configure:2467: gcc -v </dev/null >&5
> Reading specs from /usr/local/lib/gcc-lib/m68k-elf/2.95.3/specs
> gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
> http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http
> ://www.snapgear.com/)
> configure:2470: $? = 0
> configure:2472: gcc -V </dev/null >&5
> gcc: argument to `-V' is missing
> configure:2475: $? = 1
> configure:2498: checking for C compiler default output file name
> configure:2501: gcc conftest.c >&5
> /usr/local/m68k-elf/bin/ld.real: cannot open crt0.o: No such file or
> directory
> collect2: ld returned 1 exit status
> configure:2504: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> [...]
>
> thanks in advance
>
> Stephane Germain
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20051014/a632d0d6/attachment.html>


More information about the uClinux-dev mailing list