steven.borley wrote:
Adriaan,
I posted this (see below) to the gpc list yesterday, but it never appeared (I don't know why), so my apologies for the direct approach.
I was hoping you could help my in using the MacOSX update. It looks like I have a linker problem. Possibly because you've used XCode v2.0 tools in generating the library files??
No -- and there is no such thing like "XCode v2.0 tools". Apple's marketing department acts as if it invented the "gcc" compiler, the "as" assembler and the "ld" linker as part of XCode, but that is far from the truth. Apple's gcc compiler and as assembler are hacked versions of software of the Free Software Foundation (http://www.gnu.org/).
And ... you must sign a non-disclosure agreement to use them, since they are part of "Tiger" - very amusing.
Is there any way around this other than recompiling from source myself? I don't wish to use the cctools you've supplied for fear they'll break my v1.5 XCode Tools installation.
To the best of my knowledge they won't (and you can always reinstall the so-called XCode tools).
Any suggestions?
Maybe I used a "too new" assembler and linker to build the binaries ? Has someone else experienced the same problem ? Did installing the latest cctools from my website solve the problem ?
Regards, Steven
Begin forwarded message:
From: steven.borley steven.borley@virgin.net Date: 15 February 2005 18:56:56 GMT To: gpc@gnu.de Subject: Re: Update for Mac OS X
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).
Obviously not (see below).
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
Ah, that version is much older than the "Apple Computer, Inc. version cctools-528.5~obj" on my website.
hello.pas contains program hello; var i : integer; begin for i := 1 to 5 do writeln('Hello, World!'); end.
Regards, Steven
Regards,
Adriaan van Os