Bug#513819: Package FTBFS on mips

2009-02-01 Thread Peter 'p2' De Schrijver
On 2009-02-01 19:28:45 (-0500), Tim Abbott  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 debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#513819: Package FTBFS on mips

2009-02-01 Thread Tim Abbott
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?


-Tim Abbott

On Sun, 1 Feb 2009, Peter De Schrijver (p2) wrote:


Package: sagemath
Version: 3.0.5dfsg-1
Severity: important
Justification: fails to build from source

Package FTBFS on mips. See attached logfile.

-- System Information:
Debian Release: 4.0
 APT prefers stable
 APT policy: (500, 'stable')
Architecture: mips (mips64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.25-rc3-0-g84d8498-dirty
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org