[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile with win32 cross compiling
From: |
Volker Grabsch |
Subject: |
Re: Guile with win32 cross compiling |
Date: |
Fri, 20 May 2011 14:25:52 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hello Andy,
thanks for the quick reply and for accepting and cleaning up
my patches so far.
Andy Wingo schrieb:
> > CC net_db.lo
> > net_db.c:460:1: error: 'AI_ALL' undeclared here (not in a function)
> > net_db.c:460:1: error: expression in static assertion is not an integer
> > net_db.c:482:33: warning: 'struct addrinfo' declared inside parameter list
> > [enabled by default]
[...]
> If your target does not have e.g. struct addrinfo, because it does not
> have IPv6, then you need to configure with
> ac_cv_type_struct_addrinfo=no. Check your config.log. Or should this
> be working somehow?
>
> There are other ac_cv_* for getaddrinfo and other routines.
Okay, so I'm trying to get along without this ugly "ac_cv_type_struct_addrinfo"
hack, hoping that the following error report will be more useful to you.
1) My first attempt is to enable threads via:
./configure --host=i686-pc-mingw32 --disable-shared --with-threads
LIBS='-lunistring -lintl -liconv'
This leads to the attached (compressed) config.log:
config.log.with-threads.bz2
Make stops at this point:
---------------------------------------------------------------
CC libguile_2.0_la-threads.lo
threads.c: In function 'to_timespec':
threads.c:245:15: error: dereferencing pointer to incomplete type
threads.c:246:15: error: dereferencing pointer to incomplete type
threads.c:253:15: error: dereferencing pointer to incomplete type
threads.c:254:15: error: dereferencing pointer to incomplete type
threads.c: In function 'launch_thread':
threads.c:974:3: warning: implicit declaration of function 'GC_pthread_detach'
[-Wimplicit-function-declaration]
threads.c: In function 'scm_call_with_new_thread':
threads.c:1009:3: warning: implicit declaration of function 'GC_pthread_create'
[-Wimplicit-function-declaration]
threads.c: In function 'scm_join_thread_timed':
threads.c:1188:18: error: storage size of 'ctimeout' isn't known
threads.c:1188:18: warning: unused variable 'ctimeout' [-Wunused-variable]
threads.c: In function 'fat_mutex_lock':
threads.c:1408:41: error: dereferencing pointer to incomplete type
threads.c:1409:36: error: dereferencing pointer to incomplete type
threads.c:1410:43: error: dereferencing pointer to incomplete type
threads.c: In function 'scm_lock_mutex_timed':
threads.c:1442:18: error: storage size of 'cwaittime' isn't known
threads.c:1442:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_try_mutex':
threads.c:1476:18: error: storage size of 'cwaittime' isn't known
threads.c:1476:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_unlock_mutex_timed':
threads.c:1619:18: error: storage size of 'cwaittime' isn't known
threads.c:1619:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_timed_wait_condition_variable':
threads.c:1723:18: error: storage size of 'waittime' isn't known
threads.c:1723:18: warning: unused variable 'waittime' [-Wunused-variable]
threads.c: In function 'scm_pthread_cond_timedwait':
threads.c:1924:3: warning: passing argument 3 of 'pthread_cond_timedwait' from
incompatible pointer type [enabled by default]
/home/vog/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/include/pthread.h:1069:31:
note: expected 'const struct timespec *' but argument is of type 'const struct
scm_t_timespec *'
---------------------------------------------------------------
2) My second attempt is to build without threading:
This leads to a slightly different config.log which I also attached:
config.log.without-threads.bz2
Make then stops at the same point with just a few less error messages:
---------------------------------------------------------------
CC libguile_2.0_la-threads.lo
threads.c: In function 'to_timespec':
threads.c:245:15: error: dereferencing pointer to incomplete type
threads.c:246:15: error: dereferencing pointer to incomplete type
threads.c:253:15: error: dereferencing pointer to incomplete type
threads.c:254:15: error: dereferencing pointer to incomplete type
threads.c: In function 'scm_cancel_thread':
threads.c:1124:7: warning: statement with no effect [-Wunused-value]
threads.c: In function 'scm_join_thread_timed':
threads.c:1188:18: error: storage size of 'ctimeout' isn't known
threads.c:1188:18: warning: unused variable 'ctimeout' [-Wunused-variable]
threads.c: In function 'fat_mutex_lock':
threads.c:1408:41: error: dereferencing pointer to incomplete type
threads.c:1409:36: error: dereferencing pointer to incomplete type
threads.c:1410:43: error: dereferencing pointer to incomplete type
threads.c: In function 'scm_lock_mutex_timed':
threads.c:1442:18: error: storage size of 'cwaittime' isn't known
threads.c:1442:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_try_mutex':
threads.c:1476:18: error: storage size of 'cwaittime' isn't known
threads.c:1476:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_unlock_mutex_timed':
threads.c:1619:18: error: storage size of 'cwaittime' isn't known
threads.c:1619:18: warning: unused variable 'cwaittime' [-Wunused-variable]
threads.c: In function 'scm_timed_wait_condition_variable':
threads.c:1723:18: error: storage size of 'waittime' isn't known
threads.c:1723:18: warning: unused variable 'waittime' [-Wunused-variable]
---------------------------------------------------------------
I ran builds builds from a clean Git checkout of commit
"19761af161942ef18aa2b7891cbf718fc5be5945" of the stable-2.0 branch.
Note that I would of course prefer a thread-supporting build of Guile,
but the problem is that "libgc" refuses to build under MinGW with
Pthreads, so I had to build libgc with "--enable-threads=win32".
On the other hand, it seems that Guile assumes "libgc" to be built
with "--enable-threads=pthreads".
I'm not sure whether this should be fixed in libgc or in Guile.
Nevertheless, this only accounts for half of the issues, as Guile
also fails to build without threading suppport (--without-threads).
As a final note, I'm using the "Pthreads-w32" library to provide
pthread support under MinGW. (http://sourceware.org/pthreads-win32/)
Greets,
Volker
--
Volker Grabsch
---<<(())>>---