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

l1ewkj
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.

------------------------------------------------------------------------------
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.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe