GCC >= 4.5 is needed. I'll add a check to libquad's configure. FX
Le 29 août 2010 à 02:56, Steve Kargl <s...@troutmask.apl.washington.edu> a écrit : > On Sat, Aug 28, 2010 at 05:47:28PM -0700, Steve Kargl wrote: >> On Sun, Aug 29, 2010 at 01:24:47AM +0200, FX wrote: >>> Before I submit it officially for review, I want this patch to get some >>> exposure while I clean up a few remaining dusty corners. To test the patch >>> on x86_64-linux, proceed as follows: >>> >>> -- Get libquad from http://quatramaran.ens.fr/~coudert/tmp/libquad.tar.bz2 >>> , then ./configure --prefix=/foo && make && make install >>> -- Build GCC with the extra configure argument: --with-quad=/foo (to be >>> given to the toplevel configure command, like --with-gmp, nothing fancy) >>> >>> Things to test in particular: >>> >>> -- I've tested this on linux and Mac OS; although it's pretty much >>> OS-insensitive, does it work on things like FreeBSD and Windows? >>> -- check carefully I/O support; in particular, the "output formatting" >>> (i.e. writing out the values) involves a wrapper of my own around the gdtoa >>> code, which was a bit painful to write, so bugs might have crawled in there >>> >>> >> >> On i386-*-freebsd, >> >> ./configure --prefix=$HOME/work >> gmake >> ... >> >> -O2 -MT libgfortran_io.lo -MD -MP -MF .deps/libgfortran_io.Tpo -c -o >> libgfortran_io.lo libgfortran_io.c >> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT libgfortran_io.lo >> -MD -MP -MF .deps/libgfortran_io.Tpo -c libgfortran_io.c -fPIC -DPIC -o >> .libs/libgfortran_io.o >> In file included from libgfortran_io.c:1: >> quad.h:8: error: unable to emulate 'TC' > > gcc, here, is the FreeBSD system compiler. > gcc (GCC) 4.2.1 20070719 [FreeBSD] > > If I set my path to include ~/work/bin (where the 4.6.0 gcc lives) > as the first directory to search, libquad builds fine. So, what > is the minimum required gcc version needs to build libquad? > > -- > Steve