[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gforth] Can't compile Gforth 0.7.0 on MingW64

From: Marcel Hendrix
Subject: [gforth] Can't compile Gforth 0.7.0 on MingW64
Date: Mon, 8 Apr 2013 20:47:09 +0200 (CEST)

Dear Gforth people,
X-Online-Scanned: by Cloudmark authority (on

I try to recompile Gforth for my Windows 7 box (with MingW64 installed).
This is the result of "make". Is there something I can do / should have done
about this? "configure" seems to work. Note that I had to remove the -m486
switch, because this gcc doesn't recognize it (Hmm, maybe incompatibe with
64 bits, but it could have told me in a polite manner :-) 

To me, it seems the getkey and rows calls have bad syntax, The missing
pwd.h file is something configure should have caught? Can I disable pwd or 
provide a hack? I thought -m32 should not be needed for Gforth?

address@hidden /c/temp/gforthm/gforth
$ make
if test -z ""; then \
                for i in -ll-reg -noll-reg -ll -noll; do make optgforth OPT=$i 
&& cp -p gforth${i}.exe gforth.exe && break; done; \
        else \
                ( cd engine && make gforth.exe ) && \
                cp -p engine/gforth.exe gforth.exe && \
                true gforth.exe; \
                true; \
                make checkone check-nofast ENGINE=./engine/gforth.exe; \
make[1]: Entering directory `/c/temp/gforthm/gforth'
make gforth-ll-reg.exe OPT=-ll-reg OPTDEFINES="-DFORCE_LL -DFORCE_REG" 
make[2]: Entering directory `/c/temp/gforthm/gforth'
if test -z "-ll-reg"; then \
                for i in -ll-reg -noll-reg -ll -noll; do make optgforth OPT=$i 
&& cp -p gforth${i}.exe gforth-ll-reg.exe && break; done; \
        else \
                ( cd engine && make gforth-ll-reg.exe ) && \
                cp -p engine/gforth-ll-reg.exe gforth-ll-reg.exe && \
                true gforth-ll-reg.exe; \
                true; \
                make checkone check-nofast ENGINE=./engine/gforth-ll-reg.exe; \
make[3]: Entering directory `/c/temp/gforthm/gforth/engine'
gcc  -I./../arch/386 -I. -Wall -O2 -fomit-frame-pointer -fforce-addr 
   -fno-gcse -fno-strict-al
iasing -fno-crossjumping -fno-reorder-blocks -falign-labels=1 -falign-loops=1 
-falign-jumps=1 -fno-defer-pop -fcaller-saves -fno-inline -DGF
ORTH_DEBUGGING -o engine-ll-reg.o -c ./engine.c
In file included from 
                 from ./forth.h:25,
                 from ./engine.c:28:
./io.h:33:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
./io.h:44:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
./engine.c:45:17: fatal error: pwd.h: No such file or directory
compilation terminated.
make[3]: *** [engine-ll-reg.o] Error 1

reply via email to

[Prev in Thread] Current Thread [Next in Thread]