unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#11456: guile-2.0.5 fails to compile under mingw+msys
@ 2012-05-11 22:53 gnuemacser
  2012-07-04 19:27 ` Andy Wingo
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: gnuemacser @ 2012-05-11 22:53 UTC (permalink / raw)
  To: 11456

[-- Attachment #1: Type: text/plain, Size: 3168 bytes --]



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 . 		 	   		  

[-- Attachment #2: Type: text/html, Size: 3558 bytes --]

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

* bug#11456: guile-2.0.5 fails to compile under mingw+msys
  2012-05-11 22:53 bug#11456: guile-2.0.5 fails to compile under mingw+msys gnuemacser
@ 2012-07-04 19:27 ` Andy Wingo
  2012-07-06  4:59 ` bug#11456: it still can't be compiled gnuemacser
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Andy Wingo @ 2012-07-04 19:27 UTC (permalink / raw)
  To: gnuemacser; +Cc: 11456-done

Hi,

Sorry for the long delay in the response.

On Sat 12 May 2012 00:53, gnuemacser <hj_182006@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/





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

* bug#11456: it still can't be compiled
  2012-05-11 22:53 bug#11456: guile-2.0.5 fails to compile under mingw+msys gnuemacser
  2012-07-04 19:27 ` Andy Wingo
@ 2012-07-06  4:59 ` gnuemacser
  2012-07-06  8:38   ` Andy Wingo
  2012-07-06  5:31 ` bug#11456: the guile-2.1.0.310-b8bc is worse to " gnuemacser
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 9+ messages in thread
From: gnuemacser @ 2012-07-06  4:59 UTC (permalink / raw)
  To: 11456

[-- Attachment #1: Type: text/plain, Size: 3190 bytes --]


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? 		 	   		  

[-- Attachment #2: Type: text/html, Size: 3589 bytes --]

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

* bug#11456: the guile-2.1.0.310-b8bc is worse to be compiled
  2012-05-11 22:53 bug#11456: guile-2.0.5 fails to compile under mingw+msys gnuemacser
  2012-07-04 19:27 ` Andy Wingo
  2012-07-06  4:59 ` bug#11456: it still can't be compiled gnuemacser
@ 2012-07-06  5:31 ` gnuemacser
  2012-07-06  9:06   ` Andy Wingo
  2012-07-06 13:26 ` bug#11456: add time.h in threads.c ,but it still don't work gnuemacser
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 9+ messages in thread
From: gnuemacser @ 2012-07-06  5:31 UTC (permalink / raw)
  To: 11456

[-- Attachment #1: Type: text/plain, Size: 2355 bytes --]


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. 		 	   		  

[-- Attachment #2: Type: text/html, Size: 3009 bytes --]

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

* bug#11456: it still can't be compiled
  2012-07-06  4:59 ` bug#11456: it still can't be compiled gnuemacser
@ 2012-07-06  8:38   ` Andy Wingo
  0 siblings, 0 replies; 9+ messages in thread
From: Andy Wingo @ 2012-07-06  8:38 UTC (permalink / raw)
  To: gnuemacser; +Cc: 11456

On Fri 06 Jul 2012 06:59, gnuemacser <hj_182006@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/





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

* bug#11456: the guile-2.1.0.310-b8bc is worse to be compiled
  2012-07-06  5:31 ` bug#11456: the guile-2.1.0.310-b8bc is worse to " gnuemacser
@ 2012-07-06  9:06   ` Andy Wingo
  0 siblings, 0 replies; 9+ messages in thread
From: Andy Wingo @ 2012-07-06  9:06 UTC (permalink / raw)
  To: gnuemacser; +Cc: 11456

Hi,

On Fri 06 Jul 2012 07:31, gnuemacser <hj_182006@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/





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

* bug#11456: add time.h in threads.c ,but it still don't work
  2012-05-11 22:53 bug#11456: guile-2.0.5 fails to compile under mingw+msys gnuemacser
                   ` (2 preceding siblings ...)
  2012-07-06  5:31 ` bug#11456: the guile-2.1.0.310-b8bc is worse to " gnuemacser
@ 2012-07-06 13:26 ` gnuemacser
  2012-07-06 21:15 ` bug#11456: guile-2.0.5.210-e1fb0e don't know libffi gnuemacser
  2012-07-07  3:59 ` bug#11456: guile crashed in mingw gnuemacser
  5 siblings, 0 replies; 9+ messages in thread
From: gnuemacser @ 2012-07-06 13:26 UTC (permalink / raw)
  To: 11456

[-- Attachment #1: Type: text/plain, Size: 4413 bytes --]


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 		 	   		  

[-- Attachment #2: Type: text/html, Size: 5288 bytes --]

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

* bug#11456: guile-2.0.5.210-e1fb0e don't know libffi
  2012-05-11 22:53 bug#11456: guile-2.0.5 fails to compile under mingw+msys gnuemacser
                   ` (3 preceding siblings ...)
  2012-07-06 13:26 ` bug#11456: add time.h in threads.c ,but it still don't work gnuemacser
@ 2012-07-06 21:15 ` gnuemacser
  2012-07-07  3:59 ` bug#11456: guile crashed in mingw gnuemacser
  5 siblings, 0 replies; 9+ messages in thread
From: gnuemacser @ 2012-07-06 21:15 UTC (permalink / raw)
  To: 11456

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]


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 
 		 	   		  

[-- Attachment #2: Type: text/html, Size: 893 bytes --]

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

* bug#11456: guile crashed in mingw
  2012-05-11 22:53 bug#11456: guile-2.0.5 fails to compile under mingw+msys gnuemacser
                   ` (4 preceding siblings ...)
  2012-07-06 21:15 ` bug#11456: guile-2.0.5.210-e1fb0e don't know libffi gnuemacser
@ 2012-07-07  3:59 ` gnuemacser
  5 siblings, 0 replies; 9+ messages in thread
From: gnuemacser @ 2012-07-07  3:59 UTC (permalink / raw)
  To: guile 编译


[-- Attachment #1.1: Type: text/plain, Size: 891 bytes --]


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



 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 1182 bytes --]

[-- Attachment #2: 1.JPG --]
[-- Type: image/jpeg, Size: 40244 bytes --]

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

end of thread, other threads:[~2012-07-07  3:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11 22:53 bug#11456: guile-2.0.5 fails to compile under mingw+msys gnuemacser
2012-07-04 19:27 ` Andy Wingo
2012-07-06  4:59 ` bug#11456: it still can't be compiled gnuemacser
2012-07-06  8:38   ` Andy Wingo
2012-07-06  5:31 ` bug#11456: the guile-2.1.0.310-b8bc is worse to " gnuemacser
2012-07-06  9:06   ` Andy Wingo
2012-07-06 13:26 ` bug#11456: add time.h in threads.c ,but it still don't work gnuemacser
2012-07-06 21:15 ` bug#11456: guile-2.0.5.210-e1fb0e don't know libffi gnuemacser
2012-07-07  3:59 ` bug#11456: guile crashed in mingw gnuemacser

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