LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   cross compiling for coldfire error (https://www.linuxquestions.org/questions/programming-9/cross-compiling-for-coldfire-error-4175539493/)

knobby67 04-12-2015 01:56 PM

cross compiling for coldfire error
 
Hi All,
I need to get a coff coldfire cross compiler working, I've searched the net but can't find one, links don't work ect.
So I decided to try to cross compile my own ( can't use buildroot as m68k not an option ).
I downloaded binutils, configured the tried to build using
Code:

./configure --prefix=/usr/local/m68kcoff --target=m68k-coff
make

However this produces a load of errors when I make ( config OK )
Code:

./config/tc-m68k.h:207:26: error: array type has incomplete element type
 extern struct relax_type md_relax_table[];
                          ^
Makefile:1886: recipe for target 'app.o' failed
make[3]: *** [app.o] Error 1
make[3]: Leaving directory '/home/tony/Downloads/M68k2/binutils-2.10.1/gas'
Makefile:1954: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/tony/Downloads/M68k2/binutils-2.10.1/gas'
Makefile:2124: recipe for target 'all-recursive-am' failed
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory '/home/tony/Downloads/M68k2/binutils-2.10.1/gas'
Makefile:1188: recipe for target 'all-gas' failed
make: *** [all-gas] Error 2

Can anyone offer any advise please? Does binutils/gcc no long support coldfire?
Thanks

veerain 04-13-2015 06:51 AM

Which gcc versions you are using?

See gcc.gnu.org site, it lists 'Changes' for each gcc version. Check whether your gcc version does supports coldfire.


All times are GMT -5. The time now is 07:31 AM.