Prof A Olowofoyeku (The African Chief) wrote:
the binary as it could not find all the 2.95.3 libraries for gcc it needed.
You can set environment variables that point to the location of the 2.95.3 files (e.g., GPC_EXEC_PREFIX, LIBRARY_PATH, etc).
Looking through the manual pages I see that now. Supports the environment variables for GCC as well. Sorry - I should have checked the manual first. Actually I did - looked for switches but didn't think about environment variables.
Existed in the binary install I did.
What you will find in the build directory tree is xgpc.exe. If you run "make pascal.install", everything that should be installed will be installed. You will need to do "make pascal.install-with-gcc" if your installed gcc is not version 3.2.1.
Coooll,
Worked - of course you knew it would. I was afraid to try that because I didn't see a gpc.exe and I knew there should be one based on the binary install. Of course I didn't want to goof up my Cygwin Gcc install either so I'm glad you mentioned the "make pascal.install-with-gcc" option. With Cygwin - we are currently at Gcc 3.2-3 and we do have 2.95.3-10 still available as gcc2. We can actually have both operational.
I tried to compile the test programs but I had and error if I just ran make as follows (apparently the summary script has an issue with Cygwins gawk from what I can tell):
$ make
Running the GPC Test Suite. This may take a while ...
rm -f *.dat *.o *.s *.gpm *.gpi *.gpd *.gpc core a.out stderr.out *.exe testmake tmp dummy.c dummy.pas dummy.out diff_cr*.tmp fixcr fixcr.exe rm -f todo/a.out todo/*.exe todo/*.o todo/*.s todo/*.gpm todo/*.gpi todo/*.gpd t odo/core { gpc --version | head -1; gpc --print-search-dirs | grep install | head -1; hos tname || echo "unknown host"; } | \ sed -e 's,^,Testing ,;N;s,\n.*gcc-lib[/], (,;s,[/].*,),;N;s,\n, (,;s,$,),' Testing gpc 20021128, based on gcc-3.2.1 (i686-pc-cygwin) (FPC-ATL-BKNB) echo "gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused " gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused PC="gpc" PFLAGS="--autobuild -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused " SRCDIR="/usr/develop/src/gpc-20021128/p/test/." TEST_MAKE_FLAG=test-make-fl ag "/usr/develop/src/gpc-20021128/p/test/./test_run" "*.pas" | "/usr/develop/src /gpc-20021128/p/test/./test_sum" gawk: cmd. line:42: (FILENAME=- FNR=17) fatal: error reading input file `-': Permission denied make: *** [pascal.check-nomsg] Error 2 /usr/develop/obj/gpc-tests $
and then if I used the option for check-long I only had the following problems:
agettext2test.pas skipped because could not run msgfmt crttest.pas skipped - no curses library found (its cygncurses[version].dll on Cygwin) fjf165a.pas skipped german locale not installed fjf480a.pas skipped librx not installed fjf480b.pas skipped librx not installed fjf480c.pas skipped librx not installed fjf582.pas signal 11 gmptest.pas skipped libgmp not installed longr2.pas skipped no LongReal mathy routines available mod4.pas seemed to hang here and finally I was going to kill the test and I hit CTRL C and everytest up though readc2.pas appeared with OK's except params.pas as documented next params.pas failed ./a regextest.pas skipped librx not installed
I'd say I have pretty good install.
Thanks Professor or Chief (whichever you prefer)
Brian Keener bkeener@thesoftwaresource.com