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

Oliver Kullmann O.Kullmann at swansea.ac.uk
Sat May 22 19:49:38 UTC 2010


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/




More information about the ecl-devel mailing list