unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#10474: Building guile 2.x under mingw + msys
@ 2012-01-10 21:58 Andy Wingo
  2012-09-11 17:17 ` bug#10474: Progress LRN
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Wingo @ 2012-01-10 21:58 UTC (permalink / raw)
  To: 10474; +Cc: commander.sirow

[-- Attachment #1: Type: message/rfc822, Size: 14834 bytes --]

[-- Attachment #1.1.1: Type: text/plain, Size: 4403 bytes --]

Hi there,

so I've been trying to build guile 2.0.3 from source with mingw (gcc 4.6.2)
+ msys.

So far I've been making progress by going with
./configure --without-threads --disable-shared

Add:
- - - - - - - -
#ifndef HAVE_STRUCT_TIMESPEC
#define HAVE_STRUCT_TIMESPEC 1
struct timespec {
        long tv_sec;
        long tv_nsec;
};
#endif /* HAVE_STRUCT_TIMESPEC */
- - - - - - - -
to libguile/threads.c, because pthread.h does not seem to set the timespec
struct. I'm using Pthreads-w32 which does have this struct in its
pthread.h, but for some weird reason id does not define the struct
(dereferencing pointer to imcomplete type).

And add:
- - - - - - - -
#ifdef __MINGW32__
static void
setenv (char const *name, char const *value, int overwrite)
{
  (void) overwrite;
  int len = strlen (value) + strlen (value) + 2;
  char *str = malloc (len);
  sprintf (str, "%s=%s", name, value);
  putenv (str);
}
#endif /* __MINGW32__ */
- - - - - - - -
to libguile/dynl.c because Windows does only have putenv and not setenv.

Commented out:
- - - - - - - -
_GL_FUNCDECL_SYS (getnameinfo, int,
                  (const struct sockaddr *restrict sa, socklen_t salen,
                   char *restrict node, socklen_t nodelen,
                   char *restrict service, socklen_t servicelen,
                   int flags)
                  _GL_ARG_NONNULL ((1)));
- - - - - - - -
and
- - - - - - - -
_GL_FUNCDECL_SYS (getaddrinfo, int,
                  (const char *restrict nodename,
                   const char *restrict servname,
                   const struct addrinfo *restrict hints,
                   struct addrinfo **restrict res)
                  _GL_ARG_NONNULL ((4)));
- - - - - - - -
and
- - - - - - - -
_GL_FUNCDECL_SYS (inet_ntop, const char *,
                  (int af, const void *restrict src,
                   char *restrict dst, socklen_t cnt)
                  _GL_ARG_NONNULL ((2, 3)));
- - - - - - - -
and
- - - - - - - -
_GL_FUNCDECL_SYS (inet_pton, int,
                  (int af, const char *restrict src, void *restrict dst)
                  _GL_ARG_NONNULL ((2, 3)));
- - - - - - - -
in lib/netdb.h and /lib/arpa/inet.h because those are given by winsock2.h
(Was getting compiler errors otherwise).

Added:
- - - - - - - -
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <ws2tcpip.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netinet/in.h>
#include <signal.h>
#include <winsock.h>
#include <winsock2.h>
- - - - - - - -
to libguile/net_db.c because I got missing AI_* and EAI_* defines.
(winsock2.h would probably have been enough, but I wanted to be sure)

After that compilation went fine up until (and past) generating
guile-procedures.texi:
- - - - - - - -
make[3]: Entering directory `/home/Commander/guile-2.0.3/libguile'
  GEN    guile-procedures.texi
Throw without catch before boot:
Throw to key system-error with args ("canonicalize-path" "~A" ("No such
file or
directory") (2))Aborting.

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
make[3]: *** [guile-procedures.texi] Error 1
make[3]: Leaving directory `/home/Commander/guile-2.0.3/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Commander/guile-2.0.3/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Commander/guile-2.0.3'
make: *** [all] Error 2
- - - - - - - -
When "This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information." occurs
the application crashes.

When calling guile.exe directly I get:
- - - - - - - -
$ guile
Throw without catch before boot:
Throw to key misc-error with args ("primitive-load-path" "Unable to find
file ~S
 in load path" ("ice-9/boot-9") #f)Aborting.

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
- - - - - - - -
and the same crash occures.

I'm currently a bit out of ideas what to do next, eg. if the
error/exception throw is causing guile to crash or if there is something
wrong with what I modified inside the source causing this.


PS: I get the same behavior when configuring with:
./configure --without-threads --disable-shared scm_cv_struct_timespec=no
ac_cv_type_struct_addrinfo=no

[-- Attachment #1.1.2: Type: text/html, Size: 4992 bytes --]

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



-- 
http://wingolog.org/

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

* bug#10474: Progress
  2012-01-10 21:58 bug#10474: Building guile 2.x under mingw + msys Andy Wingo
@ 2012-09-11 17:17 ` LRN
  2012-09-12 17:02   ` Mark H Weaver
  0 siblings, 1 reply; 4+ messages in thread
From: LRN @ 2012-09-11 17:17 UTC (permalink / raw)
  To: 10474

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Any progress on this? I've tried 2.0.6, and it's still a mess.
Compiled with a few hacks (disabled networking and posix, copied
getpid definition to random.c), but it still fails with
Throw to key system-error with args ("canonicalize-path" "~A" ("No
such file or directory") (2))Aborting.
during guile-procedures.texi generation
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBAgAGBQJQT3IPAAoJEOs4Jb6SI2CwE0cH/iG6XZHQYyCHoc7xx/gF6m/8
xPgxt50CqaA1gjbDLep83jFNlheHGv7XYuP8GwIw8xy5Y5meNf3sAqMHqhNB0ZXb
sL4xJY2DtVxWZ6NoCetsNkjsOCXqJqjo2KP6c/GibO9Hb8q6HC/SiUxa2ncsprQX
C5oxxZI0cM85VRhLUINb+GYHhVbDnKPTzajsz32OohblRVt1QdjwpI6BoGFK0We9
ceQthNDnv4WvR2NYon4Aa1ZScCENa34KDU/2IlJojMqTbkRYYwNc0Ft3zKCZiswm
JQZrkRm9BXv8SyTglda85o4Wu9s72MKIzSn9fanNdBY2AIbq8+K65vXyiznxWHA=
=xf+h
-----END PGP SIGNATURE-----





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

* bug#10474: Progress
  2012-09-11 17:17 ` bug#10474: Progress LRN
@ 2012-09-12 17:02   ` Mark H Weaver
  2012-09-12 21:22     ` LRN
  0 siblings, 1 reply; 4+ messages in thread
From: Mark H Weaver @ 2012-09-12 17:02 UTC (permalink / raw)
  To: LRN; +Cc: 10474

On 09/11/2012 01:17 PM, LRN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Any progress on this? I've tried 2.0.6, and it's still a mess.
> Compiled with a few hacks (disabled networking and posix, copied
> getpid definition to random.c), but it still fails with
> Throw to key system-error with args ("canonicalize-path" "~A" ("No
> such file or directory") (2))Aborting.
> during guile-procedures.texi generation

Any progress on what?  You haven't provided enough context for me to 
know what problem you are referring to.

    Thanks,
      Mark





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

* bug#10474: Progress
  2012-09-12 17:02   ` Mark H Weaver
@ 2012-09-12 21:22     ` LRN
  0 siblings, 0 replies; 4+ messages in thread
From: LRN @ 2012-09-12 21:22 UTC (permalink / raw)
  To: 10474

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12.09.2012 21:02, Mark H Weaver wrote:
> On 09/11/2012 01:17 PM, LRN wrote:
>> Any progress on this? I've tried 2.0.6, and it's still a mess. 
>> Compiled with a few hacks (disabled networking and posix, copied 
>> getpid definition to random.c), but it still fails with Throw to
>> key system-error with args ("canonicalize-path" "~A" ("No such
>> file or directory") (2))Aborting. during guile-procedures.texi
>> generation
> 
> Any progress on what?  You haven't provided enough context for me
> to know what problem you are referring to.
> 
I've sent this message to 10474 at debbugs.gnu.org
Which means that it's related to bug #10474 [1] on debbugs.gnu.org.
By the way, your reply has the following subject line:
"Re: bug#10474: Progress". Probably put there by the list master.

[1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10474+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBAgAGBQJQUP0PAAoJEOs4Jb6SI2CwrZQIANOUEpz5gxpR4OgWDBLcBCVQ
ylXa/4eCPI+loMMcUFO3lv01k8FwtrncexFScS3djSC5siWz7lgegxRzyhWImqZ9
aXxZpG2V3Zw7lLHKeJ4Y3qujOn9J4uoacKywulf1TDPayh6dlVvP/+MZHoPLJup/
kpeVJPKHdw0opYGH2XNVC4TGnDOAl3g1oRBkHAPpHO2jgF4WVS/2pWsAVYucikiK
Hhdk3lupcR1Rk5uetOOrZASqZdm1g7Cu5atB8MigD+OjJL7ERHA9pZzrby+RedHh
MiQWipA+4Ou5tvnnaYZET0mn+we4wO8+FkJHHe43LfHdrOvMCVAfqai/cF2+LRo=
=SWgn
-----END PGP SIGNATURE-----





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

end of thread, other threads:[~2012-09-12 21:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-10 21:58 bug#10474: Building guile 2.x under mingw + msys Andy Wingo
2012-09-11 17:17 ` bug#10474: Progress LRN
2012-09-12 17:02   ` Mark H Weaver
2012-09-12 21:22     ` LRN

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).