Date: Wed, 01 Nov 2000 09:34:28 +0800 From: Terry Dwyer <tdwyer@bigpond.com> To: obrien@freebsd.org Cc: stable@freebsd.org Subject: Re: make installworld fix with new crtstuff - Problem solved Message-ID: <39FF7324.5F99FB75@bigpond.com> References: <39FEA83E.11B7D951@bigpond.com> <20001031045225.B84494@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
First off, Thanks to the people who offered helpful suggestions.
I am always amazed how quickly problems get sorted out with
FreeBSD. Support is not so good for the commercial NOSes I
have to use and deploy at work. 8-(
David and Max, who both pointed out that /usr/src/gnu/lib/csu/
should contain _only_ a Makefile, this fixed my problem.
Thank you _very_ much
I think my problems were caused initially because I trusted the
conditional statement "make buildworld && make installworld"
Monday morning, about 7:30AM Australian WST +8, when this problem
first appeared, I did a cvsup and built and installed world. It
now looks as though a non-fatal error allowed the buildworld to
complete and the subsequent installworld hosed my system. Right
up until Tuesday afternoon, I have had the same problems - the
cause being the two source files in the csu directory.
I would have thought that by tuesday afternoon and many more
cvsups, these would not have existed and been a problem,
because early afternoon, I renamed my source tree and replaced
/usr/src and /usr/obj with known good trees compiled on my
son's machine. After doing a make installworld to get my
hosed system back, I did another cvsup. A subsequent
make buildworld must have re-populated the csu directory
with the file and link which should not have been there.
At this stage, the buildworld failed at "building libraries"
I wish this had been the case Monday morning.
Since Tuesday afternoon when Max Kohn pointed out the change
necessary to /usr/src/gnu/lib/Makefile, which David committed,
these files have hung around, frustrating my attempts to make
buildworld.
Only now, since both Max and David emailed me to tell me to
remove the .c file and link present in the csu directory,
have I been able to buildworld.
The buildworld has now passed "Stage 4: building libraries"
significantly, it has sucsseded building /usr/src/gnu/lib/csu/
where it was failing, and is proceding normally.
Again, Thanks to all the people who offered help and advice.
Regards,
Terry
David O'Brien wrote:
>
> On Tue, Oct 31, 2000 at 07:08:46PM +0800, Terry Dwyer wrote:
> > cd /usr/src/gnu/lib/csu; make depend; make all; make
> > install
> > rm -f
> > .depend
> > mkdep -f .depend -a
> > -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I. -DIN_GCC
> > -I/usr/obj/usr/src
> > cd /usr/src/gnu/lib/csu; make
> > _EXTRADEPEND
> > cc -O -pipe -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I.
> > -DIN_GCC -finhibit-size-directive -fn
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> this is missing important parts of the invocation that I need to see.
>
> > Directory contents:
> >
> > -rw-r--r-- 1 root wheel 1963 31 Oct 14:17 Makefile
> > -rw-r--r-- 1 root wheel 20861 31 Oct 08:20 crtbegin.c
> > lrwxr-xr-x 1 root wheel 52 31 Oct 08:20 crtend.c ->
> > /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
> >
> > Is this link supposed to be here?
>
> EGADS!! Rev 1.1.2.2, which you must have tried to use at some point (ie,
> before I committed 1.1.2.4) was one of the ways I implemented the Makefile
> and didn't like. How in the world did I manage to commit that one??
> Sigh, too many source trees on more than one machine...
>
> Anyway, yep, that's the problem if your compiler line (the part that is
> missing) matches the output I just saw posted.
>
> Remove that bogus link ("crtend.c) and file ("crtbegin.c").
>
> --
> -- David (obrien@FreeBSD.org)
> GNU is Not Unix / Linux Is Not UniX
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39FF7324.5F99FB75>
