This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Would you like to give me advice about how to compile gcc? __addd3f link error.


On Sat 27 Oct 2007, "L.Yan" <g_lqyan@stu.edu.cn>:
> 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 do it as the following
> 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

Apparently, __addd3f seems to be the last crashed softfloat's backdoor,
xDDDD, the same history repeats + or - in the past.
I don't know if it had a reputation or not.

Dear L. Yan, you need to practice some tricks from below urls:

__adddf3 undefined (search the word __adddf3):

http://gcc.gnu.org/ml/gcc-help/2003-12/msg00072.html
http://gcc.gnu.org/ml/gcc-bugs/2006-12/msg01053.html
http://gcc.gnu.org/ml/gcc-bugs/2006-12/msg00441.html
http://gcc.gnu.org/ml/gcc/2002-10/msg00481.html
http://gcc.gnu.org/ml/gcc/2002-10/msg00482.html
http://gcc.gnu.org/ml/gcc/2002-10/msg00483.html
http://gcc.gnu.org/ml/gcc/2002-10/msg00485.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00568.html
http://gcc.gnu.org/ml/gcc-patches/2003-08/txt00013.txt
http://gcc.gnu.org/ml/gcc-regression/2000-07/msg00065.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00569.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00570.html
http://sourceware.org/ml/crossgcc/1999-q3/msg00457.html
http://sourceware.org/ml/crossgcc/1999-q3/msg00458.html
http://sourceware.org/ml/crossgcc/1999-q3/msg00454.html


__floatsidf undefined (search the word __floatsidf):

http://gcc.gnu.org/ml/gcc-bugs/2004-06/msg01219.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15873
http://gcc.gnu.org/ml/gcc-bugs/2004-08/msg01413.html
http://gcc.gnu.org/ml/gcc-bugs/2004-06/msg00907.html
http://gcc.gnu.org/ml/gcc-bugs/2004-06/msg00908.html
http://gcc.gnu.org/ml/gcc-bugs/2004-06/msg01032.html
http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01093.html
http://gcc.gnu.org/ml/gcc-bugs/2005-11/msg03231.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24998
http://gcc.gnu.org/ml/gcc-bugs/2005-11/msg03233.html
http://gcc.gnu.org/ml/gcc-help/2005-05/msg00316.html
http://gcc.gnu.org/ml/gcc-help/2005-05/msg00310.html
http://gcc.gnu.org/ml/gcc-help/2005-05/msg00315.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00568.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00569.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00570.html
http://gcc.gnu.org/ml/gcc/1997-12/msg01049.html
http://gcc.gnu.org/ml/gcc/1997-12/msg01063.html
http://gcc.gnu.org/ml/gcc-bugs/2005-11/msg03227.html
http://gcc.gnu.org/ml/gcc/2007-07/msg00882.html
http://gcc.gnu.org/ml/gcc/2005-09/msg00431.html
http://gcc.gnu.org/ml/gcc/2005-09/msg00432.html
http://www.cygwin.com/ml/crossgcc/1999-q1/msg00083.html
http://www.nabble.com/insmod-ppp-mppe-gives-unresolved-symbol-__floatsidf-and-__adddf3-t1457935.html
http://discussion.forum.nokia.com/forum/showthread.php?t=40990
http://sourceware.org/ml/crossgcc/2002-05/msg00011.html
http://sourceware.org/ml/crossgcc/2002-05/msg00012.html
http://sourceware.org/ml/crossgcc/2002-05/msg00017.html
http://sourceware.org/ml/crossgcc/2002-05/msg00020.html
http://sourceware.org/ml/crossgcc/2002-05/msg00084.html


__fixdfsi undefined (search the word __fixdfsi):

http://gcc.gnu.org/ml/gcc-help/2005-05/msg00316.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00568.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00569.html
http://gcc.gnu.org/ml/gcc/2002-11/msg00570.html
http://osdir.com/ml/lib.uclibc.general/2003-03/msg00101.html
http://busybox.net/lists/uclibc/2003-March/005895.html
http://www.omnigroup.com/mailman/archive/macosx-admin/1999-November/005606.html
http://www.omnigroup.com/mailman/archive/macosx-admin/1999-November/005578.html
http://opengrok.creo.hu/openbsd/s?defs=__fixdfsi
http://opengrok.creo.hu/openbsd/search?q=__fixdfsi
http://www.busybox.net/lists/uclibc/2002-November/004938.html
http://stuff.mit.edu/afs/sipb/project/pilot/src/gnusrc/fpgnulib.c
http://sourceware.org/ml/crossgcc/2002-05/msg00011.html
http://www.cygwin.com/ml/newlib/2007/msg00929.html
http://mhonarc.axis.se/dev-etrax/msg05341.html
http://www.srcdoc.com/linux_2.2.26/floatlib_8c.html
http://forums.ni.com/attachments/ni/beta2/100/1/Linker%20error%20stream.txt

   J.C. Pizarro


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]