[Ecls-list] Mingw32 threaded build error
Marko Kocić
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
windows versions.
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 ;)
Regards,
Marko
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[2]: *** [main.o] Error 1
> rm main.c
> make[2]: Leaving directory `/c/tmp/ecl-0.9j/build/c'
> make[1]: *** [libeclmin.a] Error 2
> make[1]: Leaving directory `/c/tmp/ecl-0.9j/build'
> make: *** [all] Error 2
>
> I'm using mingw with gcc-4.2.0
>
> Thanks,
> Marko
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw-threads.patch
Type: application/octet-stream
Size: 396 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20080106/1c360f8d/attachment.obj>
More information about the ecl-devel
mailing list