Yet more MinGW Build Issues

Chris Johns chrisj at rtems.org
Thu Oct 21 09:15:24 UTC 2010


On 21/10/10 12:24 AM, Sam Lost wrote:
> I would be happy to use 4.10 however, the link given in the following
> document is incorrect:

Ok lets work on 4.10.

> http://www.rtems.com/onlinedocs/doc-current/share/rtems/html/started/started00054.html

That could be true. Things have changed and the documentation has not 
been updated. MinGW is changing the way you use it so lets work with the 
latest and get it into the list archive.

Head over to http://sourceforge.net/projects/mingw/files/.

Download mingw-get-inst-20100813.exe and run. I selected the C++ and 
MSYS Base System option in the "Select Components" section. You may need 
to scroll down to find "MSYS Basic System". It will open a cmd.exe box 
and then download most of the needed bits.

A missing package not downloaded is perl. Open the MSYS link on the 
MinGW file page and look for the latest perl version and download the 
bin lzma file. Open a MSYS shell. It is under "C:\MinGW\msys\1.0".

Enter these commands:

  $ cd /c/MinGW/msys/1.0
  $ cat ~/My\ 
Documents/Downloads/perl-5.6.1_2-2-msys-1.0.13-bin.tar.lzma | lzma -d | 
tar xvf -

Now edit "/etc/fstab" to have:

  $ cat /etc/fstab
  C:\MinGW\   /mingw
  c:\opt\     /opt

Note, this is c:\MinGW\msys\1.0\etc\fstab. It also assumes you have a 
directory c:\opt. If not please add.

Now download the prebuild tar files from the RTEMS ftp users (or a 
mirror) found here:

  http://www.rtems.org/ftp/pub/rtems/mingw32/4.10/

I will download the PowerPC target. The list is:

  rtems-4.10-powerpc-rtems4.10-binutils-2.20.1-3.tar.bz2
  rtems-4.10-powerpc-rtems4.10-gcc-4.4.5-2.tar.bz2
  rtems-4.10-powerpc-rtems4.10-gcc-c++-4.4.5-2.tar.bz2
  rtems-4.10-powerpc-rtems4.10-gcc-libgcc-4.4.5-2.tar.bz2
  rtems-4.10-powerpc-rtems4.10-gcc-libstdc++-4.4.5-2.tar.bz2
  rtems-4.10-powerpc-rtems4.10-newlib-1.18.0-17.tar.bz2

To installed, in the MSYS shell enter:

  $ cd /c
  $ cat ~/My\ 
Documents/Downloads/rtems-4.10-powerpc-rtems4.10-binutils-2.20.1-3.tar.bz2 
| bzip2 -d | tar xvf -
  $ cat ~/My\ 
Documents/Downloads/rtems-4.10-powerpc-rtems4.10-gcc-4.4.5-2.tar.bz2 | 
bzip2 -d | tar xvf -
  $ cat ~/My\ 
Documents/Downloads/rtems-4.10-powerpc-rtems4.10-gcc-c++-4.4.5-2.tar.bz2 
| bzip2 -d | tar xvf -
  $ cat ~/My\ 
Documents/Downloads/rtems-4.10-powerpc-rtems4.10-gcc-libgcc-4.4.5-2.tar.bz2 
| bzip2 -d | tar xvf -
  $ cat ~/My\ 
Documents/Downloads/rtems-4.10-powerpc-rtems4.10-gcc-libstdc++-4.4.5-2.tar.bz2 
| bzip2 -d | tar xvf -
  $ cat ~/My\ 
Documents/Downloads/rtems-4.10-powerpc-rtems4.10-newlib-1.18.0-17.tar.bz2 | 
bzip2 -d | tar xvf -

You also need to install the autoconf and automake packages.

  $ cd /c
  $ cat ~/My\ Documents/Downloads/rtems-4.10-autoconf-2.68-1.tar.bz2 | 
bzip2 -d | tar xvf -
  $ cat ~/My\ Documents/Downloads/rtems-4.10-automake-1.11.1-2.tar.bz2 | 
bzip2 -d | tar xvf -

Update your path and you should be able to build RTEMS from the 4.10 branch.

If you get a zlib dll error look in the MinGW bin directory for a zlib 
dll and copy it to the name the RTEMS tools reports. I will update this 
thread with that info when I see it.

Chris



More information about the users mailing list