svn commit: r300770 - in head: . contrib/libc++/include contrib/libc++/include/experimental contrib/libc++/include/ext contrib/libc++/src contrib/libc++/src/include contrib/libc++/src/support lib/l...
Bryan Drewery
bdrewery at FreeBSD.org
Tue Jun 14 04:51:39 UTC 2016
On 5/27/16 9:19 AM, Dimitry Andric wrote:
> This is most likely caused by the option:
>
> -isystem /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include
>
> because that forces this path to become before any auto-detected system
> include directory. Note that this option is not needed, since the other
> option:
>
> --sysroot=/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32
>
> is already taking care of adding the right include directories. It even
> warns about the duplicate directory:
>
> ignoring duplicate directory
> "/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include"
Argh, I wish GCC cross-compiler wasn't so dumb. It does require
-isystem despite --sysroot. It's working currently due to a mistake of
having X_COMPILER_TYPE set even for native GCC builds.
This is just a reminder that GCC --sysroot is not nearly as useful and
obvious as clang's. I'm unwinding some bugs from this and other related
X_COMPILER changes.
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20160613/8fac895f/attachment.sig>
More information about the svn-src-head
mailing list