rtems-cvs toolchain working, virtex fix

Nigel Spon nigel at adi.co.nz
Thu Apr 24 02:59:15 UTC 2008


On 24/04/2008, at 12:54 AM, Alan Cudmore wrote:
> I updated my macports database:
> $ sudo port selfupdate
> and now I have the latest version of mpfr and gmp for building GCC  
> 4.3.0
> These libraries can be installed by using the command:
> $ sudo port install gmp mpfr
>
> When configuring the GCC source, you can specify the location where
> macports puts the libraries.
> --with-gmp=/opt/local --with-mpfr=/opt/local
>
> macports also has autoconf 2.61 and automake 1.10.1
>
> So OS X 10.4 users can get nearly anything they need by installing
> the packages from macports.
> I will be able to try building on 10.5 soon.
>

I tried this, but got the same flex error. So I took out the symlinks  
and went back to building seperately. I seem to have found the magic  
combo: the trick is to configure gmp with

./configure ABI=32

and mpfr with the CFLAGS settings gmp picks, which on my machine gives:

./configure CFLAGS="-m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8"

The standard make/make install puts the binaries in /usr/local/lib  
where the gcc build will find them.


 From there it was reasonably straightforward and I am pleased to  
report that I am now building gcc 4.3 successfully and have a working  
powerpc toolchain. I have built the virtex BSP, but had to fix a  
couple of things: in both libcpu/powerpc/ppc403/console/console405.c  
and libcpu/powerpc/ppc403/tty_drv/tty_drv.c

#include "../ictrl/ictrl.h"

should be:

#include "../irq/ictrl.h"

I look forward to being able to develop an up-to-date BSP for the  
PPC405...


---
"Next week, the tale of some English balloonists who ascended to a  
height of seven miles in 1862, without washing."

Michael Hamel
ADInstruments Ltd, Dunedin, NZ




More information about the users mailing list