Can anyone help me?
I am new at this GPC thing, and the whole compiler thing in general. On OSX, I did the package installation, which seemed pretty simple, and no problems were reported. But when I try to compile something on the command line using
gpc <filename>, I get back the following error (or some variant of it):
gpc: installation problem, cannot exec `c++filt3': No such file or directory /usr/bin/ld: /usr/lib/libSystem.dylib load command 9 unknown cmd field collect2: ld returned 1 exit status
Interestingly, when there are problems in the code, gpc seems to have no problem pointing them out. It seems the problem only comes when the code is good and about to be compiled. Sorry if my terminology is wrong, I'm still learning how to talk like this.
Thanks in advance for any suggestions!
Nathan Schneider wrote:
gpc: installation problem, cannot exec `c++filt3': No such file or directory /usr/bin/ld: /usr/lib/libSystem.dylib load command 9 unknown cmd field collect2: ld returned 1 exit status
Interestingly, when there are problems in the code, gpc seems to have no problem pointing them out. It seems the problem only comes when the code is good and about to be compiled. Sorry if my terminology is wrong, I'm still learning how to talk like this.
The problem is not with the gpc compiler itself, but with the assembler and linker tools. GNU Pascal produces assembly code, which is then passed on to the Apple assembler and linker.
What version of OSX are you running and which version of Apple's Developer Tools package has been installed ? Type "as -v" on the command line followed by a control-c to find out.
Did the system software come with a CD with Developer Tools ? Did you install it ? Did you also install the "BSD subsystem" package ?
Regards,
Adriaan van Os
On Sun, 30 Nov 2003, Nathan Schneider wrote:
I am new at this GPC thing, and the whole compiler thing in general. On OSX, I did the package installation, which seemed pretty simple, and no problems were reported. But when I try to compile something on the command line using
gpc <filename>, I get back the following error (or some variant of it):
gpc: installation problem, cannot exec `c++filt3': No such file or directory
Rather hard to tell what's wrong without knowing something about <filename>.
As a simple installation check try the clasic "hello world":
hello.pas --------- program hello; begin writeln('hello world'); end.
If you get by this you can look for more exotic problems
Russ
Nathan Schneider wrote:
<please direct your reply to the gpc list>
Thanks so much for your willingness to help! that makes a lot of sense; none of my developer tools open (at least the way I think they should) and I suspect this is because my cd drive is screwed up and it maybe didn't install all the developer tools correctly. Either way, I'll send you what I know and maybe you can help me figure out what to do next. when I type "as -v" on the command line, I get:
Apple Computer, Inc. version cctools-384.1.obj~1, GNU assembler version 1.38
let me know if this suggests anything. in the meantime, I'll try reinstalling the BSD developer tools.
Thanks!
You are running a too old version of the Mac OS X assembler and linker. You need the "December 2002 Mac OS X Developer Tools" or a later release. You can download these from https://connect.apple.com.
Regards,
Adriaan van Os