unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Compiling guile on mingw32
@ 2007-06-05 17:01 Andreas Røsdal
  2007-06-06  0:29 ` Cesar Strauss
  2007-06-06  8:05 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Røsdal @ 2007-06-05 17:01 UTC (permalink / raw)
  To: guile-user

Hello,

I'm trying to compile guile 1.8.1 for the mingw32 platform on Windows.
When running configure, I get this error message:


checking for lt_dlinit in -lltdl... no
configure: error: libltdl not found.  See README.


However, I have compiled and installed libtool. (libtool-1.5.22)
So I commented out the check for lltdl in configure, and ran it again.
Then I got the following error message:

checking for gethostname... no
checking whether sethostname is declared... no
checking for library containing crypt... no
checking for cexp... yes
checking for clog... yes
checking for carg... yes
checking whether csqrt is usable... no, glibc 2.3 bug
checking for __gmpz_init in -lgmp... no
configure: error: GNU MP not found, see README

Then I compiled and installed GNU MP (gmp-4.2.1).
However, I the above still occurs after installing GNU MP.

So it seems that configure is not able to find the two above error 
messages. I have also tried guile-core.unstable-20070429, and get the same 
problems there. Has anyone successfully been able to compile guile on 
mingw32?


  - Andreas


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compiling guile on mingw32
  2007-06-05 17:01 Compiling guile on mingw32 Andreas Røsdal
@ 2007-06-06  0:29 ` Cesar Strauss
  2007-06-06 15:40   ` Andreas Røsdal
  2007-06-06  8:05 ` Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: Cesar Strauss @ 2007-06-06  0:29 UTC (permalink / raw)
  To: guile-user

Andreas Røsdal wrote:
> Hello,
> 
> I'm trying to compile guile 1.8.1 for the mingw32 platform on Windows.
> When running configure, I get this error message:
> 
> 
> checking for lt_dlinit in -lltdl... no
> configure: error: libltdl not found.  See README.
> 
> 
> However, I have compiled and installed libtool. (libtool-1.5.22)
> So I commented out the check for lltdl in configure, and ran it again.
> Then I got the following error message:
> 
> checking for gethostname... no
> checking whether sethostname is declared... no
> checking for library containing crypt... no
> checking for cexp... yes
> checking for clog... yes
> checking for carg... yes
> checking whether csqrt is usable... no, glibc 2.3 bug
> checking for __gmpz_init in -lgmp... no
> configure: error: GNU MP not found, see README
> 
> Then I compiled and installed GNU MP (gmp-4.2.1).
> However, I the above still occurs after installing GNU MP.
> 
> So it seems that configure is not able to find the two above error
> messages. I have also tried guile-core.unstable-20070429, and get the
> same problems there. Has anyone successfully been able to compile guile
> on mingw32?
> 
> 
>  - Andreas
> 
> 

Hello, Andreas

I was able to compile guile on mingw32.

First, you should use the guile-core-1.8-20070429.tar.gz snapshot, or
use "cvs" to download the code in the 1.8 branch. The unstable branch is
not mingw32 compatible, at the moment.

Then, make sure you configured libtool, gmp and guile with

./configure --prefix=$(cd /mingw && pwd -W)

This will install the libraries at the right location in the MinGW
compiler tree and allow guile to find its data files at run-time.

Also, add to the guile configure line:

--without-libiconv-prefix --without-libintl-prefix

due to a problem in the MinGW gettext support.

Hope this helps,
Cesar



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compiling guile on mingw32
  2007-06-05 17:01 Compiling guile on mingw32 Andreas Røsdal
  2007-06-06  0:29 ` Cesar Strauss
@ 2007-06-06  8:05 ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2007-06-06  8:05 UTC (permalink / raw)
  To: Andreas Røsdal; +Cc: guile-user

Hi,

Andreas Røsdal <andrearo@pvv.ntnu.no> writes:

> I'm trying to compile guile 1.8.1 for the mingw32 platform on Windows.
> When running configure, I get this error message:
>
>
> checking for lt_dlinit in -lltdl... no
> configure: error: libltdl not found.  See README.
>
>
> However, I have compiled and installed libtool. (libtool-1.5.22)

[...]

> checking for __gmpz_init in -lgmp... no
> configure: error: GNU MP not found, see README
>
> Then I compiled and installed GNU MP (gmp-4.2.1).
> However, I the above still occurs after installing GNU MP.

Can you look at the generated `config.log' and find the relevant lines?
That is, search for "ltdl" and "gmp"; `config.log' will contain the
exact compiler/linker error message that led it to think libltdl and GMP
are not available, and it will also contain a line indicating "failed
program was:", followed by the program that failed to compile/link.

That should be helpful in trying to nail down the exact cause of the
problem.

Thanks,
Ludovic.



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compiling guile on mingw32
  2007-06-06  0:29 ` Cesar Strauss
@ 2007-06-06 15:40   ` Andreas Røsdal
  2007-06-06 17:18     ` Andreas Røsdal
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Røsdal @ 2007-06-06 15:40 UTC (permalink / raw)
  To: Cesar Strauss; +Cc: guile-user

On Tue, 5 Jun 2007, Cesar Strauss wrote:
>> I'm trying to compile guile 1.8.1 for the mingw32 platform on Windows.
>> When running configure, I get this error message:
>>
> I was able to compile guile on mingw32.
>
> First, you should use the guile-core-1.8-20070429.tar.gz snapshot, or
> use "cvs" to download the code in the 1.8 branch. The unstable branch is
> not mingw32 compatible, at the moment.
>
> Then, make sure you configured libtool, gmp and guile with
>
> ./configure --prefix=$(cd /mingw && pwd -W)
>
> This will install the libraries at the right location in the MinGW
> compiler tree and allow guile to find its data files at run-time.
>
> Also, add to the guile configure line:
>
> --without-libiconv-prefix --without-libintl-prefix
>
> due to a problem in the MinGW gettext support.


Thanks for the help, this worked. Hoever, during compilation, I now get 
the following compilation error, do you know how to fix this as well?


if [ "no" = "yes" ]; then \
         gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -c -o gen-scmconfig.o 
gen-scmconfig.c; \
else \
         gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I..  -I/mingw/include/glib-2.0 
-I/mingw/include/glib-2.0/glib -I/mingw/include -I/mingw/lib 
-I/mingw/lib/glib-2.0/ -I/mingw/lib/glib-2.0/include  -march=i386 -pipe 
-O3 -Wall -Wmissing-prototypes -Werror -c -o gen-scmconfig.o 
gen-scmconfig.c; \
fi
In file included from gen-scmconfig.c:126:
C:/MinGW/include/stdio.h:219: warning: no previous prototype for 
'vsnprintf'
C:/MinGW/include/stdio.h:258: warning: no previous prototype for 'getc'
C:/MinGW/include/stdio.h:265: warning: no previous prototype for 'putc'
C:/MinGW/include/stdio.h:272: warning: no previous prototype for 'getchar'
C:/MinGW/include/stdio.h:279: warning: no previous prototype for 'putchar'
In file included from gen-scmconfig.c:126:
C:/MinGW/include/stdio.h:401: warning: no previous prototype for 'fopen64'
C:/MinGW/include/stdio.h:413: warning: no previous prototype for 
'ftello64'
C:/MinGW/include/stdio.h:468: warning: no previous prototype for 
'vsnwprintf'
In file included from gen-scmconfig.c:127:
C:/MinGW/include/string.h:97: warning: no previous prototype for 
'strcasecmp'
C:/MinGW/include/string.h:103: warning: no previous prototype for 
'strncasecmp'
make[2]: *** [gen-scmconfig.o] Error 1
make[2]: Leaving directory `/c/devel/guile-core-1.8-20070429/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/devel/guile-core-1.8-20070429'





_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compiling guile on mingw32
  2007-06-06 15:40   ` Andreas Røsdal
@ 2007-06-06 17:18     ` Andreas Røsdal
  2007-06-06 18:12       ` Cesar Strauss
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Røsdal @ 2007-06-06 17:18 UTC (permalink / raw)
  To: Cesar Strauss; +Cc: guile-user

[-- Attachment #1: Type: TEXT/PLAIN, Size: 5492 bytes --]

On Wed, 6 Jun 2007, Andreas Røsdal wrote:
> On Tue, 5 Jun 2007, Cesar Strauss wrote:
>>> I'm trying to compile guile 1.8.1 for the mingw32 platform on Windows.
>>> When running configure, I get this error message:
>>> 
>> I was able to compile guile on mingw32.
>> 
>> First, you should use the guile-core-1.8-20070429.tar.gz snapshot, or
>> use "cvs" to download the code in the 1.8 branch. The unstable branch is
>> not mingw32 compatible, at the moment.
>> 
>> Then, make sure you configured libtool, gmp and guile with
>> 
>> ./configure --prefix=$(cd /mingw && pwd -W)
>> 
>> This will install the libraries at the right location in the MinGW
>> compiler tree and allow guile to find its data files at run-time.
>> 
>> Also, add to the guile configure line:
>> 
>> --without-libiconv-prefix --without-libintl-prefix
>> 
>> due to a problem in the MinGW gettext support.
>
>
> Thanks for the help, this worked. Hoever, during compilation, I now get the 
> following compilation error, do you know how to fix this as well?

Commetning out  -Wmissing-prototypes -Werror in the Makefile solved this 
compilation error.


Then, the compilation failed while creating libguile.dll.a.
I have tried with both gmp-4.1.4 and gmp-4.2.1 installed.


*** Warning: This system can not link to static lib archive 
/mingw/lib/libgmp.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
rm -fr  .libs/libguile.dll.a
gcc -shared  .libs/libguile_la-alist.o .libs/libguile_la-arbiters.o 
.libs/libguile_la-async.o .libs/libguile_la-backtrace.o 
.libs/libguile_la-boolean.o .libs/libguile_la-chars.o 
.libs/libguile_la-continuations.o .libs/libguile_la-convert.o 
.libs/libguile_la-debug.o .libs/libguile_la-deprecation.o 
.libs/libguile_la-deprecated.o .libs/libguile_la-discouraged.o 
.libs/libguile_la-dynwind.o .libs/libguile_la-environments.o 
.libs/libguile_la-eq.o .libs/libguile_la-error.o .libs/libguile_la-eval.o 
.libs/libguile_la-evalext.o .libs/libguile_la-extensions.o 
.libs/libguile_la-feature.o .libs/libguile_la-fluids.o 
.libs/libguile_la-fports.o .libs/libguile_la-futures.o 
.libs/libguile_la-gc.o .libs/libguile_la-gc-mark.o 
.libs/libguile_la-gc-segment.o .libs/libguile_la-gc-malloc.o 
.libs/libguile_la-gc-card.o .libs/libguile_la-gc-freelist.o 
.libs/libguile_la-gc_os_dep.o .libs/libguile_la-gdbint.o 
.libs/libguile_la-gh_data.o .libs/libguile_la-gh_eval.o 
.libs/libguile_la-gh_funcs.o .libs/libguile_la-gh_init.o 
.libs/libguile_la-gh_io.o .libs/libguile_la-gh_list.o 
.libs/libguile_la-gh_predicates.o .libs/libguile_la-goops.o 
.libs/libguile_la-gsubr.o .libs/libguile_la-guardians.o 
.libs/libguile_la-hash.o .libs/libguile_la-hashtab.o 
.libs/libguile_la-hooks.o .libs/libguile_la-i18n.o 
.libs/libguile_la-init.o .libs/libguile_la-inline.o 
.libs/libguile_la-ioext.o .libs/libguile_la-keywords.o 
.libs/libguile_la-lang.o .libs/libguile_la-list.o .libs/libguile_la-load.o 
.libs/libguile_la-macros.o .libs/libguile_la-mallocs.o 
.libs/libguile_la-modules.o .libs/libguile_la-numbers.o 
.libs/libguile_la-objects.o .libs/libguile_la-objprop.o 
.libs/libguile_la-options.o .libs/libguile_la-pairs.o 
.libs/libguile_la-ports.o .libs/libguile_la-print.o 
.libs/libguile_la-procprop.o .libs/libguile_la-procs.o 
.libs/libguile_la-properties.o .libs/libguile_la-random.o 
.libs/libguile_la-rdelim.o .libs/libguile_la-read.o 
.libs/libguile_la-root.o .libs/libguile_la-rw.o 
.libs/libguile_la-scmsigs.o .libs/libguile_la-script.o 
.libs/libguile_la-simpos.o .libs/libguile_la-smob.o 
.libs/libguile_la-sort.o .libs/libguile_la-srcprop.o 
.libs/libguile_la-stackchk.o .libs/libguile_la-stacks.o 
.libs/libguile_la-stime.o .libs/libguile_la-strings.o 
.libs/libguile_la-srfi-4.o .libs/libguile_la-srfi-13.o 
.libs/libguile_la-srfi-14.o .libs/libguile_la-strorder.o 
.libs/libguile_la-strports.o .libs/libguile_la-struct.o 
.libs/libguile_la-symbols.o .libs/libguile_la-threads.o 
.libs/libguile_la-null-threads.o .libs/libguile_la-throw.o 
.libs/libguile_la-values.o .libs/libguile_la-variable.o 
.libs/libguile_la-vectors.o .libs/libguile_la-version.o 
.libs/libguile_la-vports.o .libs/libguile_la-weaks.o 
.libs/libguile_la-ramap.o .libs/libguile_la-unif.o .libs/dynl.o 
.libs/filesys.o .libs/posix.o .libs/net_db.o .libs/socket.o 
.libs/win32-uname.o .libs/win32-dirent.o .libs/win32-socket.o 
.libs/inet_aton.o .libs/mkstemp.o  -L/mingw/lib -L/mingw/lib/glib-2.0/ 
-L/mingw/lib/glib-2.0/include -L/mingw/include/glib-2.0 
-L/mingw/include/glib-2.0/glib -lws2_32 /usr/local/lib/libltdl.dll.a 
-march=i386 -o .libs/libguile-17.dll -Wl,--enable-auto-image-base -Xlinker 
--out-implib -Xlinker .libs/libguile.dll.a
Creating library file: .libs/libguile.dll.a
.libs/libguile_la-gc-card.o(.text+0x24c):gc-card.c: undefined reference to 
`__gmpz_clear'
.libs/libguile_la-numbers.o(.text+0x1e):numbers.c: undefined reference to 
`__gmpz_init'
.libs/libguile_la-numbers.o(.text+0x4d):numbers.c: undefined reference to 
`__gmpz_init_set_si'
.libs/libguile_la-numbers.o(.text+0x79):numbers.c: undefined reference to 
`__gmpz_init_set_ui'
.libs/libguile_la-numbers.o(.text+0xa9):numbers.c: undefined reference to 
`__gmpz_init_set'
.libs/libguile_la-numbers.o(.text+0xdb):numbers.c: undefined reference to 
`__gmpz_cmp'

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compiling guile on mingw32
  2007-06-06 17:18     ` Andreas Røsdal
@ 2007-06-06 18:12       ` Cesar Strauss
  0 siblings, 0 replies; 6+ messages in thread
From: Cesar Strauss @ 2007-06-06 18:12 UTC (permalink / raw)
  To: guile-user

Andreas Røsdal wrote:
> 
> Commetning out  -Wmissing-prototypes -Werror in the Makefile solved this
> compilation error.
> 

Try removing the -I/mingw/include option instead, it should work as
well. Normally, warnings in system headers are ignored, but if
/mingw/include is explicitly added to the search paths, they are no
longer considered as such, I guess.


> 
> Then, the compilation failed while creating libguile.dll.a.
> I have tried with both gmp-4.1.4 and gmp-4.2.1 installed.
> 

I forgot about that, please reconfigure gmp with the options:

--enable-shared=yes --enable-static=no

and see if the file libgmp.dll.a is created in /mingw/lib after a rebuild.

Cesar




_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-06 18:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05 17:01 Compiling guile on mingw32 Andreas Røsdal
2007-06-06  0:29 ` Cesar Strauss
2007-06-06 15:40   ` Andreas Røsdal
2007-06-06 17:18     ` Andreas Røsdal
2007-06-06 18:12       ` Cesar Strauss
2007-06-06  8:05 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).