public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* $prefix/lib/../$target/sys-include not in <> search path
@ 2007-12-10 23:28 Hans-Peter Nilsson
  2007-12-11  5:29 ` Hans-Peter Nilsson
  0 siblings, 1 reply; 2+ messages in thread
From: Hans-Peter Nilsson @ 2007-12-10 23:28 UTC (permalink / raw)
  To: gcc

When configured with just a --prefix=x and --target=y,
$prefix/lib/../$target/sys-include used to be searched, for e.g.
limits.h, stdio.h and stdlib.h.  No $prefix-rooted path shows
up as a "ignoring nonexistent directory" message either.

I don't know when this changed, but it doesn't seem like a
deliberate change.  Or at least, not an improvement.

I'll open a PR if I can't resolve this.

brgds, H-P

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: $prefix/lib/../$target/sys-include not in <> search path
  2007-12-10 23:28 $prefix/lib/../$target/sys-include not in <> search path Hans-Peter Nilsson
@ 2007-12-11  5:29 ` Hans-Peter Nilsson
  0 siblings, 0 replies; 2+ messages in thread
From: Hans-Peter Nilsson @ 2007-12-11  5:29 UTC (permalink / raw)
  To: gcc

On Mon, 10 Dec 2007, Hans-Peter Nilsson wrote:
> When configured with just a --prefix=x and --target=y,
> $prefix/lib/../$target/sys-include used to be searched, for e.g.
> limits.h, stdio.h and stdlib.h.  No $prefix-rooted path shows
> up as a "ignoring nonexistent directory" message either.
>
> I don't know when this changed, but it doesn't seem like a
> deliberate change.  Or at least, not an improvement.
>
> I'll open a PR if I can't resolve this.

I wouldn't call it a resolution, but it seems an installed
toolchain will work.  Equivalently:
 mkdir -p $prefix/lib/gcc/$target/$gcc_version e.g.
 mkdir -p $prefix/lib/gcc/cris-axis-linux-gnu/4.3.0
should let gcc find $prefix/sys-include, because it wants to go
back and forth:
 $prefix/lib/gcc/cris-axis-linux-gnu/4.3.0/../../../../cris-axis-linux-gnu/sys-include

IIRC it used to be this bad, then something or other changed to
let it find $prefix/sys-include without the intermediate
directories, and now it's bad again.  (Bad in that I have to
write into $prefix in order to test, and have to keep a
$gcc_version directory there.)

Or perhaps better hack the testsuite to add a -idirafter or
something.  Suggestions welcome.  Except "use buildroot" (not
even sure it'd help).

brgds, H-P

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-11  3:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-10 23:28 $prefix/lib/../$target/sys-include not in <> search path Hans-Peter Nilsson
2007-12-11  5:29 ` Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).