As I am new on this discussion list, I have included some information about myself at the bottom of this message to introduce myself.
My field of interest is GPC for Darwin (Darwin is Apple’s open-source kernel of MacOS X, based of FreeBSD 4.4 UNIX).
I gathered the following relevant information: - the first version of GCC that fully supports Darwin is GCC 3.1 - GPC 2.1 is based on GCC 2.95 - GPC-20020910 alpha/beta has patches (diffs) for GCC 3.0
Consequently, my questions are: - has anyone on this list tried to build GPC for Darwin ? - has anyone on this list tried to build GPC for GCC 3.1 ?
Regards,
Adriaan van Os gpc@microbizz.nl
---------------------------------------
About myself
I run a small software company in The Netherlands named Microbizz. You are invited to laugh about my website at www.microbizz.nl. Currently, I am working mainly on CAD software and application toolboxes.
Pascal is my language of choice. I have worked with the following Pascal compilers:
DEC-10 (1978) DEC-10 Pascal
Apple II UCSD Pascal
Apple IIgs TML Pascal ORCA Pascal
CPM Turbo Pascal 1.0
MS-DOS Turbo Pascal 3.0 upto 6.0
Windows Delphi
Macintosh Turbo Pascal Think Pascal Apple Pascal for MPW Language Systems Pascal for MPW MetroWerks Pascal CodeWarrior Pascal
Darwin See forward to work with GPC. What I most liked about what I learned from GPC was it’s ability to pass local procedures as actual parameters !!
Adriaan van Os (Microbizz) a écrit:
As I am new on this discussion list, I have included some information about myself at the bottom of this message to introduce myself.
My field of interest is GPC for Darwin (Darwin is Apple’s open-source kernel of MacOS X, based of FreeBSD 4.4 UNIX).
I gathered the following relevant information:
- the first version of GCC that fully supports Darwin is GCC 3.1
- GPC 2.1 is based on GCC 2.95
I have no access to an Apple system. I only found in the Apple Darwin site that gcc-7 as named by Darwin is in fact a patched version of gcc-2.95.2 I downloaded gcc-7.tar.gz and tried to apply the 2.95.2 gpc patches to it. There is some fuss due to the Apple patches but all gpc patches apply successfully. So the only advice I can give is to try a compilation as indicated in the gpc doc and see what you obtain.
Maurice
Thank you for your replies and the information provided.
Maurice Lombardi wrote:
I only found in the Apple Darwin site that gcc-7 as named by Darwin is in fact a patched version of gcc-2.95.2 I downloaded gcc-7.tar.gz and tried to apply the 2.95.2 gpc patches to it. There is some fuss due to the Apple patches but all gpc patches apply successfully. So the only advice I can give is to try a compilation as indicated in the gpc doc and see what you obtain.
Looking into this further, I noticed that on Darwin (10.2) there are in fact three "gcc's" installed in /usr/bin gcc - a link to gcc3 gcc2 - based on the gcc you referred to gcc3 - based on gcc 3.1
So, I will experiment with the gcc-2.95.2 and with the patches for gcc-3.1 provided by Waldek Hebisch. Later with the GPC release announced by Frank Herkenbach.
Adriaan
Adriaan van Os (Microbizz) wrote:
- GPC-20020910 alpha/beta has patches (diffs) for GCC 3.0
They're not working yet.
- has anyone on this list tried to build GPC for GCC 3.1 ?
Waldek Hebisch has sent me patches for GCC 3.1. I'm currently integrating them and fixing some related issues. At the moment, I have to concentrate on other, more urgent tasks, but expect the next GPC release in a few weeks which will contain alpha support for GCC 3.1.
Frank
Adriaan van Os (Microbizz) wrote:
As I am new on this discussion list, I have included some information about myself at the bottom of this message to introduce myself.
My field of interest is GPC for Darwin (Darwin is Apple^@s open-source kernel of MacOS X, based of FreeBSD 4.4 UNIX).
I gathered the following relevant information:
- the first version of GCC that fully supports Darwin is GCC 3.1
- GPC 2.1 is based on GCC 2.95
- GPC-20020910 alpha/beta has patches (diffs) for GCC 3.0
The diffs are unfinished, do not try them.
Consequently, my questions are:
- has anyone on this list tried to build GPC for Darwin ?
- has anyone on this list tried to build GPC for GCC 3.1 ?
I have build working gpc with gcc-3.1.1 (on i386 Linux). Known problems are: -- debugging, gcc-3.1.1 defaults (at least on Linux) to DWARF and gpc previously did not work with DWARF (currentely for simple programs one gets DWARF debugging info, but full support require much more work). Due to strict internal consistency checking it is also not possible to get stabs debugging info for objects. -- at O3 some programs are mis-optimized (at O2 I did not found any case of incorrect code) -- on incorrect programs gpc may abort or crash, gcc-3.1.1 backend is much more strict on what it accepts then gcc-2.95.3
If you wish to try the patches I have put them at: http://www.math.uni.wroc.pl/~hebisch/gpc/
Beware, that to build gpc you have to manually intervene in the build process (few times). The patches also work with gcc-3.2.
You may prefer to wait few weeks until Frank release a much cleaner version.