[Scitech] sagemath needs singular packaged

Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade at gmail.com
Sun Apr 29 04:39:33 UTC 2012


  I see there is a libfac-devel package that attempts to provide
partially some of the features required.

  To start, after building pari 2.5.1, rebuilding lcalc with the pari
patch applied, and rebuilding eclib (that AFAIK could use the
latest upstream, not just use the sagemath spkg), the build
failure now is:

[...]
g++ -pthread -shared build/temp.linux-x86_64-2.7/sage/libs/ppl.o
build/temp.linux-x86_64-2.7/sage/libs/ppl_shim.o -Lc_lib
-L/home/pcpa/rpmbuild/BUILDROOT/sagemath-4.8-0.1.x86_64/usr/share/sagemath/local/lib
-L/usr/lib64 -lcsage -lppl -lgmpxx -lgmp -lm -lstdc++ -lntl
-lpython2.7 -o build/lib.linux-x86_64-2.7/sage/libs/ppl.so
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC
-fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
-I/home/pcpa/rpmbuild/BUILDROOT/sagemath-4.8-0.1.x86_64/usr/share/sagemath/local/include
-Ic_lib/include
-I/home/pcpa/rpmbuild/BUILDROOT/sagemath-4.8-0.1.x86_64/usr/share/sagemath/devel/sage/sage/ext
-I/usr/include/python2.7 -c sage/libs/ratpoints.c -o
build/temp.linux-x86_64-2.7/sage/libs/ratpoints.o -w
sage/libs/ratpoints.c:244:23: fatal error: ratpoints.h: No such file
or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC
-fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
-I/home/pcpa/rpmbuild/BUILDROOT/sagemath-4.8-0.1.x86_64/usr/share/sagemath/local/include/singular
-I/home/pcpa/rpmbuild/BUILDROOT/sagemath-4.8-0.1.x86_64/usr/share/sagemath/local/include/factory
-I/home/pcpa/rpmbuild/BUILDROOT/sagemath-4.8-0.1.x86_64/usr/share/sagemath/local/include
-Ic_lib/include
-I/home/pcpa/rpmbuild/BUILDROOT/sagemath-4.8-0.1.x86_64/usr/share/sagemath/devel/sage/sage/ext
-I/usr/include/python2.7 -c sage/libs/singular/singular.cpp -o
build/temp.linux-x86_64-2.7/sage/libs/singular/singular.o -w
sage/libs/singular/singular.cpp:241:29: fatal error:
factory/factory.h: No such file or directory
compilation terminated.
[...]

It is building in parallel, so, nice to know about the ratpoints
failure also. ratpoints I believe could just adapt the Mandriva
package I made long ago:

http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/ratpoints/current/SPECS/ratpoints.spec?view=markup

but singular is a beast :-) At first I would suggest also using
my package from Mandriva, but since a lot of packages are
being reviewed, it should be worth to give a try at using the
actual latest upstream release. But beware now I am getting
at one of the most critical packages to build sagemath using
system wide packages... and ending with a funcional sagemath,
not just getting coredumps and memory corruption :-)

The Mandriva package can be viewed at:

http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/singular/current/SPECS/singular.spec?view=markup

What I would change first is to install binaries in libexecdir
and no longer build a static library package.

Thanks,
Paulo


More information about the scitech mailing list