You are not logged in.

#1 2012-03-31 21:23:18

duke11235
Member
Registered: 2009-10-09
Posts: 221

sage-mathematics from AUR fails to build

Anyone have any ideas why eclib shared libraries failed to build. I'd like to get the program running quickly, as I'm using it for college. On an unrelated note, why hasn't it remained in the repos? Its takes quite a long time to build. Let me know if anything else will help.

[duke@cii ~]$ cd '/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0' && '/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/sage' -sh

Starting subshell with Sage environment variables set.
Be sure to exit when you are done and do not do anything
with other copies of Sage!

Bypassing shell configuration files ...

SAGE_ROOT=/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8
(sage subshell) cii:eclib-20100711.p0 duke$ make
make: *** No targets specified and no makefile found.  Stop.
SAGE_ROOT=/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8
(sage subshell) cii:eclib-20100711.p0 duke$ ./configure
bash: ./configure: No such file or directory
SAGE_ROOT=/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8
(sage subshell) cii:eclib-20100711.p0 duke$ ls
spkg-check  spkg-install  SPKG.txt  src
SAGE_ROOT=/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8
(sage subshell) cii:eclib-20100711.p0 duke$ ./spkg-install 
Deleting old versions of eclib libraries, which
would interfere with new builds.
rm: cannot remove `libcurvesntl.*': No such file or directory
rm: cannot remove `libg0nntl.*': No such file or directory
rm: cannot remove `libjcntl.*': No such file or directory
rm: cannot remove `librankntl.*': No such file or directory
rm: cannot remove `libmwrank.*': No such file or directory
Deleting old include directory
mkdir -p include
mkdir -p lib
cd procs && make lib install
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/procs'
Makefile:92: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:95: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:108: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
ar r libjcntl.a interface_n.o arith_n.o marith_n.o gpslave_n.o conic_n.o legendre_n.o unimod_n.o quadratic_n.o cubic_n.o illl_n.o hilbert_n.o parifact_n.o p2points_n.o compproc_n.o kbessel_n.o vector_n.o matrix_n.o subspace_n.o mvector_n.o mmatrix_n.o msubspace_n.o xsplit2_n.o  timer_n.o svector_n.o smatrix_n.o smatrix_elim_n.o polys_n.o realroots_n.o gf_n.o  
ranlib libjcntl.a
chmod a+r *
(cd ../include; rm -f interface.h templates.h arith.h xmod.h marith.h gpslave.h compproc.h vec.h vector.h mat.h matrix.h sub.h subspace.h rat.h bigrat.h kbessel.h svec.h svector.h smat.h smatrix.h smat_elim.h smatrix_elim.h mvector.h mmatrix.h msubspace.h method.h splitbase.h xsplit.h conic.h legendre.h quadratic.h unimod.h illl.h hilbert.h timer.h cubic.h gf.h polys.h realroots.h parifact.h p2points.h)
cp -p interface.h templates.h arith.h xmod.h marith.h gpslave.h compproc.h vec.h vector.h mat.h matrix.h sub.h subspace.h rat.h bigrat.h kbessel.h svec.h svector.h smat.h smatrix.h smat_elim.h smatrix_elim.h mvector.h mmatrix.h msubspace.h method.h splitbase.h xsplit.h conic.h legendre.h quadratic.h unimod.h illl.h hilbert.h timer.h cubic.h gf.h polys.h realroots.h parifact.h p2points.h ../include
chmod a+r ../include/*.h
rm -f ../lib/libjcntl.a
ar r ../lib/libjcntl.a interface_n.o arith_n.o marith_n.o gpslave_n.o conic_n.o legendre_n.o unimod_n.o quadratic_n.o cubic_n.o illl_n.o hilbert_n.o parifact_n.o p2points_n.o compproc_n.o kbessel_n.o vector_n.o matrix_n.o subspace_n.o mvector_n.o mmatrix_n.o msubspace_n.o xsplit2_n.o  timer_n.o svector_n.o smatrix_n.o smatrix_elim_n.o polys_n.o realroots_n.o gf_n.o  
ar: creating ../lib/libjcntl.a
ranlib ../lib/libjcntl.a
chmod a+rx ../lib/libjcntl.a
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/procs'
cd qcurves && make lib install
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qcurves'
Makefile:123: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:126: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:134: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
make[1]: Nothing to be done for `lib'.
(cd ../include; rm -f curve.h points.h cperiods.h isogs.h reader.h mwprocs.h lambda.h sifter.h sieve_search.h htconst.h egr.h saturate.h divpol.h pointsmod.h curvemod.h ffmod.h tlss.h elog.h getcurve.h )
for f in curve.h points.h cperiods.h isogs.h reader.h mwprocs.h lambda.h sifter.h sieve_search.h htconst.h egr.h saturate.h divpol.h pointsmod.h curvemod.h ffmod.h tlss.h elog.h getcurve.h ; \
 do cp ${f} ../include; \
done
chmod a+r ../include/*
rm -f ../lib/libcurvesntl.a
cp libcurvesntl.a ../lib
chmod a+rx ../lib/libcurvesntl.a
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qcurves'
cd qrank && make lib install
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qrank'
Makefile:78: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:122: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:146: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
rm -f librankntl.a
ar r librankntl.a mrank1_n.o mrank2_n.o mequiv_n.o mquartic_n.o mlocsol_n.o mglobsol_n.o  qc_n.o sqfdiv_n.o desc2_n.o transform_n.o minim_n.o reduce_n.o bitspace_n.o GetOpt_n.o twoadic_n.o descent_n.o
ar: creating librankntl.a
ranlib librankntl.a
(cd ../include; rm -f mrank2.h mequiv.h mlocsol.h mglobsol.h msoluble.h mquartic.h mrank1.h qc.h sqfdiv.h version.h minim.h reduce.h transform.h desc2.h bitspace.h options.h GetOpt.h twoadic.h descent.h)
for f in mrank2.h mequiv.h mlocsol.h mglobsol.h msoluble.h mquartic.h mrank1.h qc.h sqfdiv.h version.h minim.h reduce.h transform.h desc2.h bitspace.h options.h GetOpt.h twoadic.h descent.h; \
 do cp ${f} ../include; \
done
chmod a+r ../include/*
rm -f ../lib/librankntl.a
cp librankntl.a ../lib
chmod a+rx ../lib/librankntl.a
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qrank'
cd g0n && make lib install
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/g0n'
Makefile:115: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:118: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:121: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
make[1]: Nothing to be done for `lib'.
(cd ../include; rm -f periods.h cusp.h homspace.h newforms.h nflist.h moddata.h oldforms.h symb.h fixc6.h pcprocs.h)
for f in periods.h cusp.h homspace.h newforms.h nflist.h moddata.h oldforms.h symb.h fixc6.h pcprocs.h; \
 do cp ${f} ../include; \
done
chmod a+r ../include/*
rm -f ../lib/libg0nntl.a
cp libg0nntl.a ../lib
chmod a+rx ../lib/libg0nntl.a
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/g0n'
cd procs && make install_so && make tests progs
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/procs'
Makefile:92: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:95: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:108: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
g++ -fPIC --shared  libjcntl.a interface_n.o arith_n.o marith_n.o gpslave_n.o conic_n.o legendre_n.o unimod_n.o quadratic_n.o cubic_n.o illl_n.o hilbert_n.o parifact_n.o p2points_n.o compproc_n.o kbessel_n.o vector_n.o matrix_n.o subspace_n.o mvector_n.o mmatrix_n.o msubspace_n.o xsplit2_n.o  timer_n.o svector_n.o smatrix_n.o smatrix_elim_n.o polys_n.o realroots_n.o gf_n.o   -o libjcntl.so -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -lgmp -lpari  -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -lgmp -lpari -lm  
cp libjcntl.so ../lib/
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/procs'
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/procs'
Makefile:92: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:95: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:108: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
make[1]: Nothing to be done for `tests'.
make[1]: Nothing to be done for `progs'.
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/procs'
cd qcurves && make install_so && make tests progs
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qcurves'
Makefile:123: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:126: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:134: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
cp libcurvesntl.so ../lib/
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qcurves'
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qcurves'
Makefile:123: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:126: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:134: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
make[1]: Nothing to be done for `tests'.
g++  -o ./torsion torsion_n.o libcurvesntl.a  -ljcntl -L../lib -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lm 
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -I../include -DNTL_ALL -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include  conductor.cc -o conductor_n.o
g++  -o ./conductor conductor_n.o libcurvesntl.a   -ljcntl -L../lib -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lm 
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -I../include -DNTL_ALL -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include  twist.cc -o twist_n.o
g++  -o ./twist twist_n.o libcurvesntl.a  -ljcntl -L../lib -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lm 
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -I../include -DNTL_ALL -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include  allisog.cc -o allisog_n.o
g++  -o ./allisog allisog_n.o libcurvesntl.a  -ljcntl -L../lib -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lm 
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -I../include -DNTL_ALL -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include  findinf.cc -o findinf_n.o
g++  -o ./findinf findinf_n.o libcurvesntl.a  -ljcntl -L../lib -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lm 
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -I../include -DNTL_ALL -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include  indep.cc -o indep_n.o
g++  -o ./indep indep_n.o libcurvesntl.a  -ljcntl -L../lib -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lm 
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qcurves'
cd qrank && make install_so && make tests progs
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qrank'
Makefile:78: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:122: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:146: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
g++ -fPIC --shared  librankntl.a mrank1_n.o mrank2_n.o mequiv_n.o mquartic_n.o mlocsol_n.o mglobsol_n.o  qc_n.o sqfdiv_n.o desc2_n.o transform_n.o minim_n.o reduce_n.o bitspace_n.o GetOpt_n.o twoadic_n.o descent_n.o -o librankntl.so -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -L../lib -lcurvesntl -ljcntl -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lpari -lm 
cp librankntl.so ../lib/
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qrank'
make[1]: Entering directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qrank'
Makefile:78: warning: overriding recipe for target `clean'
../Makefile:76: warning: ignoring old recipe for target `clean'
Makefile:122: warning: overriding recipe for target `veryclean'
../Makefile:84: warning: ignoring old recipe for target `veryclean'
Makefile:146: warning: overriding recipe for target `check'
../Makefile:95: warning: ignoring old recipe for target `check'
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -I../include -DNTL_ALL -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include  version.cc -o version_n.o
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -I../include -DNTL_ALL -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include -I/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/include  mwrank.cc -o mwrank_n.o
chmod og+r *
g++ -o mwrank version_n.o mwrank_n.o descent_n.o mrank1_n.o mrank2_n.o mequiv_n.o mquartic_n.o \
mlocsol_n.o mglobsol_n.o  qc_n.o sqfdiv_n.o desc2_n.o \
transform_n.o minim_n.o reduce_n.o bitspace_n.o GetOpt_n.o twoadic_n.o \
 -L../lib -lcurvesntl -ljcntl -lpari -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -L/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/local/lib -lntl -L../lib -lgmp  -lpari  -lpari -lm 
collect2: ld returned 1 exit status
make[1]: *** [mwrank] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8/spkg/build/eclib-20100711.p0/src/qrank'
make: *** [so] Error 2
Error building eclib shared libraries
SAGE_ROOT=/tmp/yaourt-tmp-duke/aur-sage-mathematics/src/sage-4.8

Offline

#2 2012-03-31 23:47:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: sage-mathematics from AUR fails to build

Moderator:  Moving to AUR issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2012-04-01 16:28:53

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: sage-mathematics from AUR fails to build

No errors when building with makepkg.

about the long build time :

during compile sage uses about 3 GB memory, if you have less free memory it will need to use swap a lot.

if you have  a multi-core system you can speed up the compilation by doing

export MAKE="make -j9"

(replace 9 with number of cores +1) before starting the compile.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2012-04-02 06:25:44

ghyspran
Member
Registered: 2006-03-16
Posts: 18
Website

Re: sage-mathematics from AUR fails to build

Sage takes a huge amount of space to compile, so building it with yauort will most likely not work. It didn't work for me. I'm going to guess your tmpfs is about 2GiB because that's how large mine was when my build failed at eclib. Try downloading the package from the AUR manually and running makepkg on a partition with a safe amount of free space, maybe 10GiB.

Offline

#5 2012-04-07 16:29:59

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: sage-mathematics from AUR fails to build

Thanks for the tip. Never realized any of the constraints imposed by yaourt or the spae required.

Offline

#6 2012-04-14 22:07:32

omgwtfbyobbq
Member
Registered: 2006-07-04
Posts: 226

Re: sage-mathematics from AUR fails to build

I'm getting something slightly different when I try to build this package. They all seem to be the same as this, except with different function names.

error: ‘mulColDense’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

Does anyone have any ideas on how to remedy this?

Offline

Board footer

Powered by FluxBB