<div class="gmail_quote">On Fri, Jan 15, 2010 at 3:16 AM, szergling <span dir="ltr"><<a href="mailto:senatorzergling@gmail.com">senatorzergling@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
1> (COMPILE-FILE "/arpa/tz/t/tyc20/lisp/ecl-hello/hello.lisp" :C-FILE<br>
T :H-FILE T :DATA-FILE T)<br>
;;; Compiling /arpa/tz/t/tyc20/lisp/ecl-hello/hello.lisp.<br>
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=3<br>
;;; End of Pass 1.<br>
;;; Note: Invoking external command:<br>
;;;   cc -I/usr/pkg/include -O2 -mieee -I/usr/pkg/include -mieee -fPIC<br>
 -Dnetbsd -O "-I/arpa/tz/t/tyc20/lisp/imp/ecl/include/" -w -c<br>
"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.c" -o<br>
"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.o"<br>
;;; Note: Invoking external command:<br>
;;;   cc -o "/arpa/tz/t/tyc20/lisp/ecl-hello/hello.fas"<br>
-L"/arpa/tz/t/tyc20/lisp/imp/ecl/lib/ecl-8.12.0/"<br>
"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.o"  -shared -L/usr/pkg/lib<br>
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib  -lecl   -lm<br>
-lgc -lgmp<br>
;;; (SYSTEM "cc -o \"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.fas\"<br>
-L\"/arpa/tz/t/tyc20/lisp/imp/ecl/lib/ecl-8.12.0/\"<br>
\"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.o\"  -shared -L/usr/pkg/lib<br>
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib  -lecl   -lm<br>
-lgc -lgmp") returned non-zero value 1<br>
<1 (COMPILE-FILE NIL T T)<br>
NIL<br>
T<br>
T<br>
CL-USER><br>
<br>
What seems to be going wrong, is that some compiler flags/options<br>
don't seem to reflect what I needed, even though I think I have them<br>
set to the right values.<br></blockquote><div><br></div><div>You have set them indeed to the right values (I presume _after_ loading the compiler with (require 'cmp), otherwise it does not work). The remaining flags that you see have been added by the package builder, the person who bundled ECL for NetBSD. There may be many reasons why the link phase is failing: libraries that ECL depends on have not been installed, some of the flags that were added when building ECL hard-code link paths that take precedence and do not work, ... In general it is quite complicated and I see you have done all you could and it does not work, but there is little else I can advice you.</div>
<div><br></div><div>Note that I have not provided or prepared infrastructure for relocating binaries of ECL in unices. It is just too complicated and it contradicts most users' expectations: peek the archive here and you will see a lot of emails that asked for hardcoding the location of shared libraries, etc.</div>
<div><br></div><div>If possible I would recommend you to rebuild ECL in your home directory. The process is pretty painless, and IIRC, the arpa machine does provide enough space for doing that in a user account.</div><div>
<br></div><div>Juanjo</div><div><br></div></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>