fail to building with -msoft-float

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I want to build the source of gcc and make '-msoft-float' available. But
I don't know how to build the source code. I just follow the next steps:

1. download the source code, gcc-4.1.2.tar.gz, from the mirror site;
2. tar -xzf gcc-4.1.2.tar.gz;
3. ./configure --prefix=/home/user/gcc4.1.2/install
--with-local-prefix=/home/user/gcc4.1.2/install --enable-threads=single
--enable-languages=c,c++,objc --enable-bootstrap
4.  make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates -msoft-float' bootstrap
5. make install

Finally, I use the above gcc to compile a test program

 /home/user/gcc4.1.2/install/bin/gcc -msoft-float test.c -o test

but there are errors :
/tmp/ccWjy9Ug.o: In function `main':
test.c:(.text+0x2f): undefined reference to `__floatsidf'
test.c:(.text+0x55): undefined reference to `__adddf3'
test.c:(.text+0x61): undefined reference to `__fixdfsi'
collect2: ld returned 1 exit status

Would you like to tell me how to configure and compile GCC, and then I
could use the '-msoft-float' flag. 
Any suggestions from you are appreciated.
Thanks.

Best wishes,
Peter


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux