This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
target=sh-elf build error
- From: Anders Montonen <Anders dot Montonen at helsinki dot fi>
- To: binutils at sourceware dot org
- Date: Fri, 9 Dec 2005 15:40:34 +0200
- Subject: target=sh-elf build error
Hi!
When trying to build a toolchain for the sh-elf target, the build
stops with the following error message:
gcc -DHAVE_CONFIG_H -I. -I../../src/gprof -I. -D_GNU_SOURCE -DDEBUG -
I../bfd -I../../src/gprof/../include -I../../src/gprof/../bfd -I../../
src/gprof/../intl -I../intl -I. -DLOCALEDIR="\"/Users/anders/local/
share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -
Werror -g -O2 -c ../../src/gprof/mips.c
gcc -g -O2 -c -o flat_bl.o ../../src/gprof/flat_bl.m
../../src/gprof/flat_bl.m:2: error: parse error before '%' token
make[4]: *** [flat_bl.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-gprof] Error 2
make: *** [all] Error 2
The host is powerpc-apple-darwin8.3.0 (OS X 10.4.3) with the latest
Xcode tools installed. The build was configured as
$ ../src/configure --prefix=/Users/anders/local --target=sh-unknown-
elf --disable-nls
The error occurs both with the 2.16.1 release and CVS sources. I have
managed to successfully build a similarly configured arm-linux
toolchain, so I think my setup should be OK.
All suggestions appreciated!
Regards,
Anders Montonen