Truble Building tools for 4.6.4

Angelo Fraietta newsgroups at smartcontroller.com.au
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-2.13.2.1.tar2.bz2 | 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-2.13.2.1/configure --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-2.13.2.1/gas -I. -D_GNU_SOURCE 
-I. -I..
/../binutils-2.13.2.1/gas -I../bfd -I../../binutils-2.13.2.1/gas/config 
-I../../
binutils-2.13.2.1/gas/../include -I../../binutils-2.13.2.1/gas/.. 
-I../../binuti
ls-2.13.2.1/gas/../bfd -I../../binutils-2.13.2.1/gas/../intl -I../intl 
-DLOCALED
IR="\"/opt/rtems/share/locale\""   -W -Wall -Wstrict-prototypes 
-Wmissing-protot
ypes -g -O2 -c ../../binutils-2.13.2.1/gas/app.c
In file included from ./targ-cpu.h:1,
                  from ../../binutils-2.13.2.1/gas/config/obj-elf.h:42,
                  from ./obj-format.h:1,
                  from ../../binutils-2.13.2.1/gas/config/te-generic.h:19,
                  from ./targ-env.h:1,
                  from ../../binutils-2.13.2.1/gas/as.h:614,
                  from ../../binutils-2.13.2.1/gas/app.c:30:
../../binutils-2.13.2.1/gas/config/tc-i386.h:530: error: array type has 
incomple
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-2.13.2.1-rtems-20030901.diff, 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


http://www.smartcontroller.com.au/~angelo/

There are those who seek knowledge for the sake of knowledge - that is 
CURIOSITY
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