On Fri, May 25, 2012 at 11:36 AM, NightStrike <[email protected]> wrote:
> Under what conditions does it fail? We use it daily at mingw-w64.
>
> On Fri, May 25, 2012 at 2:33 PM, H.J. Lu <[email protected]> wrote:
>> When --with-sysroot is used to configure gcc, build will usually fail
>> if --with-build-sysroot isn't set. Should --with-build-sysroot be set to
>> the same value as --with-sysroot by default if --with-sysroot is used?
>>
I am building GCC 4.7 with sysroot at /usr/gcc-x32-4.7/x86_64-linux
to support i386, x86-64 and x32. I configured GCC 4.7 with
--target=x86_64-linux \
--enable-languages=c,c++,fortran --with-demangler-in-ld --enable-initfin
i-array --with-multilib-list=m32,m64,mx32 \
\
--with-sysroot=/usr/gcc-x32-4.7/x86_64-linux \
--prefix=/usr/gcc-x32-4.7 \
--with-local-prefix=/usr/local
Build fails when compiling libgcc since ./gcc/xgcc -B.../gcc/ can't
find stdio.h. After adding --with-build-sysroot=/usr/gcc-x32-4.7/x86_64-linux,
it builds fine.
--
H.J.