I added the option '--with-newlib' to configure command and tried to run the build again. But still I am getting the same errors. Regards, Harshal On Tue, Mar 5, 2019 at 10:46 AM Harshal Singhal <hrshl90@xxxxxxxxx> wrote: > Hello, > > I am trying to cross compile GCC 4.6.2 on cygwin terminal (32-bit) on > windows 10 (64-bit). The GCC version installed on Cygwin is 4.7.3 (to have > better compatibility). > These are the steps, I used to cross compile the GCC: > > # setting of variables > export PREFIX="$HOME/opt/cross" > export TARGET=i686-elf > export PATH="$PREFIX/bin:$PATH" > export sysroot="$HOME/sysroot" > export host=i686-pc-linux-gnu > > #Binutils > ../binutils-2.22/configure --target=$TARGET --prefix=$PREFIX > --with-sysroot=$sysroot --disable-nls --disable-werror --disable-multilib > make > make install > > #GCC > ../gcc-8.3.0/configure --target=$TARGET --prefix="$PREFIX" --disable-nls > --enable-languages=c,c++ --without-headers --disable-werror > --disable-multilib > make all-gcc (FAILED !!) > > While making for GCC without headers (1st part of GCC), I am getting the > following errors - > checking whether read-only mmap of a plain file works... yes > checking whether mmap from /dev/zero works... no > checking for MAP_ANON(YMOUS)... yes > checking whether mmap with MAP_ANON(YMOUS) works... no > checking whether to enable maintainer-specific portions of Makefiles... no > configure: updating cache ../config.cache > configure: creating ./config.status > config.status: creating Makefile > config.status: creating mkheaders.almost > config.status: creating config.h > make[1]: Entering directory > '/home/MyPC/src/build-gcc/build-i686-pc-cygwin/fixincludes' > gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute > -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. > -I../../../gcc-4.6.2/fixincludes -I../include > -I../../../gcc-4.6.2/fixincludes/../include > ../../../gcc-4.6.2/fixincludes/fixincl.c > gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute > -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. > -I../../../gcc-4.6.2/fixincludes -I../include > -I../../../gcc-4.6.2/fixincludes/../include > ../../../gcc-4.6.2/fixincludes/fixtests.c > gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute > -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. > -I../../../gcc-4.6.2/fixincludes -I../include > -I../../../gcc-4.6.2/fixincludes/../include > ../../../gcc-4.6.2/fixincludes/fixfixes.c > In file included from ../../../gcc-4.6.2/fixincludes/system.h:33:0, > from ../../../gcc-4.6.2/fixincludes/fixlib.h:29, > from ../../../gcc-4.6.2/fixincludes/fixfixes.c:52: > /usr/include/stdio.h: In function ‘_putchar_unlocked’: > /usr/include/stdio.h:687:22: error: inlining failed in call to > always_inline ‘__sputc_r’: recursive inlining > /usr/include/stdio.h:690:14: error: called from here > /usr/include/stdio.h: In function ‘format_fix’: > /usr/include/stdio.h:687:22: error: inlining failed in call to > always_inline ‘__sputc_r’: function not considered for inlining > /usr/include/stdio.h:690:14: error: called from here > /usr/include/stdio.h:687:22: error: inlining failed in call to > always_inline ‘__sputc_r’: recursive inlining > /usr/include/stdio.h:690:14: error: called from here > /usr/include/stdio.h:687:22: error: inlining failed in call to > always_inline ‘__sputc_r’: recursive inlining > /usr/include/stdio.h:690:14: error: called from here > make[1]: *** [Makefile:76: fixfixes.o] Error 1 > make[1]: Leaving directory > '/home/MyPC/src/build-gcc/build-i686-pc-cygwin/fixincludes' > make: *** [Makefile:3228: all-build-fixincludes] Error 2 > > Does anybody has any idea, why this error is occuring ? > I also added "CXXFLAGS=-msse4.1" in Configure command in gcc, But it > doesn't help. > > > -- > Regards > Harshal > -- Regards Harshal Singhal