gpc folks:
I have moved to a new Mac running OS X 10.7.4 and Gnu Pascal now doesn't work:
% more h.p program helloworld (output); begin writeln(output,'hello world'); end. % gpc h.p ld: library not found for -lSystemStubs collect2: ld returned 1 exit status
Any suggestions on how to fix this?
Thanks,
Tom
Thomas D. Schneider, Ph.D. Senior Investigator National Institutes of Health National Cancer Institute Frederick National Laboratory for Cancer Research Gene Regulation and Chromosome Biology Laboratory Molecular Information Theory Group Frederick, Maryland 21702-1201 http://alum.mit.edu/www/toms
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.
Then I installed cctools-576.
And this broke gpc:
$ gpc h.p gpc: installation problem, cannot exec `as': Bad CPU type in executable
Now how can I uninstall cctools-576?
Greetings,
Wolfgang
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
Hi,
Am 30.08.2012 um 01:22 schrieb "Schneider, Thomas (NIH/NCI) [E]" schneidt@mail.nih.gov:
gpc folks:
I have moved to a new Mac running OS X 10.7.4 and Gnu Pascal now doesn't work:
% more h.p program helloworld (output); begin writeln(output,'hello world'); end. % gpc h.p ld: library not found for -lSystemStubs collect2: ld returned 1 exit status
Any suggestions on how to fix this?
This worked for me on 10.8.1 Install Xcode 4.4.1 including the optional command line tools and run gpc -Wl,-macosx_version_min,10.5 h.p
Greetings, Wolfgang
Schneider, Thomas (NIH/NCI) [E] wrote:
gpc folks:
I have moved to a new Mac running OS X 10.7.4 and Gnu Pascal now doesn't work:
% more h.p program helloworld (output); begin writeln(output,'hello world'); end. % gpc h.p ld: library not found for -lSystemStubs collect2: ld returned 1 exit status
Any suggestions on how to fix this?
Sorry, I can not reproduce that here on 10.7. What version of gpc do you have installed ? Please give me the output of "gpc-v". And what version of Xcode ?
Regards,
Adriaan van Os
Adriaan:
Thanks for looking at this!
Sorry, I can not reproduce that here on 10.7. What version of gpc do you have installed ? Please give me the output of "gpc-v". And what version of Xcode ?
% gpc -v Reading specs from /Developer/Pascal/gpc346u2/lib/gcc/i386-apple-darwin9/3.4.6/specs Configured with: ../gcc-3.4.6/configure --enable-languages=pascal,c --enable-threads=posix --disable-nls --target=i386-apple-darwin9 --host=i386-apple-darwin9 --build=i386-apple-darwin9 --prefix=/Developer/Pascal/gpc346u2 --with-arch=pentium-m --with-tune=prescott Thread model: posix gpc version 20070904, based on gcc-3.4.6
I don't recall how I installed gpc.
I don't know the version of Xcode, but I just installed it from Apple a few days ago since it wasn't on my machine.
Do you have a recommendation for what version to reinstall? I got somewhat lost in all the versions, mac versions and ancient (!) alpha versions out there.
Regards,
Tom
Thomas D. Schneider, Ph.D. Senior Investigator National Institutes of Health National Cancer Institute Gene Regulation and Chromosome Biology Laboratory Molecular Information Theory Group Frederick, Maryland 21702-1201 toms@alum.mit.edu (permanent)
Schneider, Thomas (NIH/NCI) [E] wrote:
I don't know the version of Xcode, but I just installed it from Apple a few days ago since it wasn't on my machine.
Apparently, that Xcode doesn't install libSystemStubs.a into /usr/lib. You can do that manually from http://microbizz.nl/libSystemStubs.zip. The source code for the lib is here http://opensource.apple.com/source/SystemStubs/SystemStubs-6/.
Regards,
Adriaan van Os