target=sh-elf build error
Nick Clifton
nickc@redhat.com
Tue Dec 27 16:45:00 GMT 2005
Hi Anders,
>> 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
>
> Thinking about this some more, I would guess that flat_bl.m is attempted
> to be compiled with GCC has something to do with *.m being the default
> extension for Objective-C. Disabling gprof from configure lets the build
> complete, but I have no idea on how to fix the actual problem.
The Makefile in your gprof build directory should contain a rule to
translate this flat_bl.m file into a flat_bl.c file, which is then
compiled as normal. For some unknown reason it would appear that this
.m to .c translation step is not taking place. Perhaps it has something
to do with the version of make that you are using ?
Cheers
Nick
More information about the Binutils
mailing list