Compiling Gforth for DOS; long 
Author Message
 Compiling Gforth for DOS; long

I would like to be able to compile GForth-0.5.0.tar.gz under
have the DJGPP version gcc 2.95.2 installed. But can't seem to
do the
whole compile process. I want to learn how to do this since I
would like
to make a few changes/additions to GForth.

The process I followed in a DOS window under WIN98:

1. cd e:\forths
2. ren e:\download\forth\gforth-0.5.0.tar.gz
    (allows my untgz to handle it)
3. untgz e:\download\forth\gforth-0.5.0.tgz
    (untgz handles long filenames; now all the files are in the
     e:\forths\gforth-0.5.0  directory)
4. cd gforth-0.5.0
5. config
    (runs config.bat  which copies various files
     I assume I am now ready to run make)
6. make -v

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-pc-msdosdjgpp
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS

    (yep, its GNU make)

7. gcc -v

Reading specs from e:/djgpp/lib/specs
gcc version 2.95.2 19991024 (release)

    (yep, its gcc 2.95.2)

8. make

echo 0.4.9 > version
e:/djgpp/bin/make.exe gforth.exe
make.exe[1]: Entering directory `e:/Forths/gforth-0.5.0'
e:/djgpp/bin/make.exe -C engine gforth.exe gforth-f.exe
make.exe[2]: Entering directory `e:/Forths/gforth-0.5.0/engine'
echo I hope you configured your system
I hope you configured your system
echo timestamp > stamp-h
gcc  -I./../arch/386 -I. -O3 -Wall -fomit-frame-pointer \
    -fno-defer-pop   -fcaller-saves \
    -DGFORTH_DEBUGGING -o engine.o -c ./engine.c
gcc  -I./../arch/386 -I. -O3 -Wall -fomit-frame-pointer \
    -fno-defer-pop -fcaller-saves -DGFORTH_DEBUGGING \
    -o main.o -c ./main.c
gcc -c  -I./../arch/386 -I. -O3 -Wall -fomit-frame-pointer \
        -o signals.o signals.c
gcc -c  -I./../arch/386 -I. -O3 -Wall -fomit-frame-pointer \
        -o memcmpc.o memcmpc.c
gcc -c  -I./../arch/386 -I. -O3 -Wall -fomit-frame-pointer  \
    -o ecvt.o ecvt.c
gcc -c  -I./../arch/386 -I. -O3 -Wall -fomit-frame-pointer    \
    -o io.o io.c
make.exe[2]: Leaving directory `e:/Forths/gforth-0.5.0/engine'
make.exe[1]: Leaving directory `e:/Forths/gforth-0.5.0'

    (looks OK)

9. make test

e:/djgpp/bin/make.exe -C engine gforth.exe gforth-f.exe
make.exe[1]: Entering directory `e:/Forths/gforth-0.5.0/engine'
make.exe[1]: *** No rule to make target `strsig.o', needed by
`gforth.exe'.  Stop.
make.exe[1]: Leaving directory `e:/Forths/gforth-0.5.0/engine'
make.exe: *** [engines] Error 2

    (what's wrong?? message seems to indicate something is
     missing in the makefile)


When I try to use the info docs, I have the following problem:

1. cd e:\forths\gforth-0.5.0
2. info --file doc/
    (displays the main page with the following status line:)
-----Info: (, 409 lines --Top-- Subfile:
3. tab down to * Goals::
    (displays that OK with the following status line:)
-----Info: (, 46 lines --Top-- Subfile:
4. u
    (to return to top)
5. tab down to * Gforth Environment::
    (doesn't work; displays the following error message:)
Gforth Environment: No such file or directory (ENOENT)

I think the indirect indexing isn't working properly. But not


Where do I find the target of link:
<a href="">
Explicit Reg Vars</a>
This link is found in gforth.html in the html version of the

Any help will be much appreciated.


Mon, 17 Mar 2003 13:26:10 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Help needed: Compiling Gforth in DJGPP

2. Can't compile gforth-0.3.0 on Sparc Solaris 2.4

3. Bug in Gforth [compile]...

4. how to cross compile using Gforth

5. compiling gforth

6. CRC-32 native code for DOS GForth 0.5.0

7. EKEY in gforth in DOS

8. Small bug in GForth.050 for DOS

9. GForth for DOS -- HTML documentation

10. Low-Level I/O Primitives for GFORTH (for DOS)

11. Gforth, DOS and Win32 ports, Call for Volunteers

12. GForth for DOS


Powered by phpBB® Forum Software