This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Should --with-build-sysroot be default to --with-sysroot?

On Fri, May 25, 2012 at 11:36 AM, NightStrike <> 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 <> 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 \

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]