This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: trunk gcc has problems finding crtbegin.o


Hi!

Thanks a lot for fixing that in such a speedy manner.

Philippe

Daniel Jacobowitz wrote:
> 
> On Thu, Jan 04, 2007 at 08:59:51AM -0500, Daniel Jacobowitz wrote:
> > On Thu, Jan 04, 2007 at 02:32:19PM +0100, Martin Reinecke wrote:
> > > /usr/bin/ld: crtbegin.o: No such file: No such file or directory
> > > collect2: ld returned 1 exit status
> > >
> > > This probably happens because the crt*.o files are no longer placed into
> > > <some path>/lib/gcc/i686-pc-linux-gnu/4.3.0/
> > > but rather into <some path>/lib/gcc/i686-pc-linux-gnu/.
> > > Is this related to the recent libgcc changes?
> >
> > Yes, it's my fault.  The last time I tested make install, they went to
> > the right place.  I'm building right now to find out what's gone wrong.
> 
> I'm not sure how I missed this before; apologies.  I've checked in this
> obvious fix.
> 
> Relating to what Mark was saying earlier: you can see that this assumes
> $(CC) (in the target directory) has the same version as ../gcc/xgcc.
> This is not the first place with that sort of assumption.  If you're
> building Canadian crosses, remember to use the same source tree to
> build the cross compiler and the cross-hosted compiler.  Anything
> else is just impossible to support.
> 
> --
> Daniel Jacobowitz
> CodeSourcery
> 
> 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
> 
>         * Makefile.in (version): Define.
> 
> Index: Makefile.in
> ===================================================================
> --- Makefile.in (revision 120429)
> +++ Makefile.in (working copy)
> @@ -181,6 +181,8 @@ export RANLIB_FOR_TARGET
>  export libsubdir
>  export slibdir
> 
> +version := $(shell $(CC) -dumpversion)
> +
>  DECNUMINC = -I$(srcdir)/../libdecnumber -I$(MULTIBUILDTOP)../../libdecnumber
> 
>  # Specify the directories to be searched for header files.


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