Trying to run gcc on MIPS

Matthew Majka mmajka@cs5.dasd.honeywell.com
Fri Oct 22 15:31:00 GMT 1999


On 22 Oct 1999, Mike Albaugh wrote:

> Matthew Majka (mmajka@cs5.dasd.honeywell.com) wrote:
> : On Fri, 22 Oct 1999, Matthew Majka wrote:
> 
> : > On Fri, 22 Oct 1999, Mauro Baquero wrote:
> : > 
> : > > I'm trying to compile a simple program on an SGI IRIX 6.5 Origin 200.  I
> : > > keep getting the following message:
> : > > 
> : > > test.c: In function `main':
> : > > test.c:4: warning: return type of `main' is not `int'
> : > > ld32: FATAL 9: I/O error (/usr/lib32/mips3/crt1.o): No such file or
> : > > directory
> : > > collect2: ld returned 32 exit status
> : > > 
> : > > How can I fix this?!!
> : > 
> : > First of all, do you have dev.sw.lib installed on your
> : > Origin (versions | grep crt1)?
> 
> : Should have been 'versions long | grep crt1'
> 
> 	I _occasioanally_ use Irix, and so I h=just have to know if
> you guys are just yanking his chain, or if there really is a problem
> with the linker? I mean, the most obvious reason for the message he
> posted is that he sucked up some crufty old DOS code with void main()
> in it, right? Only after checking for something that obvious would I
> go looking for subtle stuff...

At first glance maybe, but if you look carefully you'll see
that the "void main()" problem is only a warning and
therefore wouldn't cause the compile/link to fail.  The
reason the link failed is because the linker couldn't find
crt1.o, which is in the dev.sw.lib package.




More information about the Gcc-help mailing list