Fix for gcc-4.8.3 bootstrap failure with mingw32 native compiler

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Fix for gcc-4.8.3 bootstrap failure with mingw32 native compiler


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/     2014-07-30 22:11:06 -0700
+++ gcc-4.8.3/       2014-07-30 22:13:10 -0700
@@ -236,7 +236,7 @@ POSTSTAGE1_CXX_EXPORT = \
 # Override the above if we're bootstrapping C++.
        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 \
@@ -252,7 +252,7 @@ POSTSTAGE1_CXX_EXPORT = \
        $(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; \

View this message in context:
Sent from the MinGW - User mailing list archive at

Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:[hidden email]?subject=unsubscribe