[PATCH][DRIVER] Wrong C++ include paths when configuring with "--with-sysroot=/"
Pavel Kopyl
p.kopyl@samsung.com
Mon Apr 20 17:07:00 GMT 2015
Hi all,
To build a GCC-4.9.2 ARM cross-compiler for my setting I need to
configure it with "--with-sysroot=/
--with-gxx-include-dir=/usr/include/c++/4.9.2".
But I found that gcc driver removes the leading slash from resulting paths:
`gcc -print-prog-name=cc1plus` -v
...
ignoring nonexistent directory "usr/include/c++/4.9.2" <- HERE
ignoring nonexistent directory
"usr/include/c++/4.9.2/armv7l-tizen-linux-gnueabi" <- AND HERE
ignoring nonexistent directory "usr/include/c++/4.9.2/backward" <- AND HERE
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/armv7l-tizen-linux-gnueabi/4.9.2/include
/usr/local/include
/usr/lib/gcc/armv7l-tizen-linux-gnueabi/4.9.2/include-fixed
/usr/include
It's also reproducible on trunk.
Attached patch fixes this bug.
Thanks,
Pavel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_include_paths.patch
Type: text/x-patch
Size: 2099 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150420/75764cce/attachment.bin>
More information about the Gcc-patches
mailing list