On 27/08/2015 06:30, Artella Coding wrote:
Hi, now I am getting a new error.

To summarise I installed :

mingw :
version 4.9.3
Architecture : x86_64
Threads : Win32
Exception : seh
Build revision : 0

and put in path, so I get :

$ g++ --version
g++.exe (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 4.9.3

Then configured via :

./configure --host=i686-w32-mingw32 --bindir=... --mandir=... --libdir=...
CPPFLAGS=-I/mingw64/include

After creating "libffi/doc/libffi.info", I do "make" again, at which point
I get the
following error message :

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -I/mingw64/include -I. -I./include -Iinclude -I./src -MT
src/x86/win32.lo -MD -MP -MF src/x86/.deps/win32.Tpo -c src/x86/win32.S
-DDLL_EXPORT -DPIC -o src/x86/.libs/win32.o
src/x86/win32.S: Assembler messages:
src/x86/win32.S:486: Error: invalid instruction suffix for `push'
src/x86/win32.S:497: Error: invalid instruction suffix for `push'
src/x86/win32.S:498: Error: invalid instruction suffix for `push'
src/x86/win32.S:643: Error: invalid instruction suffix for `pop'
src/x86/win32.S:652: Error: invalid instruction suffix for `push'
src/x86/win32.S:669: Error: invalid instruction suffix for `push'
src/x86/win32.S:768: Error: invalid instruction suffix for `pop'
src/x86/win32.S:780: Error: invalid instruction suffix for `pop'
src/x86/win32.S:797: Error: invalid instruction suffix for `push'
src/x86/win32.S:799: Error: invalid instruction suffix for `push'
src/x86/win32.S:814: Error: invalid instruction suffix for `push'
src/x86/win32.S:818: Error: invalid instruction suffix for `push'
src/x86/win32.S:918: Error: invalid instruction suffix for `pop'
src/x86/win32.S:919: Error: invalid instruction suffix for `pop'
src/x86/win32.S:934: Error: invalid instruction suffix for `push'
src/x86/win32.S:1032: Error: invalid instruction suffix for `pop'
Makefile:1221: recipe for target 'src/x86/win32.lo' failed
make[4]: *** [src/x86/win32.lo] Error 1
make[4]: Leaving directory '/home/monolith/polyml/libffi'
Makefile:1473: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1

The problem is, or was since you seem to have fixed it, that you were using the 64-bit version of GCC but giving the 32-bit option to "configure". To build the 64-bit version you need
./configure --host=x86_64-w64-mingw32.
I think SEH is the correct exception handling for 64-bits.

David

_______________________________________________
polyml mailing list
polyml@inf.ed.ac.uk
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to