On Wed, 2008-10-08 at 02:20 +0000, Kai-Martin Knaak wrote:
> On Tue, 07 Oct 2008 20:19:42 +0100, Peter Clifton wrote:

> I tried guile 1.8  but got stuck during configure. It required GMP and 
> GMP did not compile out of the box either. The README of guile said, the 
> dependency on GMP entered between 1.6 and 1.8. So I decided to go for the 
> older version.
> 
> I decided to try 1.8 again and now got gmp compiled and installed 
> successfully. The recommended test "make check" failed at some point: 
>    FAIL: t-printf.exe
>    t-scanf.c:1495: GNU MP assertion failed: ret == (-1)
>    FAIL: t-scanf.exe
>    PASS: t-locale.exe
> This may be because I did a cross compile. I wonder, how the other tests 
> could be done successfully?

I wonder if you have a working Wine installation, which might be running
the executables through binfmt-misc or whatever mechanism there is for
running "alien" binaries.

I'm not entirely surprised some tests failed. Perhaps you could skip the
tests some how.

> My next stab at compile of guile 1.8 failed with this complaint:
> 
> cc1: warnings being treated as errors
> stime.c:85: warning: ‘tzname’ redeclared without dllimport attribute: 
> previous dllimport ignored
> 
> After I removed the compile flag "-Werror" from the configure file the
> build fails during link with complaints about various missing gdb 
> components:
> 
> $ make
> (...) 
> i586-mingw32msvc-gcc -mms-bitfields -O2 -march=i586 -mms-bitfields -Wall 
> -Wmissing-prototypes .libs/guile.exeS.o -o guile.exe guile-guile.o 
> -Wl,--export-dynamic  -L/usr/i586-mingw32msvc/mingw32/lib ./.libs/libguile.a 
> -lgmp -lws2_32 -lltdl  
> guile-guile.o:guile.c:(.text+0x28): undefined reference to 
> `__imp__scm_boot_guile'
> guile-guile.o:guile.c:(.text+0x5b): undefined reference to 
> `__imp__gdb_options'
> (...)
> 
> Luckily, someone else seemed have solved the same problem in may 08 and 
> archived the solution in guiles mailing list:
>     http://www.mail-archive.com/[EMAIL PROTECTED]/msg04404.html
> He recommands to not define SCM_IMPORT in guile.c and configure with 
> option --disable-shared. So I patched guile.c and configure accordingly.

I think his other suggestion was to compile libgmp as a shared library,
not a static one.

I'd guess compiling guile statically, and linking it into the various
gEDA binaries might be a viable option.


> Now, the guile builds goes a long way until it fails to install  
> the documentation:
> 
> $ make
> (...)
> make[3]: Entering directory `/usr/local/src/guile/guile-1.8.4/libguile'
> cat alist.doc arbiters.doc async.doc backtrace.doc boolean.doc chars.doc (...)
> /usr/local/src/guile/guile-1.8.4/pre-inst-guile: line 94: 
> /usr/local/src/guile/guile-1.8.4/libguile/guile: No such file or directory
> /usr/local/src/guile/guile-1.8.4/pre-inst-guile: line 94: exec: 
> /usr/local/src/guile/guile-1.8.4/libguile/guile: cannot execute: No such file 
> or directory
> make[3]: *** [guile-procedures.texi] Error 1
> make[3]: Leaving directory `/usr/local/src/guile/guile-1.8.4/libguile'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/local/src/guile/guile-1.8.4/libguile'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/guile/guile-1.8.4'
> make: *** [all] Error 2
> 
> How do I tell the Makefile not to build texi docs?

I have no idea. It is possible that you have to hack the Makefile.am to
remove those targets, or perhaps there is some configure option?

Perhaps you'll find the library piece you wanted is built already, e.g.
libguile.a or something, perhaps hiding under ./libs/

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to