https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125593
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #6 from Drea Pinski <pinskia at gcc dot gnu.org> ---
"/usr/bin and /usr/lib are symlinks to /bin and /lib, respectively"
But then when GCC looks where it is installed, it is in /bin rather than
/usr/bin. This means the prefix it will be searching is / rather rather than
/usr.
Which it search first:
stat("/bin/../libexec/gcc/x86_64-linux-musl/14.3.0/cc1", 0x7ffee011cec0) = -1
ENOENT (No such file or directory)
and you don't have a /libexec which is symlinked to /usr/libexec.
Basically this comes down to your prefix was /usr but then you installed it as
`/`.
This is not a bug in GCC's configure, this is how gcc works with respect to
relocatability of the installation.