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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to