Truble Building tools for 4.6.4

Angelo Fraietta newsgroups at
Thu Feb 23 01:52:08 UTC 2006

Greetings all

I am attempting to make a document to enable people to build RTEMS 4.6.4 
using source on my intended CD

I am unable to get binutils to build on a Linux Fedora Core 4 (I am 
using the sources on a disk)

It all works fine on my Mac OSX machine, but on the linux machine it 
will not compile.
These are the steps

bzcat  binutils- | tar xf -
bzcat gcc-3.2.3.tar1.bz2 | tar xf -
zcat newlib-1.11.0.tar.gz | tar xf -

cd  gcc-3.2.3
rm -rf newlib
ln -s ../newlib-1.11.0/newlib newlib
cd ..

cd gcc-3.2.3
patch -p1 <../gcc-3.2.3*.diff
cd ..

cd gcc-3.2.3
patch -p1 <../gcc-3.2.3*.diff
cd ..

rm -rf build
mkdir build
cd build

rm -rf build
mkdir build
cd build

../binutils- --target=i386-rtems --prefix=/opt/rtems

make -w all install

This is where it failes (I have tried gmake also)

rm -f as.pod
gmake[3]: Leaving directory `/home/angelo/rtems/build/gas/doc'
Making all in po
gmake[3]: Entering directory `/home/angelo/rtems/build/gas/po'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/home/angelo/rtems/build/gas/po'
gmake[3]: Entering directory `/home/angelo/rtems/build/gas'
gcc -DHAVE_CONFIG_H -I. -I../../binutils- -I. -D_GNU_SOURCE 
-I. -I..
/../binutils- -I../bfd -I../../binutils- 
binutils- -I../../binutils- 
ls- -I../../binutils- -I../intl 
IR="\"/opt/rtems/share/locale\""   -W -Wall -Wstrict-prototypes 
ypes -g -O2 -c ../../binutils-
In file included from ./targ-cpu.h:1,
                  from ../../binutils-,
                  from ./obj-format.h:1,
                  from ../../binutils-,
                  from ./targ-env.h:1,
                  from ../../binutils-,
                  from ../../binutils-
../../binutils- error: array type has 
te element type
gmake[3]: *** [app.o] Error 1
gmake[3]: Leaving directory `/home/angelo/rtems/build/gas'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/angelo/rtems/build/gas'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory `/home/angelo/rtems/build/gas'
gmake: *** [all-gas] Error 2
gmake: Leaving directory `/home/angelo/rtems/build'
[root at WERBSERVER build]#

Ilaso tried patching with binutils-, but 
still the same

Works fine on my OSX machine, however I want it to be accessible to 
Linux users. I don't have time to go for a different version. Any ideas 
or a patch that might work?

If I can't get it going, I am going to have to say it only worked on my 
OSX machine (which is a bad reflection on RTEMS)
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page

There are those who seek knowledge for the sake of knowledge - that is 
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
     Bernard of Clairvaux (1090 - 1153)

More information about the users mailing list