Dr. David Kirkby wrote:
> Here's my attempt to build sage 3.0.2 on Solaris (SPARC).
>
> The build process reports gmp_aux.h is not found, I checked and there
> is no such file. However, this in itself does not cause the build
> process to stop, but it later stops when various things are
> undefined.
>
> See below.
>
> The system in a Sun Blade 2000 running Solaris 10 update 4. gcc 4.0.2
> from Blastwave, and gnu make.
>
>
> I noticed gmp_aux.h exists in Singlular I have on the disk, but I'm
> not sure if that is the correct version. In any case, it needs
> fixing.
>
> Dave
>
>
> [EMAIL PROTECTED]:[~/sage-3.0.2] $ make SAGE_PORT=45
> <snip>
> x ntl-5.4.2.p3/src/src/pair_GF2EX_long.c, 385 bytes, 1 tape blocks
> 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_120011-14 sun4u sparc SUNW,Sun-Blade-1000
> ****************************************************
> ****************************************************
> GCC Version
> gcc -v
> Reading specs from /usr/local/opt/csw/gcc4/bin/../lib/gcc/sparc-sun-
> solaris2.8/4.0.2/specs
> Target: sparc-sun-solaris2.8
> Configured with: ../sources/gcc-4.0.2/configure --prefix=/opt/csw/gcc4
> --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 --with-
> system-zlib --enable-languages=c,c++,f95,java,objc,ada
> Thread model: posix
> gcc version 4.0.2
> ****************************************************
> writing makefile
> writing ../include/NTL/config.h
> Building and install NTL
> make[2]: Entering directory `/export/home/drkirkby/sage-3.0.2/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.2/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: error: NTL/mach_desc.h: No such file or
> directory
> 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: error: NTL/gmp_aux.h: No such file or
> directory
> ../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
> ../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.2/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.2/spkg/
> build/ntl-5.4.2.p3/src/src'
> Error creating ntl shared library.
>
> real    0m1.459s
> user    0m1.035s
> sys     0m0.200s
> 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.2/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.2/spkg/build/ntl-5.4.2.p3 and type
> 'make'.
> Instead type "/export/home/drkirkby/sage-3.0.2/sage -sh"
> in order to set all environment variables correctly, then cd to
> /export/home/drkirkby/sage-3.0.2/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.2/spkg'
>
> real    13:21.5
> user     7:07.1
> sys      1:23.1

Hi,

It looks like gmp_aux.h is generated during "make setup3" which is
completely skipped on sun, from the skpg-install script:
do_tune()
{
    if [ $UNAME = "SunOS" ]; then
        return
    fi
    do_make setup1
    do_make setup2
    do_make setup3
    do_make setup4
}
-----------------
May be you could try to insert "do_make setup3" before the return
and see if it improve things.

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

Reply via email to