GNU bug report logs - #11456
guile-2.0.5 fails to compile under mingw+msys

Previous Next

Package: guile;

Reported by: gnuemacser <hj_182006 <at> hotmail.com>

Date: Fri, 11 May 2012 23:09:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11456 in the body.
You can then email your comments to 11456 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Fri, 11 May 2012 23:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to gnuemacser <hj_182006 <at> hotmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Fri, 11 May 2012 23:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: gnuemacser <hj_182006 <at> hotmail.com>
To: <bug-guile <at> gnu.org>
Subject: guile-2.0.5 fails to compile under mingw+msys
Date: Sat, 12 May 2012 06:53:02 +0800
[Message part 1 (text/plain, inline)]

Hello,
I got the sources of guile-2.0.5 and I tried to compile them under 
mingw+msys.
The compilation failed because of this error:make[3]: Entering directory `/e/temp/files/1/guile/guile-2.0.5/libguile'
  CC     libguile_2.0_la-threads.lo
threads.c: In function 'to_timespec':
threads.c:267:15: error: dereferencing pointer to incomplete type
threads.c:268:15: error: dereferencing pointer to incomplete type
threads.c:275:15: error: dereferencing pointer to incomplete type
threads.c:276:15: error: dereferencing pointer to incomplete type
threads.c: In function 'launch_thread':
threads.c:1012:3: warning: implicit declaration of function 'GC_pthread_detach'
[-Wimplicit-function-declaration]
threads.c: In function 'scm_call_with_new_thread':
threads.c:1048:3: warning: implicit declaration of function 'GC_pthread_create'
[-Wimplicit-function-declaration]
threads.c: In function 'scm_join_thread_timed':
threads.c:1229:18: error: storage size of 'ctimeout' isn't known
threads.c:1229:18: warning: unused variable 'ctimeout' [-Wunused-variable]
threads.c: In function 'fat_mutex_lock':
threads.c:1453:41: error: dereferencing pointer to incomplete type
threads.c:1454:36: error: dereferencing pointer to incomplete type
threads.c:1455:43: error: dereferencing pointer to incomplete type
threads.c: In function 'scm_lock_mutex_timed':
threads.c:1487:18: error: storage size of 'cwaittime' isn't known
threads.c:1487:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_try_mutex':
threads.c:1536:18: error: storage size of 'cwaittime' isn't known
threads.c:1536:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'fat_mutex_unlock':
threads.c:1610:4:
 warning: passing argument 4 of 'block_self' discards 'const' qualifier 
from pointer target type [enabled by default]
threads.c:438:1: note: expected 'struct scm_t_timespec *' but argument is of type 'const struct scm_t_timespec *'
threads.c: In function 'scm_unlock_mutex_timed':
threads.c:1679:18: error: storage size of 'cwaittime' isn't known
threads.c:1679:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_timed_wait_condition_variable':
threads.c:1783:18: error: storage size of 'waittime' isn't known
threads.c:1783:18: warning: unused variable 'waittime' [-Wunused-variable]
threads.c: In function 'scm_pthread_cond_timedwait':
threads.c:1984:3: warning: passing argument 3 of 'pthread_cond_timedwait' from incompatible pointer type [enabled by default]
d:\dev\mingw\include/pthread.h:1097:31:
 note: expected 'const struct timespec *' but argument is of type 'const
 struct scm_t_timespec *'
make[3]: *** [libguile_2.0_la-threads.lo] Error 1
make[3]: Leaving directory `/e/temp/files/1/guile/guile-2.0.5/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/1/guile/guile-2.0.5/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/1/guile/guile-2.0.5'
make: *** [all] Error 2

i'm
 chinese and my english isn't well. but i think the problem is about the
 timespec and scm_t_timespec in function pthread_cond_timedwait . 		 	   		  
[Message part 2 (text/html, inline)]

Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Wed, 04 Jul 2012 19:33:01 GMT) Full text and rfc822 format available.

Notification sent to gnuemacser <hj_182006 <at> hotmail.com>:
bug acknowledged by developer. (Wed, 04 Jul 2012 19:33:01 GMT) Full text and rfc822 format available.

Message #10 received at 11456-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: gnuemacser <hj_182006 <at> hotmail.com>
Cc: 11456-done <at> debbugs.gnu.org
Subject: Re: bug#11456: guile-2.0.5 fails to compile under mingw+msys
Date: Wed, 04 Jul 2012 21:27:06 +0200
Hi,

Sorry for the long delay in the response.

On Sat 12 May 2012 00:53, gnuemacser <hj_182006 <at> hotmail.com> writes:

> I got the sources of guile-2.0.5 and I tried to compile them under 
> mingw+msys.
> The compilation failed because of this error:
> make[3]: Entering directory `/e/temp/files/1/guile/guile-2.0.5/libguile'
>   CC     libguile_2.0_la-threads.lo
> threads.c: In function 'to_timespec':
> threads.c:267:15: error: dereferencing pointer to incomplete type
> threads.c:268:15: error: dereferencing pointer to incomplete type
> threads.c:275:15: error: dereferencing pointer to incomplete type
> threads.c:276:15: error: dereferencing pointer to incomplete type
> threads.c: In function 'launch_thread':
> threads.c:1012:3: warning: implicit declaration of function
> 'GC_pthread_detach'

I think you are building with the default --with-threads argument, which
is to enable them.  If you want threads on mingw, you will have to use
the pthread wrapper for mingw, and build libgc with pthread support.
Otherwise, build guile --without-threads.

Regards,

Andy
-- 
http://wingolog.org/




Information forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Fri, 06 Jul 2012 05:05:02 GMT) Full text and rfc822 format available.

Message #13 received at 11456 <at> debbugs.gnu.org (full text, mbox):

From: gnuemacser <hj_182006 <at> hotmail.com>
To: <11456 <at> debbugs.gnu.org>
Subject: it still can't be compiled
Date: Fri, 6 Jul 2012 12:59:12 +0800
[Message part 1 (text/plain, inline)]
I have to say that the error is not only about --without-threads argument.Here is my test:
i use mingw gcc version 4.6.2, i installed mingw's pthread, gmp, libunistring, i build libffi
and gc myself.
when i build gc-7.2alpha6 , i found that gc do not support pthread in mingw. so with the guile i can only
use --without-threads argument. i made a directory named "build" in the top directory, then i cd into it.
i use "../configure --without-threads" to config.
after configure the guile,i run make.
then it stops here:

  CC     libguile_2.0_la-symbols.lo
  CC     libguile_2.0_la-threads.lo
../../libguile/threads.c: In function 'to_timespec':
../../libguile/threads.c:267:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c:268:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c:275:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c:276:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c: In function 'scm_cancel_thread':
../../libguile/threads.c:1165:7: warning: statement with no effect [-Wunused-value]
../../libguile/threads.c: In function 'scm_join_thread_timed':
../../libguile/threads.c:1229:18: error: storage size of 'ctimeout' isn't known
../../libguile/threads.c:1229:18: warning: unused variable 'ctimeout' [-Wunused-variable]
../../libguile/threads.c: In function 'fat_mutex_lock':
../../libguile/threads.c:1453:41: error: dereferencing pointer to incomplete type
../../libguile/threads.c:1454:36: error: dereferencing pointer to incomplete type
../../libguile/threads.c:1455:43: error: dereferencing pointer to incomplete type
../../libguile/threads.c: In function 'scm_lock_mutex_timed':
../../libguile/threads.c:1487:18: error: storage size of 'cwaittime' isn't known
../../libguile/threads.c:1487:18: warning: unused variable 'cwaittime' [-Wunused-variable]
../../libguile/threads.c: In function 'scm_try_mutex':
../../libguile/threads.c:1536:18: error: storage size of 'cwaittime' isn't known
../../libguile/threads.c:1536:18: warning: unused variable 'cwaittime' [-Wunused-variable]
../../libguile/threads.c: In function 'scm_unlock_mutex_timed':
../../libguile/threads.c:1679:18: error: storage size of 'cwaittime' isn't known
../../libguile/threads.c:1679:18: warning: unused variable 'cwaittime' [-Wunused-variable]
../../libguile/threads.c: In function 'scm_timed_wait_condition_variable':
../../libguile/threads.c:1783:18: error: storage size of 'waittime' isn't known
../../libguile/threads.c:1783:18: warning: unused variable 'waittime' [-Wunused-variable]
make[3]: *** [libguile_2.0_la-threads.lo] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.5/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.5/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.5/build'
make: *** [all] Error 2

The strange thing is although 'ctimout' is defined by scm_t_timespec ,and scm_t_timespec also be defined by "typedef struct timespec scm_t_timespec;",
but the compiler still don't recognize it. So each "*time" isn't known ,is it? 		 	   		  
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Fri, 06 Jul 2012 05:37:02 GMT) Full text and rfc822 format available.

Message #16 received at 11456 <at> debbugs.gnu.org (full text, mbox):

From: gnuemacser <hj_182006 <at> hotmail.com>
To: <11456 <at> debbugs.gnu.org>
Subject: the guile-2.1.0.310-b8bc is worse to be compiled
Date: Fri, 6 Jul 2012 13:31:17 +0800
[Message part 1 (text/plain, inline)]
i also tried guile-2.1.0.310-b8bc, the newset version of guile, by the same way i mentioned in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11456#13
and make stopped here:

  CC     libguile_2.2_la-deprecated.lo
  CC     libguile_2.2_la-deprecation.lo
../../libguile/deprecation.c:40:0: warning: "vsnprintf" redefined [enabled by default]
../lib/stdio.h:1605:0: note: this is the location of the previous definition
  CC     libguile_2.2_la-dynstack.lo
  CC     libguile_2.2_la-dynwind.lo
  CC     libguile_2.2_la-eq.lo
  CC     libguile_2.2_la-error.lo
  CC     libguile_2.2_la-eval.lo
  CC     libguile_2.2_la-evalext.lo
  CC     libguile_2.2_la-expand.lo
../../libguile/expand.c:52:0: warning: "VOID" redefined [enabled by default]
d:\dev\mingw\include/winnt.h:75:0: note: this is the location of the previous definition
../../libguile/expand.c:54:0: warning: "CONST" redefined [enabled by default]
d:\dev\mingw\include/windef.h:39:0: note: this is the location of the previous definition
  CC     libguile_2.2_la-extensions.lo
  CC     libguile_2.2_la-feature.lo
  CC     libguile_2.2_la-filesys.lo
../../libguile/filesys.c:106:0: warning: "mkdir" redefined [enabled by default]
../lib/sys/stat.h:813:0: note: this is the location of the previous definition
../../libguile/filesys.c: In function 'scm_chmod':
../../libguile/filesys.c:1339:7: warning: variable 'fdes' set but not used [-Wunused-but-set-variable]
  CC     libguile_2.2_la-finalizers.lo
../../libguile/finalizers.c: In function 'start_finalization_thread':
../../libguile/finalizers.c:259:7: error: wrong type argument to unary exclamation mark
../../libguile/finalizers.c: In function 'stop_finalization_thread':
../../libguile/finalizers.c:274:7: error: used struct type value where scalar is required
../../libguile/finalizers.c:279:27: error: incompatible types when assigning to
type 'pthread_t' from type 'int'
make[3]: *** [libguile_2.2_la-finalizers.lo] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.1.0.310-b8bc/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.1.0.310-b8bc/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.1.0.310-b8bc/build'
make: *** [all] Error 2

it looks like even the "--without-threads" argument doesn't work now. 		 	   		  
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Fri, 06 Jul 2012 12:17:02 GMT) Full text and rfc822 format available.

Message #19 received at 11456 <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: gnuemacser <hj_182006 <at> hotmail.com>
Cc: 11456 <at> debbugs.gnu.org
Subject: Re: bug#11456: it still can't be compiled
Date: Fri, 06 Jul 2012 10:38:56 +0200
On Fri 06 Jul 2012 06:59, gnuemacser <hj_182006 <at> hotmail.com> writes:

> I have to say that the error is not only about --without-threads
> argument.Here is my test:
> i use mingw gcc version 4.6.2, i installed mingw's pthread, gmp,
> libunistring, i build libffi
> and gc myself.
> when i build gc-7.2alpha6 , i found that gc do not support pthread in
> mingw.

There is something in the configure.ac about:

  AH_TEMPLATE([GC_WIN32_PTHREADS],    [Define to support win32-pthreads.])

I apologize for the back and forth here, I wish I knew more about
mingw.

> so with the guile i can only
> use --without-threads argument.

Well OK, this should still work.

> top directory, then i cd into it.
> i use "../configure --without-threads" to config.
> after configure the guile,i run make.
> then it stops here:
>
>   CC     libguile_2.0_la-symbols.lo
>   CC     libguile_2.0_la-threads.lo
> ../../libguile/threads.c: In function 'to_timespec':
> ../../libguile/threads.c:267:15: error: dereferencing pointer to
> incomplete type

This indicates that struct scm_t_timespec is not defined.  I don't know
how this could be: can you grep libguile/scmconfig.h for scm_t_timespec
?

I assume configure detected struct timespec, but that threads.c does not
include the right header.  Can you add

  #include <time.h>

to the top of threads.c to see what happens?

I have committed something locally that will cause scmconfig.h to always
include time.h.

Thanks for the report,

Andy
-- 
http://wingolog.org/




Information forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Fri, 06 Jul 2012 12:17:03 GMT) Full text and rfc822 format available.

Message #22 received at 11456 <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: gnuemacser <hj_182006 <at> hotmail.com>
Cc: 11456 <at> debbugs.gnu.org
Subject: Re: bug#11456: the guile-2.1.0.310-b8bc is worse to be compiled
Date: Fri, 06 Jul 2012 11:06:34 +0200
Hi,

On Fri 06 Jul 2012 07:31, gnuemacser <hj_182006 <at> hotmail.com> writes:

>   CC     libguile_2.2_la-deprecation.lo
> ../../libguile/deprecation.c:40:0: warning: "vsnprintf" redefined
> [enabled by default]
> ../lib/stdio.h:1605:0: note: this is the location of the previous
> definition

Fixed, thanks!

>   CC     libguile_2.2_la-expand.lo
> ../../libguile/expand.c:52:0: warning: "VOID" redefined [enabled by
> defau lt]
> d:\dev\mingw\include/winnt.h:75:0: note: this is the location of the
> previous definition
> ../../libguile/expand.c:54:0: warning: "CONST" redefined [enabled by
> default]
> d:\dev\mingw\include/windef.h:39:0: note: this is the location of the
> previous definition

These are irritating, but OK, I fixed them.

>   CC     libguile_2.2_la-filesys.lo
> ../../libguile/filesys.c:106:0: warning: "mkdir" redefined [enabled by
> default]
> ../lib/sys/stat.h:813:0: note: this is the location of the previous
> definition

Fixed, thanks.

> ../../libguile/filesys.c: In function 'scm_chmod':
> ../../libguile/filesys.c:1339:7: warning: variable 'fdes' set but not
> used [-Wunused-but-set-variable]

Fixed, thanks.

>   CC     libguile_2.2_la-finalizers.lo
> ../../libguile/finalizers.c: In function 'start_finalization_thread':
> ../../libguile/finalizers.c:259:7: error: wrong type argument to unary
> exclamation mark

Ah.  You seem to have downloaded a 2.2 snapshot.  I'm sorry for the
confusion.  The tarball still has a version number of 2.2 because we
need to manually retag the branch after doing a merge from 2.0, and I
forgot to do it.

Please try a snapshot from http://hydra.nixos.org/jobset/gnu/guile-2-0.
Find the latest build from the "tarball" product.

> it looks like even the "--without-threads" argument doesn't work now. 

I'll take a look on the 2.2 branch to see what's up.  Thanks for the
report!

Andy
-- 
http://wingolog.org/




Information forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Fri, 06 Jul 2012 13:33:02 GMT) Full text and rfc822 format available.

Message #25 received at 11456 <at> debbugs.gnu.org (full text, mbox):

From: gnuemacser <hj_182006 <at> hotmail.com>
To: <11456 <at> debbugs.gnu.org>
Subject: add time.h in threads.c ,but it still don't work
Date: Fri, 6 Jul 2012 21:26:26 +0800
[Message part 1 (text/plain, inline)]
i checked the libguile/scmconfig.h for scm_t_timespec

/* same as POSIX "struct timespec" -- always defined */
typedef struct timespec scm_t_timespec;

it seems normal. then i add 
#include <time.h>
in libguile/threads.c, but it still wrong.

make  all-am
make[3]: Entering directory `/e/temp/files/guile/guile-2.0.5/build/libguile'
  CC     libguile_2.0_la-threads.lo
../../libguile/threads.c: In function 'to_timespec':
../../libguile/threads.c:268:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c:269:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c:276:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c:277:15: error: dereferencing pointer to incomplete type
../../libguile/threads.c: In function 'scm_cancel_thread':
../../libguile/threads.c:1166:7: warning: statement with no effect [-Wunused-value]
../../libguile/threads.c: In function 'scm_join_thread_timed':
../../libguile/threads.c:1230:18: error: storage size of 'ctimeout' isn't known
../../libguile/threads.c:1230:18: warning: unused variable 'ctimeout' [-Wunused-variable]
../../libguile/threads.c: In function 'fat_mutex_lock':
../../libguile/threads.c:1454:41: error: dereferencing pointer to incomplete type
../../libguile/threads.c:1455:36: error: dereferencing pointer to incomplete type
../../libguile/threads.c:1456:43: error: dereferencing pointer to incomplete type
../../libguile/threads.c: In function 'scm_lock_mutex_timed':
../../libguile/threads.c:1488:18: error: storage size of 'cwaittime' isn't known
../../libguile/threads.c:1488:18: warning: unused variable 'cwaittime' [-Wunused-variable]
../../libguile/threads.c: In function 'scm_try_mutex':
../../libguile/threads.c:1537:18: error: storage size of 'cwaittime' isn't known
../../libguile/threads.c:1537:18: warning: unused variable 'cwaittime' [-Wunused-variable]
../../libguile/threads.c: In function 'scm_unlock_mutex_timed':
../../libguile/threads.c:1680:18: error: storage size of 'cwaittime' isn't known
../../libguile/threads.c:1680:18: warning: unused variable 'cwaittime' [-Wunused-variable]
../../libguile/threads.c: In function 'scm_timed_wait_condition_variable':
../../libguile/threads.c:1784:18: error: storage size of 'waittime' isn't known
../../libguile/threads.c:1784:18: warning: unused variable 'waittime' [-Wunused-variable]
make[3]: *** [libguile_2.0_la-threads.lo] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.5/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.5/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.5/build'
make: *** [all] Error 2


the error is very strange, several months ago ,i found this error . and not only mingw but also cygwin will get this error .
i build guile-2.0.5 in slackware-current ,and it successed. 
i checked the source files like threads.h, scmconfig.h __scm.h _scm.h and pthread.h in mingw/include . i can't see why scmconfig.h will influence the threads.c.
i do find the _scm.h has the relevance with threads.h. here is in _scm.h:
/* Undefine HAVE_STRUCT_TIMESPEC, because the libguile C code doesn't
   need it anymore, and because on MinGW:

   - the definition of struct timespec is provided (if at all) by
     pthread.h

   - pthread.h will _not_ define struct timespec if
     HAVE_STRUCT_TIMESPEC is 1, because then it thinks that it doesn't
     need to.

   The libguile C code doesn't need HAVE_STRUCT_TIMESPEC anymore,
   because the value of HAVE_STRUCT_TIMESPEC has already been
   incorporated in how scm_t_timespec is defined (in scmconfig.h), and
   the rest of the libguile C code now just uses scm_t_timespec.
 */
#ifdef HAVE_STRUCT_TIMESPEC
#undef HAVE_STRUCT_TIMESPEC
#endif

then i checked pthread.h in mingw/include ,it says:
#ifdef _UWIN
#   define HAVE_STRUCT_TIMESPEC 1
#   define HAVE_SIGNAL_H        1
#   undef HAVE_PTW32_CONFIG_H
#   pragma comment(lib, "pthread")
#endif

...............................

#ifndef HAVE_STRUCT_TIMESPEC
#define HAVE_STRUCT_TIMESPEC
#ifndef _TIMESPEC_DEFINED
#define _TIMESPEC_DEFINED
struct timespec {
        time_t tv_sec;
        long tv_nsec;
};
#endif /* _TIMESPEC_DEFINED */
#endif /* HAVE_STRUCT_TIMESPEC */

i can't understand :why all the declarations are ok ,but the gcc still don't know 
the struct scm_t_timespec 		 	   		  
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Fri, 06 Jul 2012 21:21:02 GMT) Full text and rfc822 format available.

Message #28 received at 11456 <at> debbugs.gnu.org (full text, mbox):

From: gnuemacser <hj_182006 <at> hotmail.com>
To: <11456 <at> debbugs.gnu.org>
Subject: guile-2.0.5.210-e1fb0e don't know libffi
Date: Sat, 7 Jul 2012 05:15:55 +0800
[Message part 1 (text/plain, inline)]
i take the advice of this message   and download the newest guile-2.0.5.210-e1fb0e to build ,
using the same way i mentioned in the bugreport before.
when i configure it by
../configure --without-threads
it stops here

checking how to link with libgmp... -lgmp
checking whether libunistring was built with iconv support... yes
../configure: line 42537: syntax error near unexpected token `LIBFFI,'
../configure: line 42537: `PKG_CHECK_MODULES(LIBFFI, libffi)'

i googled and use 
autoreconf -re
not works

i use 
autoreconf -iv
still not works 
 		 	   		  
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#11456; Package guile. (Sat, 07 Jul 2012 04:05:02 GMT) Full text and rfc822 format available.

Message #31 received at 11456 <at> debbugs.gnu.org (full text, mbox):

From: gnuemacser <hj_182006 <at> hotmail.com>
To: guile 编译 <11456 <at> debbugs.gnu.org>
Subject: guile crashed in mingw
Date: Sat, 7 Jul 2012 11:59:00 +0800
[Message part 1 (text/plain, inline)]
after i read the 
https://lists.gnu.org/archive/html/bug-guile/2012-01/msg00050.html

i use the command :
./configure --host=i686-pc-mingw32 --disable-shared --without-threads scm_cv_struct_timespec=no LIBS='-lunistring -lintl -liconv'

to config and make:

it fails in lib/netdb.h because struct addrinfo redefined,

i commit out the struct addrinfo declaration ,the make run to here and crash:

make[3]: Entering directory `/e/temp/files/guile/guile-2.0.5/build/libguile'
  GEN    guile-procedures.texi

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 `/e/temp/files/guile/guile-2.0.5/build/libguile'
make[2]: *** [all] Error 2

the windows jumps a waring window: the picture is in the attachment 1.jpg



 		 	   		  
[Message part 2 (text/html, inline)]
[1.JPG (image/jpeg, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 Aug 2012 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 324 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.