User forums > General (but related to Code::Blocks)

GCC-4.4.0-MinGW Binary

<< < (3/5) > >>

MortenMacFly:

--- Quote from: thomas on April 28, 2009, 09:43:04 pm ---Wish I was able to compile gcc... :(

--- End quote ---
Dunno - but did you (anyone) try:
http://sourceforge.net/project/shownotes.php?release_id=668578
???

thomas:
Here's the build script I made out of your step-by-step description. I probably didn't understand your instructions right, because it fails too. But then again, I've never seen a gcc build not fail... so that doesn't really mean anything.

--- Code: ---BINUTILS=$PWD/crossbinutils
BUILDDIR=$PWD/build

test -d $BUILDDIR || mkdir $BUILDDIR
test -d $BINUTILS || mkdir $BINUTILS


wget --timestamping --quiet \
     ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.4.0/gcc-4.4.0.tar.gz \
     http://www.mpfr.org/mpfr-current/mpfr-2.4.1.tar.gz \
     ftp://ftp.gmplib.org/pub/gmp-4.3.0.tar.gz

test -d gcc-4.4.0   || tar -zxf gcc-4.4.0.tar.gz
test -d mpfr-2.4.1  || tar -zxf mpfr-2.4.1.tar.gz
test -d gmp-4.3.0   || tar -zxf gmp-4.3.0.tar.gz


cd $BUILDDIR
../gcc-4.4.0/configure --target=i686-pc-mingw32 --prefix=$BINUTILS && make install


cd $BINUTILS
test -d i686-pc-mingw32 || mkdir i686-pc-mingw32
cd i686-pc-mingw32
wget --timestamping --quiet \
     http://switch.dl.sourceforge.net/sourceforge/mingw/mingwrt-3.15.2-mingw32-dev.tar.gz \
http://switch.dl.sourceforge.net/sourceforge/mingw/mingwrt-3.15.2-mingw32-dll.tar.gz \
     http://switch.dl.sourceforge.net/sourceforge/mingw/w32api-3.13-mingw32-dev.tar.gz
tar -zxf mingwrt-3.15.2-mingw32-dev.tar.gz
tar -zxf mingwrt-3.15.2-mingw32-dll.tar.gz
tar -zxf w32api-3.13-mingw32-dev.tar.gz


cd $BUILDDIR
export PATH=$BINUTILS/bin:$PATH


../gcc-4.4.0/configure --target=i686-pc-mingw32 --prefix=$BINUTILS && make install


../gmp-4.3.0/configure  --target=i686-pc-mingw32 --prefix=$BINUTILS && make install
../mpfr-2.4.1/configure --target=i686-pc-mingw32 --prefix=$BINUTILS && make install


../gcc-4.4.0/configure --host=i686-pc-mingw32 --target=i686-pc-mingw32 --prefix=/mingw \
   --enable-threads=win32 --disable-win32-registry \
                       --enable-languages=c,c++ --with-dwarf2 \
       --disable-bootstrap \
&& make

make DESTDIR=output install

--- End code ---
Before that, I had tried to build it following step by step what's on the gcc site using the MinGW32 cross-compiler that ships with Jaunty Jackalope (why build a cross-compiler if you have one already?). But you guessed it, it won't work :)
Of course the gcc instructions aren't helpful in any way anyway.

Martin: I've looked into the MinGW build script a few days ago, but it seemed that it was still for building 3.4.5 only (maybe I picked the wrong one too).

Biplab:
You are trying to build a cross-compiler (Host: Linux & Target: MinGW) before building a compatible BinUtils (Host: Linux & Target: MinGW). I believe that is the problem in your case.

Edit 1:
1) Build BinUtils (Host: Linux & Target: MinGW) and install.
2) Then add newly built <BinUtils-Path> to PATH.
3) Then start building cross-compiler. :)

thomas:
That doesn't work either, which is not surprising.

Biplab:

--- Quote from: thomas on May 01, 2009, 01:20:13 pm ---That doesn't work either, which is not surprising.

--- End quote ---

What is the failure message and which part does fail?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version