This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: $(build_tooldir)/lib (was Re: http://gcc.gnu.org/ml/gcc-patches/2000-05/msg01104.html)
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: $(build_tooldir)/lib (was Re: http://gcc.gnu.org/ml/gcc-patches/2000-05/msg01104.html)
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 21 Jul 2000 10:53:54 -0700
- Cc: jason at redhat dot com, wilson at cygnus dot com, aoliva at cygnus dot com,gcc-patches at gcc dot gnu dot org, binutils at sourceware dot cygnus dot com
- References: <20000520093135A.mitchell@codesourcery.com> <orhfbt9nwh.fsf@tamanduatei.dcc.unicamp.br> <20000520095133R.mitchell@codesourcery.com> <20000520220957.A25977@valinux.com> <200005222255.PAA26407@wilson.cygnus.com> <u9puo728zl.fsf_-_@casey.soma.redhat.com> <20000721074920.A9966@lucon.org> <200007211746.KAA00571@localhost.cygnus.com>
On Fri, Jul 21, 2000 at 10:46:30AM -0700, Geoff Keating wrote:
> > Date: Fri, 21 Jul 2000 07:49:20 -0700
> > From: "H . J . Lu" <hjl@lucon.org>
>
> > Exactly. BTW, you won't see it if you use newlib. It is too bad not
> > many people use glibc for cross compiling instead of newlibc. At least,
> > they don't maintain gcc :-(. It is a fun to build a complete cross
> > compiler from Linux/ia32 to Linux/ia64 :-). You will see a few build
> > problems.
>
> Actually, at Red Hat we cross-compile to various versions of linux all
> the time, and our release engineering people don't see any particular
> problems that would be fixed by this patch.
Well, it starts all over again :-). When you build the Linux cross
compiling environment, which includes gcc, ld, as, libiberty and
libstdc++ in one pass, how do you find the crt files under
$(build_tooldir)/lib? They are needed at least by the target version
of libiberty. Gcc finds them by
$(prefix)/lib/gcc-lib/cpu-vendor-os/version/../../../../cpu-vendor-os/lib
When you build the new verion of the compiler the first time,
$(prefix)/lib/gcc-lib/cpu-vendor-os/version
may not exist. Gcc won't find those crt files and the build will fail
at least in the target version of libiberty. That is what
-B$(build_tooldir)/lib/ is used for.
H.J.