[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[oc] compile OR1k's binutils error messages...






Hi ALL,

While I compile OR1k's binutils, and use
% ../binutils-2.9.1/configure --srcdir=../binutils-2.9.1/
--prefix=/home/jimmy87/Work/gz/or1k/egcs-1.1.2/or1-coff --target=or1-coff

then

%make all

I got the following errors! I could not solve it even when I modify Makefile to
let - become _ defined
in EMULATION_OFILES= eor1-unknown.o,

My system is
SunOS plusy 5.6 Generic_105181-19 sun4u sparc SUNW,Ultra-60

Could somebody help me figure it out?
Jimmy

------------------------------------------
mv ldemul-tmp.h ldemul-list.h
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.9.1/ld -I. -D_GNU_SOURCE -I.
-I../../binutils-2.9.1/ld -I../bfd -I../../binutils-2.9.1/ld/../bfd
-I../../binutils-2.9.1/ld/../include  -g -O2  -g -O2 -c
../../binutils-2.9.1/ld/ldemul.c
In file included from ../../binutils-2.9.1/ld/ldemul.c:30:
ldemul-list.h:2: parse error before `-'
../../binutils-2.9.1/ld/ldemul.c:223: `ld_or1' undeclared here (not in a
function)
../../binutils-2.9.1/ld/ldemul.c:223: `unknown_emulation' undeclared here (not
in a function)
../../binutils-2.9.1/ld/ldemul.c:223: initializer element for `ld_emulations[0]'
 is not constant
make[1]: *** [ldemul.o] Error 1
make[1]: Leaving directory `/home/jimmy87/Work/gz/or1k/egcs-1.1.2/or1-coff/ld'
make: *** [all-ld] Error 2
79.78u 21.05s 3:51.05 43.6%