On Mon, Aug 30, 2010 at 1:47 AM, Steve Kargl wrote: >> > Further testing on i386-*-freebsd runs into undefined symbols. >> > >> > libquad.so: undefined reference to `__getf2' >> > libquad.so: undefined reference to `__eqtf2' >> > libquad.so: undefined reference to `__addtf3' >> > libquad.so: undefined reference to `__floatsitf' >> > libquad.so: undefined reference to `__trunctfxf2' >> > libquad.so: undefined reference to `__divtf3' >> > libquad.so: undefined reference to `__letf2' >> > libquad.so: undefined reference to `__unordtf2' >> > libquad.so: undefined reference to `__fixtfdi' >> > libquad.so: undefined reference to `__fixtfsi' >> > libquad.so: undefined reference to `__lttf2' >> > libquad.so: undefined reference to `__netf2' >> > libquad.so: undefined reference to `__extendxftf2' >> > libquad.so: undefined reference to `__extenddftf2' >> > libquad.so: undefined reference to `__multf3' >> > libquad.so: undefined reference to `__gttf2' >> > libquad.so: undefined reference to `__subtf3' >> > libgfortran.so: undefined reference to `__floatunditf' >> > libquad.so: undefined reference to `__trunctfdf2' >> > >> > >> > AFAICT, these should come from libgcc_s.so.1, but for whatever >> > reason these are missing.  I have been unable to find how >> > to induce gcc to build the required files. >> >> Try to build gcc with attached patch... >> > > Thanks for the patch.  It is clearly a step in the right > direction.  Unfortunately, my build dies with fixtfti.c, > fixunstfti.c, floattitf.c, and floatuntitf.c, which I > assume are used with conversions involving TI and TF modes. > If I use #if 0 ... #endif to block out the code in > those files, my build proceeds to libgomp, which dies with > only two missing symbols, > > /usr/home/kargl/gcc/obj4x/./gcc/libgcc_s.so: undefined reference to `__fabstf2' > /usr/home/kargl/gcc/obj4x/./gcc/libgcc_s.so: undefined reference to `__copysigntf3' > > I suppose this means that on FreeBSD, I need to enable TI mode > as well as TF. Oh, additional patch for libgcc is also needed. Attached patch will enable filtering out TImode on 32bits and will also enable fallbacks for the two missing functions, so no need for any other changes. Can you please regression test these two patches on freebsd (32 and 64 bit)? Uros.