Hi,

I just tried to build 'Sage' with the Sun compiler. A few packages will 
not build, one of which is givaro-3.2.13rc2


It fails with:


checking for GMP >= 3.1.1... not found
*******************************************************************************
  ERROR: GMP not found!

  GMP version 3.1.1 or greater is required for this library to compile. 
Please
  make sure GMP is installed and specify its location with the option
  --with-gmp=<prefix> when running configure.
*******************************************************************************
Error configuring givaro

real    0m21.436s
user    0m7.828s
sys     0m12.536s
sage: An error occurred while installing givaro-3.2.13rc2
Please email sage-devel http://groups.google.com/group/sage-devel


But all the gmp files (both library and header files) are present and 
correct.

drkir...@smudge:[~/sage/suncc/sage-4.1.1/local] $ find . -name '*gmp*'
./include/gmpxx.h
./include/gmp.h
./lib/libgmpxx.so.3
./lib/libgmp.so
./lib/libpari-gmp.so.2
./lib/libgmp.so.3
./lib/libpari-gmp.so.2.3.3
./lib/libgmp.la
./lib/libgmpxx.so
./lib/libgmp.so.3.4.4
./lib/libgmpxx.so.3.1.4
./lib/libgmpxx.la


I've no idea why givaro should find gmp when it was build with the GNU 
compiler, but not the GNU one. (Actually, it is mpir used in Sage, not 
GMP.)

I then downloaded the latest source code for givaro (givaro-3.2.15rc1) 
and find the configure script soon fails, thinking my compiler can't 
create executables. (This is outside of Sage, but the same compiler I 
used to build lots of other executables).


drkir...@smudge:[~/sage/suncc/sage-4.1.1/spkg/standard/givaro-3.2.15] $ 
echo $CC
/opt/sunstudio12.1/bin/cc
drkir...@smudge:[~/sage/suncc/sage-4.1.1/spkg/standard/givaro-3.2.15] $ 
./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... /opt/sunstudio12.1/bin/cc
checking for C compiler default output file name...
configure: error: in 
`/export/home/drkirkby/sage/suncc/sage-4.1.1/spkg/standard/givaro-3.2.15':
configure: error: C compiler cannot create executables
See `config.log' for more details.


PS, the file macros/gmp-check.m4 has the version of gmp needed (3.1.1) 
hard-coded. It would be preferable for the macro to take that as an 
argument.

Dave



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an 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