Use GCC 4.7.3 to fix bizarre crash on accessing base class data from a derived class...
authorCarl Hetherington <cth@carlh.net>
Sun, 8 Sep 2013 21:06:06 +0000 (22:06 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 8 Sep 2013 21:06:06 +0000 (22:06 +0100)
build_all
build_binutils.sh
build_gcc_core.sh
clean

index 6e5031d..384e75d 100755 (executable)
--- a/build_all
+++ b/build_all
@@ -2,8 +2,9 @@
 
 export MINGW_PARALLEL="-j4"
 export MINGW_BUILD=x86_64-pc-linux-gnu
+export MINGW_GCC_VERSION=4.7.3
 
-export MINGW_PREFIX=/mingw/32
+export MINGW_PREFIX=/opt/mingw/32
 export MINGW_TARGET=i686-w64-mingw32
 
 bash build_binutils.sh
@@ -13,7 +14,7 @@ bash build_mingw_runtime.sh
 bash build_gcc_rest.sh
 bash build_gdb.sh
 
-export MINGW_PREFIX=/mingw/64
+export MINGW_PREFIX=/opt/mingw/64
 export MINGW_TARGET=x86_64-w64-mingw32
 
 bash build_binutils.sh
index dc97c16..01ff936 100644 (file)
@@ -1,9 +1,9 @@
 #!/bin/bash -e
 
-tar xzf Archives/binutils-2.23.tar.gz
+tar xjf Archives/binutils-2.23.2.tar.bz2
 mkdir -p binutils-build-$MINGW_TARGET
 cd binutils-build-$MINGW_TARGET
-../binutils-2.23/configure --with-sysroot=$MINGW_PREFIX --prefix=$MINGW_PREFIX --disable-multilib -target=$MINGW_TARGET --enable-targets=$MINGW_TARGET 
+../binutils-2.23.2/configure --with-sysroot=$MINGW_PREFIX --prefix=$MINGW_PREFIX --disable-multilib -target=$MINGW_TARGET --enable-targets=$MINGW_TARGET 
 make $MINGW_PARALLEL
 sudo make install
 
index 0288d91..fe5107c 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash -e
 
-tar xjf Archives/gcc-4.7.2.tar.bz2
+tar xjf Archives/gcc-$MINGW_GCC_VERSION.tar.bz2
 mkdir -p gcc-build-$MINGW_TARGET
 cd gcc-build-$MINGW_TARGET
-../gcc-4.7.2/configure --with-sysroot=$MINGW_PREFIX --prefix=$MINGW_PREFIX --disable-multilib --target=$MINGW_TARGET --with-gnu-ld --with-gnu-as --enable-fully-dynamic-string
+../gcc-$MINGW_GCC_VERSION/configure --with-sysroot=$MINGW_PREFIX --prefix=$MINGW_PREFIX --disable-multilib --target=$MINGW_TARGET --with-gnu-ld --with-gnu-as --enable-fully-dynamic-string
 make $MINGW_PARALLEL all-gcc
 sudo make install-gcc
diff --git a/clean b/clean
index 4d78a88..6817115 100755 (executable)
--- a/clean
+++ b/clean
@@ -1,9 +1,10 @@
 #!/bin/bash -e
 
 rm -rf binutils-2.23
+rm -rf binutils-2.23.2
 rm -rf binutils-build-i686-w64-mingw32
 rm -rf binutils-build-x86_64-w64-mingw32
-rm -rf gcc-4.7.2
+rm -rf gcc-4.7.3
 rm -rf gcc-build-i686-w64-mingw32
 rm -rf gcc-build-x86_64-w64-mingw32
 rm -rf mingw-headers-build-i686-w64-mingw32