This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: target=sh-elf build error


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]