I've tried to build Sage 3.0.4 on my Sun Blade 2000 (Solaris 10 8/07 s10s_u4wos_12b SPARC). It fails when building ntl, reporting:
../include/NTL/ctools.h:6:27: NTL/mach_desc.h: No such file or directory Looking at the sage tree, I note that mach_desc.h does not exists. $ find sage-3.0.4 -name mach_desc.h Nor does this header exist in the ntl-5.4.2.tar.gz file. BUT if I tried to build ntl from ntl-5.4.2.tar.gz, so the file gets created. $ find ntl-5.4.2 -name mach_desc.h ntl-5.4.2/src/small/include/NTL/mach_desc.h ntl-5.4.2/include/NTL/mach_desc.h So it seems to me that ntl builds fine if I download the original source, but fails to build in Sage. I can only assume one of the patches is stopping mach_desc.h from being created on SPARC. x ntl-5.4.2.p3/src/src/DispSettings.c, 2197 bytes, 5 tape blocks x ntl-5.4.2.p3/src/src/pair_lzz_pX_long.c, 386 bytes, 1 tape blocks Finished extraction **************************************************** Host system uname -a: SunOS kestrel 5.10 Generic_137111-01 sun4u sparc SUNW,Sun-Blade-1000 **************************************************** **************************************************** GCC Version gcc -v Reading specs from /opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.5/ specs Configured with: ../sources/gcc-3.4.5/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/ as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix -- enable-shared --enable-multilib --enable-nls --with-included-gettext -- with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable- languages=all Thread model: posix gcc version 3.4.5 **************************************************** writing makefile writing ../include/NTL/config.h Building and install NTL make[2]: Entering directory `/export/home/drkirkby/sage-3.0.4/spkg/ build/ntl-5.4.2.p3/src/src' rm -f FFT.o FacVec.o GF2.o GF2E.o GF2EX.o GF2EXFactoring.o GF2X.o GF2X1.o GF2XFactoring.o GF2XVec.o GetTime.o HNF.o ctools.o LLL.o LLL_FP.o LLL_QP.o LLL_RR.o LLL_XD.o RR.o WordVector.o ZZ.o ZZVec.o ZZX.o ZZX1.o ZZXCharPoly.o ZZXFactoring.o ZZ_p.o ZZ_pE.o ZZ_pEX.o ZZ_pEXFactoring.o ZZ_pX.o ZZ_pX1.o ZZ_pXCharPoly.o ZZ_pXFactoring.o fileio.o lip.o lzz_p.o lzz_pE.o lzz_pEX.o lzz_pEXFactoring.o lzz_pX.o lzz_pX1.o lzz_pXCharPoly.o lzz_pXFactoring.o mat_GF2.o mat_GF2E.o mat_RR.o mat_ZZ.o mat_ZZ_p.o mat_ZZ_pE.o mat_lzz_p.o mat_lzz_pE.o mat_poly_ZZ.o mat_poly_ZZ_p.o mat_poly_lzz_p.o pair_GF2EX_long.o pair_GF2X_long.o pair_ZZX_long.o pair_ZZ_pEX_long.o pair_ZZ_pX_long.o pair_lzz_pEX_long.o pair_lzz_pX_long.o quad_float.o tools.o vec_GF2.o vec_GF2E.o vec_GF2XVec.o vec_RR.o vec_ZZ.o vec_ZZVec.o vec_ZZ_p.o vec_ZZ_pE.o vec_double.o vec_long.o vec_lzz_p.o vec_lzz_pE.o vec_quad_float.o vec_vec_GF2.o vec_vec_GF2E.o vec_vec_RR.o vec_vec_ZZ.o vec_vec_ZZ_p.o vec_vec_ZZ_pE.o vec_vec_long.o vec_vec_lzz_p.o vec_vec_lzz_pE.o vec_xdouble.o xdouble.o G_LLL_FP.o G_LLL_QP.o G_LLL_XD.o G_LLL_RR.o vec_ulong.o vec_vec_ulong.o # clean, preserving tuning parameters make shobj make[3]: Entering directory `/export/home/drkirkby/sage-3.0.4/spkg/ build/ntl-5.4.2.p3/src/src' g++ -I../include -I. -O2 -g -fPIC -fPIC -c FFT.c In file included from ../include/NTL/tools.h:5, from ../include/NTL/vector.h:5, from ../include/NTL/vec_long.h:5, from ../include/NTL/FFT.h:6, from FFT.c:3: ../include/NTL/ctools.h:6:27: NTL/mach_desc.h: No such file or directory In file included from ../include/NTL/vector.h:5, from ../include/NTL/vec_long.h:5, from ../include/NTL/FFT.h:6, from FFT.c:3: ../include/NTL/tools.h: In function `void NTL::conv(int&, long int)': ../include/NTL/tools.h:171: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/tools.h:171: error: `NTL_MIN_INT' was not declared in this scope ../include/NTL/tools.h: In function `void NTL::conv(int&, unsigned int)': ../include/NTL/tools.h:176: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/tools.h:176: error: `NTL_MIN_INT' was not declared in this scope ../include/NTL/tools.h: In function `void NTL::conv(int&, long unsigned int)': ../include/NTL/tools.h:179: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/tools.h:179: error: `NTL_MIN_INT' was not declared in this scope ../include/NTL/tools.h: In function `int NTL::to_int(long int)': ../include/NTL/tools.h:183: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/tools.h:183: error: `NTL_MIN_INT' was not declared in this scope ../include/NTL/tools.h: In function `int NTL::to_int(unsigned int)': ../include/NTL/tools.h:188: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/tools.h:188: error: `NTL_MIN_INT' was not declared in this scope ../include/NTL/tools.h: In function `int NTL::to_int(long unsigned int)': ../include/NTL/tools.h:191: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/tools.h:191: error: `NTL_MIN_INT' was not declared in this scope ../include/NTL/tools.h: In function `void NTL::conv(long int&, unsigned int)': ../include/NTL/tools.h:200: error: `NTL_BITS_PER_LONG' was not declared in this scope ../include/NTL/tools.h:200: error: `NTL_MIN_LONG' was not declared in this scope ../include/NTL/tools.h: In function `void NTL::conv(long int&, long unsigned int)': ../include/NTL/tools.h:203: error: `NTL_BITS_PER_LONG' was not declared in this scope ../include/NTL/tools.h:203: error: `NTL_MIN_LONG' was not declared in this scope ../include/NTL/tools.h: In function `long int NTL::to_long(unsigned int)': ../include/NTL/tools.h:211: error: `NTL_BITS_PER_LONG' was not declared in this scope ../include/NTL/tools.h:211: error: `NTL_MIN_LONG' was not declared in this scope ../include/NTL/tools.h: In function `long int NTL::to_long(long unsigned int)': ../include/NTL/tools.h:214: error: `NTL_BITS_PER_LONG' was not declared in this scope ../include/NTL/tools.h:214: error: `NTL_MIN_LONG' was not declared in this scope In file included from ../include/NTL/ZZ.h:18, from ../include/NTL/FFT.h:7, from FFT.c:3: ../include/NTL/lip.h:10:25: NTL/gmp_aux.h: No such file or directory In file included from ../include/NTL/FFT.h:7, from FFT.c:3: ../include/NTL/ZZ.h: In function `void NTL::conv(int&, const NTL::ZZ&)': ../include/NTL/ZZ.h:185: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/ZZ.h:185: error: `NTL_MIN_INT' was not declared in this scope ../include/NTL/ZZ.h: In function `int NTL::to_int(const NTL::ZZ&)': ../include/NTL/ZZ.h:189: error: `NTL_BITS_PER_INT' was not declared in this scope ../include/NTL/ZZ.h:189: error: `NTL_MIN_INT' was not declared in this scope FFT.c: In function `long int NTL::IsFFTPrime(long int, long int&)': FFT.c:82: error: `NTL_NBITS_MAX' was not declared in this scope FFT.c: In function `void NTL::NextFFTPrime(long int&, long int&)': FFT.c:93: error: `NTL_NBITS_MAX' was not declared in this scope FFT.c: In function `long int NTL::CalcMaxRoot(long int)': FFT.c:126: error: `NTL_NBITS_MAX' was not declared in this scope FFT.c: In function `void NTL::UseFFTPrime(long int)': FFT.c:149: error: `NTL_BITS_PER_LONG' was not declared in this scope FFT.c:156: error: `NTL_BITS_PER_LONG' was not declared in this scope FFT.c:175: error: `NTL_BITS_PER_LONG' was not declared in this scope FFT.c:177: error: `NTL_BITS_PER_LONG' was not declared in this scope FFT.c:179: error: `NTL_BITS_PER_LONG' was not declared in this scope FFT.c: In function `void NTL::BitReverseCopy(long int*, const long int*, long int)': FFT.c:224: error: `NTL_NBITS_MAX' was not declared in this scope FFT.c:230: error: `mem' was not declared in this scope FFT.c:232: error: `NTL_BITS_PER_LONG' was not declared in this scope FFT.c: In function `void NTL::FFT(long int*, const long int*, long int, long int, const long int*)': FFT.c:283: error: `NTL_BITS_PER_LONG' was not declared in this scope FFT.c:291: error: `NTL_BITS_PER_LONG' was not declared in this scope make[3]: *** [FFT.o] Error 1 make[3]: Leaving directory `/export/home/drkirkby/sage-3.0.4/spkg/ build/ntl-5.4.2.p3/src/src' make[2]: *** [libntl.so] Error 2 make[2]: Leaving directory `/export/home/drkirkby/sage-3.0.4/spkg/ build/ntl-5.4.2.p3/src/src' Error creating ntl shared library. real 0m3.143s user 0m1.347s sys 0m0.197s sage: An error occurred while installing ntl-5.4.2.p3 Please email sage-devel http://groups.google.com/group/sage-devel explaining the problem and send the relevant part of of /export/home/drkirkby/sage-3.0.4/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem, yourself *don't* just cd to /export/home/drkirkby/sage-3.0.4/spkg/build/ntl-5.4.2.p3 and type 'make'. Instead type "/export/home/drkirkby/sage-3.0.4/sage -sh" in order to set all environment variables correctly, then cd to /export/home/drkirkby/sage-3.0.4/spkg/build/ntl-5.4.2.p3 (When you are done debugging, you can type "exit" to leave the subshell.) make[1]: *** [installed/ntl-5.4.2.p3] Error 1 make[1]: Leaving directory `/export/home/drkirkby/sage-3.0.4/spkg' real 5.9 user 2.3 sys 0.5 --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---