I modified my local fink package to install gpc-20041218. it downloads the gcc-core-3.3.3.tar.bz2 and the gpc-20041218.tar.gz, compiles and installs.
The installation will have to be more tweaked, It does not put all documentation to the right places etc. The executable is generated. I am running the test suite over night.
I am definitely looking forward to Adriaans' patches.
test suite after a while crashes on: .... | tee test_log | "./test_sum" -d the error is: *** malloc: vm_allocate(size=2147487744) failed (error code=3) *** malloc[16396]: error: Can't allocate region gawk: cmd. line:115: (FILENAME=- FNR=22) fatal: grow_iop_buffer: iop->buf: can't allocate -2147483646 bytes of memory (Cannot allocate memory)
it happens with the "test_run" pipe and/or following command tail -f test_log | ./test_sum -d (the command was executed as the test is running) same on the static file just hangs as the tail -f is waiting for data added to the file.
following commands work: ./test_sum -d < test_log cat test_log | ./test_sum -d cat test_log | tee /tmp/tmp111111 | ./test_sum -d
That's all for tonight.
Jan
On Jan 6, 2005, at 03:07, Adriaan van Os wrote:
jan.ruzicka@comcast.net wrote:
This time the gpc 3.3.2d1 finished the test suite 20041218. The --longjmp-all-nonlocal-labels helped.
The make for tests crashes fairly soon (about 10 tests). I did not try the gpc-20030830 test suite.
I am trying to compile the gpc-20041218 on OSX and update the fink package.
You are entirely free to do so, but may want to wait a little until I update the compiler sources and binaries at my website (that the current fink package is based on). This will include some additional patches.
configuration was throwing an error: configure: error: The following requested languages were not found: pascal The following languages were available: c treelang Configure in /Users/janruzicka/Desktop/downloads/gpc-build/gcc failed, exiting.
The config did not see the config-lang.in for pascal.
find . -name "config-lang.in" in the gcc source directory did not show anything for gcc/p. the p directory had to be copied to gcc.
Can anybody add a note to compilation instructions (http://www.gnu-pascal.de/gpc/Compiling-GPC.html)? the note should say any think like: find . -name "config-lang.in" | xargs grep language= should return a line with pascal: ./gcc/p/config-lang.in:language="pascal" (this would save me fair amount of time of searching around all different manuals)
http://www.microbizz.nl/gpc332d1.src.tar.bz2 includes detailed building instructions.
Now the GPC configures and starts to compile. Next obstacle is bison error in parse.c (USE_ASSERT_RATHER_THAN_ABORT).
You need a special version of bison. Frank Heckenbach can tell you which one.
Lets see the bison package will be updated. (bison-2.0 was released on 04-Jan-2005)
That's it for tonight (this morning).
Jan
Can you give me some more tips for compiling GPC?
Yes, because of differences between fsf-gcc and apple-gcc, it is recommended that you bootstrap the compiler (or install an fsf-gcc first). See the instructions that come with http://www.microbizz.nl/gpc332d1.src.tar.bz2.
Regards,
Adriaan van Os