This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc will not build


On Mar 27, 2000, bryanh@giraffe-data.com (Bryan Henderson) wrote:

>>> /usr/bin/binutils/ld: cannot open crt1.o: No such file or directory
>> 
>> This file is not part of GCC.  You need glibc-devel to get it.

> But it is apparently not where the Make needs it to be.

It is not `make' that needs it, it is the linker that does.

> Regular compiles access this file via the path specified in my gcc
> specs file.  Make in this case is intentionally using a specs file of
> its own creation which does not include the path to this file (or to
> anything else that it needs).

Of course.  Remember, you're building a new compiler, and the new
compiler needs a new specs file.  So its build process does indeed
create it.

> So where is the error?

It's in the fact that crt1.o isn't in places GCC searches by default.

> Is Make using the wrong specs file?

No, make doens't use specs files, GCC does, it's using the right one,
i.e., the one created as part of its build process.

> Did it create a wrong specs file?

I'd say it created an incomplete specs file, because it failed to
include the non-standard directory in which your crt1.o lives.  But
then, it's not supposed to do it anyway.

> Have I failed to tell the build process where my libc stuff is?

Yep, but I don't think there's any standard way to do it.

> Or is there some location requirement for crt1.o that I haven't met?

Yep, I think that's the right answer (or should I say question? :-)

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]