http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51844
Sylpheed <typesylph at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |typesylph at gmail dot com
--- Comment #5 from Sylpheed <typesylph at gmail dot com> ---
Please try these patches for trunk(4.9.0).
1. gcc/gcc.c
line 2548
< if (sysroot_len > 0
---
> if (sysroot_len > 1
2. gcc/incpath.c
line 182
< if (sysroot_len > 0 && sysroot[sysroot_len - 1] == DIR_SEPARATOR)
---
> if (sysroot_len > 1 && sysroot[sysroot_len - 1] == DIR_SEPARATOR)
There patch is for 'host-compiling' with '--withsysroot=/'.
Anyother promrems defferent env('cross-compiling') the other problem may be.