This is the mail archive of the
mailing list for the GCC project.
Re: Should --with-build-sysroot be default to --with-sysroot?
On Fri, May 25, 2012 at 11:36 AM, NightStrike <email@example.com> 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 <firstname.lastname@example.org> 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
--enable-languages=c,c++,fortran --with-demangler-in-ld --enable-initfin
i-array --with-multilib-list=m32,m64,mx32 \
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.