[Ecls-list] Ecl-build can't find existing gmp-lib ?

Oliver Kullmann O.Kullmann at swansea.ac.uk
Mon May 24 11:17:13 UTC 2010


Hello,

Regarding the Ecl-build-system, the question seems to me about how to handle
correctly local Gmp-installations:

 - I would think the build system should add the specification
   -Wl,-rpath,/home/Gmp/4.1.2/5.0.1/lib
   itself, given that the gmp-prefix has been set.
 - It seems to me that this done in general (we install other packages also with the local Gmp,
   and there it works).
 - We can work around it by using

LDFLAGS="-Wl,-rpath=/home/Ecl/10.4.1/lib -Wl,-rpath,/home/Gmp/4.1.2/5.0.1/lib"
  ./configure --prefix=/home/Ecl/10.4.1
  --with-gmp-prefix=/home/Gmp/4.1.2/5.0.1
  CC=/home/Gcc/4.1.2/bin/gcc
  CXX=/home/Gcc/4.1.2/bin/g++

when building Ecl;
though this is the only installation I am aware of where LDFLAGS have to be used this way.

These are just some general thoughts, on how to possibly improve the Ecl-build (hopefully
for everybody), but perhaps there a good reasons why the Ecl-build is how it is, and we can
definitely live with the above solution.

Thanks for your attention!

Oliver

P.S.

Perhaps an additional configure-variable "--with-gmp-local-prefix" could be introduced, which
would automatically use the above linker-option (different from a "system gmp", which doesn't
need that).


On Sat, May 22, 2010 at 08:49:38PM +0100, Oliver Kullmann wrote:
> The problem is that the rpath-option for building ecl_min should use the lib
> used by ecl_min, that is, gmp --- then ecl_min is built correctly:
> 
> ecl-10.4.1/build> /home/kullmann/OKplatform/ExternalSources/Installations/Gcc/4.1.2/bin/gcc -L/home/kullmann/OKplatform/ExternalSources/Installations/Gmp/4.1.2/5.0.1/lib -Wl,-rpath,/home/kullmann/OKplatform/ExternalSources/Installations/Gmp/4.1.2/5.0.1/lib -o ecl_min cinit.o c/all_symbols.o -L./ libeclmin.a -leclgc  -lgmp -ldl  -lm
> ecl-10.4.1/build> ./ecl_min
> ;*** Lisp core booted ****
> ECL (Embeddable Common Lisp)
> 
> 
> 
> On Sat, May 22, 2010 at 09:27:14PM +0200, Juan Jose Garcia-Ripoll wrote:
> > On Sat, May 22, 2010 at 9:17 PM, Oliver Kullmann
> > <O.Kullmann at swansea.ac.uk>wrote:
> > 
> > >
> > > /home/kullmann/OKplatform/ExternalSources/Installations/Gcc/4.1.2/bin/gcc
> > > -Wl,-rpath=/home/kullmann/OKplatform/ExternalSources/Installations/Ecl/10.4.1/lib
> > > -L/home/kullmann/OKplatform/ExternalSources/Installations/Gmp/4.1.2/5.0.1/lib
> > > -o ecl_min cinit.o c/all_symbols.o -L./ libeclmin.a -leclgc  -lgmp -ldl  -lm
> > > ;\
> > 
> > 
> > It seems that we are doing our job and LDFLAGS gets used, so there is no
> > fundamental problem with ECL's configuration process.
> > 
> > The only thing I can think of is that maybe 'rpath' should appear at some
> > other place: instead of right after "gcc" maybe before the -L or -l options.
> > Otherwise I am just without any clue.
> > 
> > I can only ask you to do combinations of this command by yourself until you
> > find one that makes it work in your system and report it back.
> > 
> > If you find no solution then there are two options:
> > 
> > * Forget "-rpath" and instead use statically linked libraries, libgmp.a,
> > added to the value of LIBS
> > * Export
> > LD_LIBRARY_PATH=/path/to/your/library:/path/to/where/libecl/will/reside
> > 
> > Juanjo
> > 
> > -- 
> > Instituto de Física Fundamental, CSIC
> > c/ Serrano, 113b, Madrid 28006 (Spain)
> > http://tream.dreamhosters.com
> 
> -- 
> Dr. Oliver Kullmann
> Computer Science Department
> Swansea University
> Faraday Building, Singleton Park
> Swansea SA2 8PP, UK
> http://cs.swan.ac.uk/~csoliver/

-- 
Dr. Oliver Kullmann
Computer Science Department
Swansea University
Faraday Building, Singleton Park
Swansea SA2 8PP, UK
http://cs.swan.ac.uk/~csoliver/




More information about the ecl-devel mailing list