|
From: l1ewkj <li...@ya...> - 2014-07-31 06:18:53
|
Hi,
The currently released versions of gcc-4.8 was built without bootstrapping.
4.8.1 has "--disable-bootstrap" in configure.
4.8.2 is cross-built from Linux. According to GCC installation,
bootstrapping is not possible when building cross compiler.
I was able to bootstrap gcc-4.8.3 after applying only the patch below using
configure line as:
$ ../gcc-4.8.3/configure --enable-languages=c,c++ --disable-sjlj-exceptions
--enable-shared --enable-libgomp --disable-win32-registry
--enable-libstdcxx-debug --enable-version-specific-runtime-libs
--build=mingw32 --prefix=/mingw --with-system-zlib
--- org/Makefile.in 2014-07-30 22:11:06 -0700
+++ gcc-4.8.3/Makefile.in 2014-07-30 22:13:10 -0700
@@ -236,7 +236,7 @@ POSTSTAGE1_CXX_EXPORT = \
# Override the above if we're bootstrapping C++.
POSTSTAGE1_CXX_EXPORT = \
CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
- -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++
\
+ -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/lib/ -nostdinc++
\
-B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
-B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR)
\
@@ -252,7 +252,7 @@ POSTSTAGE1_CXX_EXPORT = \
POSTSTAGE1_HOST_EXPORTS = \
$(HOST_EXPORTS) \
CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
- -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
+ -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/lib/ \
$(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
$(POSTSTAGE1_CXX_EXPORT) \
--
View this message in context: http://mingw.5.n7.nabble.com/Fix-for-gcc-4-8-3-bootstrap-failure-with-mingw32-native-compiler-tp33639.html
Sent from the MinGW - User mailing list archive at Nabble.com.
|