gcc is being called without the -m64 option when building 'gdmodule' on OpenSolaris, despite SAGE64 being set to "yes".

But I've no idea how to go about changing this behavior. There seems to be no code which does anything special on OS X for 64-bit builds.

I've raised this as bug:

http://trac.sagemath.org/sage_trac/ticket/9021

but don't have much clue about how to solve it, as I don't understand the build process involved here.


gdmodule-0.56.p7/src/PKG-INFO
Finished extraction
****************************************************
Host system
uname -a:
SunOS hawk 5.11 snv_134 i86pc i386 i86pc
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.4.4/configure --prefix=/usr/local/gcc-4.4.4 --with-as=/usr/local/binutils-2.20/bin/as --with-ld=/usr/ccs/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local
Thread model: posix
gcc version 4.4.4 (GCC)
****************************************************
['gd', 'png12', 'z', 'freetype']
running build
running build_py
creating build
creating build/lib.solaris-2.11-i86pc-2.6
copying gd.py -> build/lib.solaris-2.11-i86pc-2.6
running build_ext
building '_gd' extension
creating build/temp.solaris-2.11-i86pc-2.6
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_LIBGD -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBFREETYPE -I/export/home/drkirkby/sage-4.4.2/local/include -I/usr/local/include -I/usr/include -I/usr/include/X11 -I/usr/X11R6/include -I/export/home/drkirkby/sage-4.4.2/local/include/python2.6 -c _gdmodule.c -o build/temp.solaris-2.11-i86pc-2.6/_gdmodule.o In file included from /export/home/drkirkby/sage-4.4.2/local/include/python2.6/Python.h:58,
                 from _gdmodule.c:126:
/export/home/drkirkby/sage-4.4.2/local/include/python2.6/pyport.h:685:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
_gdmodule.c:152: warning: function declaration isn’t a prototype
_gdmodule.c:169: warning: function declaration isn’t a prototype
_gdmodule.c: In function ‘image_string’:
_gdmodule.c:993: warning: pointer targets in passing argument 5 of ‘gdImageString’ differ in signedness /export/home/drkirkby/sage-4.4.2/local/include/gd.h:363: note: expected ‘unsigned char *’ but argument is of type ‘char *’
_gdmodule.c: In function ‘image_string16’:
_gdmodule.c:1008: warning: passing argument 5 of ‘gdImageString16’ from incompatible pointer type /export/home/drkirkby/sage-4.4.2/local/include/gd.h:367: note: expected ‘short unsigned int *’ but argument is of type ‘Py_UNICODE *’
_gdmodule.c: In function ‘image_stringup’:
_gdmodule.c:1022: warning: pointer targets in passing argument 5 of ‘gdImageStringUp’ differ in signedness /export/home/drkirkby/sage-4.4.2/local/include/gd.h:365: note: expected ‘unsigned char *’ but argument is of type ‘char *’
_gdmodule.c: In function ‘image_stringup16’:
_gdmodule.c:1037: warning: passing argument 5 of ‘gdImageStringUp16’ from incompatible pointer type /export/home/drkirkby/sage-4.4.2/local/include/gd.h:369: note: expected ‘short unsigned int *’ but argument is of type ‘Py_UNICODE *’
error: command 'gcc' failed with exit status 1
Failure to build gdmodule

real    0m0.118s
user    0m0.083s
sys     0m0.031s
sage: An error occurred while installing gdmodule-0.56.p7



--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to