[Ecls-list] Mingw32 threaded build error
marko.kocic at gmail.com
Sat Jan 5 23:30:36 UTC 2008
After some fiddling I succeeded in making mingw threaded build work.
Here's the patch attached.
After applying it I was able to build ecl and to execute example in ecl manual.
I added definition of pthread_cond_t that was missing. I also had to
define sleep function since in my gcc version (4.2.0) seems that it is
dropped, and comment in stdlib.h file says to use Sleep from windows.h
instead. However, this is a safe change since Sleep is present in all
Another problem during building CVS head was that gmp\doc failed to
build because of some missing nodes ?! I copied gmp-*.info files from
previous 0.9j-p1 build and it stopped compaining.
I'll try just this patch against 0.9j-p1, and if it builds ok, maybe
it's time for 0.9j-p2 ;)
On Jan 4, 2008 11:54 PM, Marko Kocić <marko.kocic at gmail.com> wrote:
> Has anyone built 0.9j-p1 mingw32 version with threads successfully?
> I built it without threads, but build with --enable-threads fails.
> I'm using
> ./configure --prefix=/c/lisp/app/ecl --enable-threads --enable-unicode --enable-c99-complex --with-clx
> The error message I got is:
> main.d main.c ; fi
> dpp: c:/tmp/ecl-0.9j/src/c/main.d -> main.c
> Unknown symbol: si::*record-source-pathname-p*
> gcc -c -I. -Ic:/tmp/ecl-0.9j/build -I/c/tmp/ecl-0.9j/src/c -I../ecl/gc -g -O2 -D_THREAD_SAFE -fstrict-aliasing -Dming
> w32 -o main.o main.c
> In file included from c:/tmp/ecl-0.9j/build/ecl/ecl.h:58,
> from c:/tmp/ecl-0.9j/src/c/main.d:19:
> c:/tmp/ecl-0.9j/build/ecl/object.h:517: error: expected specifier-qualifier-list before 'pthread_cond_t'
> make: *** [main.o] Error 1
> rm main.c
> make: Leaving directory `/c/tmp/ecl-0.9j/build/c'
> make: *** [libeclmin.a] Error 2
> make: Leaving directory `/c/tmp/ecl-0.9j/build'
> make: *** [all] Error 2
> I'm using mingw with gcc-4.2.0
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 396 bytes
Desc: not available
More information about the ecl-devel