Waldek Hebisch wrote:
I did some work on updating gpc to newer gcc versions. You can find it at GitHub:
Thanks a lot for the update !
I tried with gcc-4.3.5 on i386-apple-darwin9. Building gcc-4.3.5 on Mac OS X can be a bit problematic. First, gmp and mpfr must be built. The key point is that gmp and mpfr must be built 32-bit or 32-bit/64-bit "universal". Without appropriate configure switches, libgmp and libmpfr will be built for x86_64 only and subsequently the gcc-4.3.5 build will fail. See http://gmplib.org/list-archives/gmp-discuss/2010-September/004312.html for an explanation on how to build gmp"universal". An added difficulty is that building gmp on Mac OS X requires the right gcc version (gcc-4.2 or gcc-4.1.2).
Once gcc-4.3.5 itself builds, adding gpc is no problem.
[P18:~] adriaan% gpc -v Using built-in specs. Configured with: ../gcc-4.3.5/configure --enable-languages=c,pascal --enable-threads=posix --disable-nls --target=i386-apple-darwin9 --host=i386-apple-darwin9 --build=i386-apple-darwin9 --prefix=/Developer/Pascal/gpc435u1 --with-arch=pentium-m --with-tune=prescott --with-gmp=/usr/local --with-mpfr=/usr/local --disable-multilib --disable-mapped-location Thread model: posix gpc version 20070904, based on gcc-4.3.5
The testsuite results are as follows:
[P18:gcc/p/test] adriaan% make rm -f *.dat *.o *.s *.i *.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/*.i todo/*.gpi todo/*.gpd todo/core GP= PC="gpc" PFLAGS=" --autobuild -g -O3 -W -Wall -Wno-unused " PFLAGS_NO_PATHS="-g -O3 -W -Wall -Wno-unused " SRCDIR="." TEST_MAKE_FLAG=test-make-flag "./test_run" "*.pas" | tee test_log | "./test_sum" -d Test Run By adriaan on 2011-06-21 07:03:38 Native configuration is i386-apple-darwin9 (P18)
=== gpc tests ===
Running target any Running testsuite ...
UNSUPPORTED: agettext2test.pas UNSUPPORTED: agettexttest.pas UNSUPPORTED: aregextest.pas FAIL: fjf1102.pas UNSUPPORTED: fjf165a.pas FAIL: fjf403b.pas FAIL: fjf563e.pas FAIL: fjf787.pas FAIL: fjf848a.pas FAIL: fjf848b.pas FAIL: fjf848c.pas FAIL: fjf998r.pas FAIL: prep2p.pas FAIL: systemtest.pas
=== gpc Summary ===
# of tests 5111 # of expected passes 5097 # of unexpected failures 10 # of unsupported tests 4
gpc version 20070904, based on gcc-4.3.5
Regards,
Adriaan van Os