The gpc compiler for Mac OS X, available from http://www.microbizz.nl/gpc.html, has been updated. The distribution is based on gcc-3.4.3, gpc-20041218 and Waldek's patches. The downloads include separate packages for:
• an installer for the compiler's binaries (for Mac OS X 10.3 and later) • sources, patches and building instructions (for Mac OS X 10.2 and later) • an updated Mac OS X assembler, linker and utilities (cctools-528.5) • updated Mac OS X Pascal Interfaces (version 1.0.7)
Regards,
Adriaan van Os
Adriaan,
Thank you for the Mac OS X update.
However, I'm having problems using it.
I have upgraded from gpc332d1 to gpc343d6, upgraded GPC Interfaces to 1.07 (from D to E) from the microbizz site. I did not take the cctools as I reasoned that I have the most up-to-date version already from Apple (November 2004 gcc 3.3 Updater).
Trying to compile my simple Hello World program I get...
[mirror-doors:~/src/pascal/hello] steven% gpc hello.pas /usr/bin/ld: /Developer/Pascal/gpc343d6/lib/gcc/powerpc-apple-darwin7/3.4.3/ libgpc.a(error.o) r_type field of relocation entry 709 in section (__TEXT,__text) invalid /usr/bin/ld: /Developer/Pascal/gpc343d6/lib/gcc/powerpc-apple-darwin7/3.4.3/ libgpc.a(error.o) stray relocation PPC_RELOC_PAIR entry (710) in section (__TEXT,__text) /usr/bin/ld: /Developer/Pascal/gpc343d6/lib/gcc/powerpc-apple-darwin7/3.4.3/ libgpc.a(error.o) r_type field of relocation entry 711 in section (__TEXT,__text) invalid /usr/bin/ld: /Developer/Pascal/gpc343d6/lib/gcc/powerpc-apple-darwin7/3.4.3/ libgpc.a(error.o) stray relocation PPC_RELOC_PAIR entry (712) in section (__TEXT,__text)
[...snip... another 300 lines or so...]
/usr/bin/ld: /Developer/Pascal/gpc343d6/lib/gcc/powerpc-apple-darwin7/3.4.3/ libgcc.a(_moddi3.o) r_type field of relocation entry 0 in section (__TEXT,__eh_frame) invalid /usr/bin/ld: /Developer/Pascal/gpc343d6/lib/gcc/powerpc-apple-darwin7/3.4.3/ libgcc.a(_moddi3.o) stray relocation PPC_RELOC_PAIR entry (1) in section (__TEXT,__eh_frame) collect2: ld returned 1 exit status
What am I doing wrong?
Is this because the cctools on microbizz are actually newer than the official Apple release (i.e. not-pre-release). If so what do these newer tools do for me? I was reluctant to upgrade as Pascal is only a small part of my compiling work and I could find no release notes or mention of this update on the Apple Developer Connect site. Also, if these tools are from XCode 2.0 pre-release, will they break my XCode v1.5 installation?
More info:
Max OSX 10.3.8
XCode Tools v1.5
[mirror-doors:~/src/pascal/hello] steven% ld -v Apple Computer, Inc. version cctools-525.1.obj~8
hello.pas contains program hello; var i : integer; begin for i := 1 to 5 do writeln('Hello, World!'); end.
Regards, Steven
On 14 Feb 2005, at 02:24, Adriaan van Os wrote:
The gpc compiler for Mac OS X, available from http://www.microbizz.nl/gpc.html, has been updated. The distribution is based on gcc-3.4.3, gpc-20041218 and Waldek's patches. The downloads include separate packages for:
• an installer for the compiler's binaries (for Mac OS X 10.3 and later) • sources, patches and building instructions (for Mac OS X 10.2 and later) • an updated Mac OS X assembler, linker and utilities (cctools-528.5) • updated Mac OS X Pascal Interfaces (version 1.0.7)
Regards,
Adriaan van Os