On 2009-02-01 19:28:45 (-0500), Tim Abbott <[email protected]> wrote: > Okay, so the actual problem is that sqrtl is not defined on mips, because > mips has the whole no long doubles thing: > > gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g > -O2 -g -Wall -O2 -fPIC -I/build/buildd/sagemath-3.0.5dfsg/local//include > -I/build/buildd/sagemath-3.0.5dfsg/local//include/csage > -I/build/buildd/sagemath-3.0.5dfsg/devel//sage/sage/ext -I/usr/include > -I/usr/include/numpy -I/usr/include/FLINT -I/usr/include/givaro > -I/usr/include/gsl -I/usr/include/fplll -I/usr/include/eclib > -I/usr/include/gmp++ -I/usr/include/linbox -I/usr/include/NTL > -I/usr/include/pari -I/usr/include/qd -I/usr/include/singular > -I/usr/include/singular/singular -I/usr/include/symmetrica > -I/usr/include/polybori -I/usr/include/cudd -I/usr/include/polybori/groebner > -I/usr/include/zn_poly -I/usr/include/python2.5 -c > sage/combinat/partitions_c.cc -o > build/temp.linux-mips-2.5/sage/combinat/partitions_c.o -w -w > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for > Ada/C/ObjC but not for C++ > sage/combinat/partitions_c.cc: In function 'void > initialize_constants(unsigned int, unsigned int)': > sage/combinat/partitions_c.cc:788: error: 'sqrtl' was not declared in this > scope > error: command 'gcc' failed with exit status 1 > sage: There was an error installing modified sage library code. > > sage/combinat/partitions_c.cc seems to be the only file affected, so this > should be relatively simple. Is there a standard fix for this problem? >
I think it's best to use some form of conditional compilation based on either an autoconf test or the architecture. You could look at #451049 or #495465. Cheers, Peter. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

