Building SWI-Prolog on MinGW32: fail to build "swipl.exe"
Stranz Jan-Marc <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <9E0B7EF1EDF3FF49A8B173782CCEC62D04F0A7ED@gea-exchange-01.net.gantner.com> |
I'm trying to build "pl-6.4.1" under "mingw32" (mingw-20120426, gcc-4.7.2, ...). The build command sequence is: cd pl-6.4.1 export CIFLAGS="-I/mingw/include" export LDFLAGS="-L/mingw/lib" ./configure --prefix=/mingw --disable-readline --disable-libdirversion --enable-static --disable-shared make 2>&1 | tee build.log At the end I always get some linker errors (see log file attached): gcc -c -I. -I. -I./rc -Wall -O2 -I/mingw/include -fno-strict-aliasing -D__WINDOWS__ -DWIN32 pl-main.c -o pl-main.o gcc -L/mingw/lib -Wl,--stack,4000000 -o swipl.exe pl-main.o -L../lib/i386-win32 -lswipl -lgmp -lws2_32 -lm -lpthreadGC2 -lwsock32 -lwinmm -lshell32 ../lib/i386-win32/libuxnt.a ../lib/i386-win32/libswipl.a(pl-atom.o):pl-atom.c:(.text+0x1140): undefined reference to `__sync_add_and_fetch_4' ../lib/i386-win32/libswipl.a(pl-atom.o):pl-atom.c:(.text+0x14f7): undefined reference to `__sync_add_and_fetch_4' ../lib/i386-win32/libswipl.a(pl-atom.o):pl-atom.c:(.text+0x1d26): undefined reference to `__sync_add_and_fetch_4' ../lib/i386-win32/libswipl.a(pl-atom.o):pl-atom.c:(.text+0x1d8d): undefined reference to `__sync_bool_compare_and_swap_4' ../lib/i386-win32/libswipl.a(pl-atom.o):pl-atom.c:(.text+0x1dd3): undefined reference to `__sync_sub_and_fetch_4' So "libswipl.a", "libuxnt.a", "plterm.dll(.a)" are build, but "swipl.exe" is not build. Any help would be appreciated! -------------- next part -------------- HTML attachment scrubbed and removed