* Building a cross compiler with software floating point
@ 2003-10-28 20:48 Matthew S. McClintock
2003-10-30 19:27 ` Matthew S. McClintock
0 siblings, 1 reply; 2+ messages in thread
From: Matthew S. McClintock @ 2003-10-28 20:48 UTC (permalink / raw)
To: gcc-help
I am trying to build gcc for ARM. I am building GCC with the following
command:
CROSS_COMPILE=arm-linux- ../../src/gcc-3.3.2/configure
--prefix=/home/blasig/omap/tools/ --target=arm-linux --with-cpu=arm9tdmi
--without-fp -nfp --disable-fp --enable-languages=c --with-newlib
--without-headers --disable-shared --disable-threads; make all-gcc
However I am running into a problem that when I try to build a program I
get the following error:
arm-linux-ld: ERROR:
/home/blasig/omap/tools/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o) uses hardware FP, whereas u-boot uses software FP
File in wrong format: failed to merge target specific data of file
/home/blasig/omap/tools/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o)
Is this error a result of me not including an option for GCC so it
compiles a software floating point libgcc.a? If so, how does one
accomplish this? Or is it an error related to something else?
Thanks for your time
--
Matthew S. McClintock <mattsm@arlut.utexas.edu>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building a cross compiler with software floating point
2003-10-28 20:48 Building a cross compiler with software floating point Matthew S. McClintock
@ 2003-10-30 19:27 ` Matthew S. McClintock
0 siblings, 0 replies; 2+ messages in thread
From: Matthew S. McClintock @ 2003-10-30 19:27 UTC (permalink / raw)
To: gcc-help
Upon further investigation the culprit seems to be the -msoft-float
flags. Whenever I compile code with that flag enabled and link it
against libgcc.a I get errors. How can I compile gcc (including libgcc)
so I can link against programs that are compiled with -msoft-float flag?
Or perhaps there is a more appropriate list to be asking this too?
Thanks,
Matthew
On Tue, 2003-10-28 at 14:48, Matthew S. McClintock wrote:
> I am trying to build gcc for ARM. I am building GCC with the following
> command:
>
> CROSS_COMPILE=arm-linux- ../../src/gcc-3.3.2/configure
> --prefix=/home/blasig/omap/tools/ --target=arm-linux --with-cpu=arm9tdmi
> --without-fp -nfp --disable-fp --enable-languages=c --with-newlib
> --without-headers --disable-shared --disable-threads; make all-gcc
>
> However I am running into a problem that when I try to build a program I
> get the following error:
>
> arm-linux-ld: ERROR:
> /home/blasig/omap/tools/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o) uses hardware FP, whereas u-boot uses software FP
> File in wrong format: failed to merge target specific data of file
> /home/blasig/omap/tools/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o)
>
> Is this error a result of me not including an option for GCC so it
> compiles a software floating point libgcc.a? If so, how does one
> accomplish this? Or is it an error related to something else?
>
> Thanks for your time
--
Matthew S. McClintock <mattsm@arlut.utexas.edu>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-30 19:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-28 20:48 Building a cross compiler with software floating point Matthew S. McClintock
2003-10-30 19:27 ` Matthew S. McClintock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).