Cross-compiled GCC 6.1.0 has "../lib" instead of "/usr/lib" in -print-search-dirs output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've cross compiled GCC 6.1.0 (target/build is mips, host is x86_64).
The resulting compiler will not run as it cannot find cc1, because the
search dirs are incorrect; they are prefixed with "../lib" instead of
"/usr/lib" (eg instead of /usr/lib/gcc/mips-linux-musl/6.1.0/ ..., the
path is ../lib/gcc/mips-linux-musl/6.1.0/ ...).

This issue appears to have been introduced by a change somewhere
between GCC 5 and GCC 6, as I used to have a working build with GCC 5.
Unfortunately, I neglected to test more recent builds...

I may well have configured something wrong. I've attached the build
log and the PKGBUILD, which contains the configure command used.
Hopefully someone can spot my mistake :)

If the problem is not a configuration mistake, where would I look to
find out what could be the issue? Where does the GCC build process
determine/set what the search dirs should be?

Regards,
Alastair Hughes

Attachment: packages_gcc.log.gz
Description: GNU Zip compressed data

Attachment: PKGBUILD
Description: Binary data


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux