Wolfgang Helbig wrote:
Hi,
I have a similar problem, trying to run gpc on Mac OS X 10.8.1
After installing Xcode 4.4.1 I've got
ld: warning: -macosx_version_min not specified, assuming 10.7 ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in __start from /Developer/SDKs/MacOSX10.5.sdk//usr/lib/crt1.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
But the compiled program runs fine.
As the warning said, you can pass -Wl,-no_pie to get rid of the warning.
Then I installed cctools-576.
And this broke gpc:
$ gpc h.p gpc: installation problem, cannot exec `as': Bad CPU type in executable
These are very old cctools. My webpage says
"Unless you have installled Xcode 2.x or 3.x ..."
but this should be
"Unless you have installled Xcode 2.x or a later version ..."
Now how can I uninstall cctools-576?
By reinstalling Xcode.
Regards,
Adriaan van Os