The title pretty much says it all. I edited the Makefile to remove the line

CC=gcc

then exported CC to /usr/sfw/bin/gcc

which is version 3.4.3 of gcc.


I did this outside of Sage - just decompressed the .spkg and run 
spkg-install.

As you can see below, ratpoints builds fine.


drkir...@swan:[~/ratpoints-2.1.2.p2] $ ./spkg-install
/usr/sfw/bin/gcc sift.c -c -o sift.o 
-I/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/include -Wall -O2 
-fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -funroll-loops
/usr/sfw/bin/gcc gen_init_sieve_h.c -o gen_init_sieve_h 
-I/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/include -Wall -O2 
-fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE 
-L/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/lib -lgmp -lm
./gen_init_sieve_h > init_sieve.h
/usr/sfw/bin/gcc init.c -c -o init.o 
-I/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/include -Wall -O2 
-fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -funroll-loops -O3
/usr/sfw/bin/gcc sturm.c -c -o sturm.o 
-I/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/include -Wall -O2 
-fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE
/usr/sfw/bin/gcc gen_find_points_h.c -o gen_find_points_h 
-I/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/include -Wall -O2 
-fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE 
-L/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/lib -lgmp -lm
./gen_find_points_h > find_points.h
/usr/sfw/bin/gcc find_points.c -c -o find_points.o 
-I/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/include -Wall -O2 
-fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE
ar rs libratpoints.a sift.o init.o sturm.o find_points.o
ar: creating libratpoints.a
/usr/sfw/bin/gcc main.c -o ratpoints 
-I/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/include -Wall -O2 
-fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE 
-L/export/home/drkirkby/sage/sage-4.1.2.alpha4/local/lib -lgmp -lm -L. 
-lratpoints

It would need some changes to get it to work with the Sun compiler, but 
it seems ok with the gcc that is shipped with Solaris.

Dave

--~--~---------~--~----~------------~-------~--~----~
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