This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: latest snapshot won't find C++ header files
- To: richard dot earnshaw at arm dot com
- Subject: Re: latest snapshot won't find C++ header files
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Mon, 12 Oct 1998 11:49:08 +0200 (MET DST)
- Cc: law at cygnus dot com, oliva at dcc dot unicamp dot br, egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com, rearnsha at sun52 dot arm dot com
- References: <13856.36883.998239.234080@saturn.hollstein.net> <199810120929.KAA10079@sun52.NIS.cambridge>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
On Mon, 12 October 1998, 10:29:26, rearnsha@arm.com wrote:
>
> manfred@s-direktnet.de said:
> > 2. The second problem arises from the fact, that, provided you're
> > building
> > a *new* snapshot, $(libsubdir) usually *does not already* exist!
> > If
> > now $(libsubdir)/$(unlibsubdir) with unlibsubdir=../../.. is used
> > to
> > locate "as", "ld", "include" (did I miss anything?), the just
> > built
> > "xgcc" will simply fail and revert to its "second" default, e.g.
> > using
> > "/usr/ccs/bin/as" on HP-UX or Solaris. Creating an empty
> > $(libsubdir)
> > before "make bootstrap" would cure this, but simply adding
> > "-B${exec_prefix}/${target}/bin" to the appropriate ..._CFLAGS
> > might
> > be the better solution (again, this is, what Alexandre suggested
> > in his
> > email).
>
> It might solve the binaries problem, but I can't see how this would solve
> the includes problem.
The "-B..." wasn't intended to solve the includes problem; that's a
different problem, which has (at least partially) been solved by
Alexandre's latest patch.
> Also, I wasn't aware that -B options were additive
> (ie you could have more than one): if this is the case (that they aren't)
> then the -B must be set to the current build directory during the compile
> process, so that xgcc can find the correct cc1.
They are additive.
>
> Another solution might be to have code to translate .../foo/../b into
> .../b if the initial lookup fails -- this code might also be problematic
> because it won't respect symlinks.
>
> Richard.
>
manfred