https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
--- Comment #9 from Jonathan Wakely ---
It's possible the paths passed to -isystem should be prefixed with = when a
sysroot is in use, but prefixing them with $DESTDIR is definitely wrong.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
--- Comment #8 from Stas Sergeev ---
(In reply to Andrew Pinski from comment #7)
> Have you looked into --with-build-sysroot ?
Thanks! Very helpful.
But now it has the same problem when configuring libstdc++:
---
configure:4574:
/home/stas/src/b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
--- Comment #7 from Andrew Pinski ---
(In reply to Stas Sergeev from comment #4)
> (In reply to Harald van Dijk from comment #1)
> > The ways to handle libc being installed in non-standard locations depend on
> > your specific use case. GCC provi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
--- Comment #6 from Stas Sergeev ---
(In reply to Jonathan Wakely from comment #5)
> Which makes sense, since the system headers are not part of GCC itself, so
> why would it expect them in the temporary staging area for GCC's own files?
OK, I u
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
--- Comment #4 from Stas Sergeev ---
(In reply to Harald van Dijk from comment #1)
> The ways to handle libc being installed in non-standard locations depend on
> your specific use case. GCC provides the --with-sysroot and
> --with-native-system-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
--- Comment #3 from Stas Sergeev ---
(In reply to Harald van Dijk from comment #1)
> archive from the DESTDIR directory and extracting it elsewhere. It is not
> supposed to be used at configure time to pick up other software, only at
> install ti
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
--- Comment #2 from Jonathan Wakely ---
(In reply to Stas Sergeev from comment #0)
> Hello.
>
> I tried to build gcc with non-empty DESTDIR.
What exact commands did you run?
I don't see why DESTDIR should matter until the 'make install' step.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879
Harald van Dijk changed:
What|Removed |Added
CC||harald at gigawatt dot nl
--- Comment