Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Porting binutils/gcc seem to be a bit troublesome eh?
Your edit of bfd/config.bfd looks a little weird...
Try targ_selfvecs=i386mattise_vec
There are also other changes required to both binutils and GCC when building your own custom target.. at this point, I can only assume you set them up correctly.
Good luck
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Actually, I think I put the definition before the targmatch.h section, which meant that the target wasn't being put into BFD's target list - I'm compiling again now to find out if moving it to the proper location has fixed this.
Configuring in ./libiberty
configure: loading cache ./config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: -g -O2
configure: current value: -g -O2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
This happens after I run configure and during "make all-gcc". Any ideas?
Configuring in ./libiberty
configure: loading cache ./config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: -g -O2
configure: current value: -g -O2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
the above says the answer, make clean or make distclean && (some configure) && make all-gcc
Thanks, I was at school yesterday when I noticed the folder I was in - making GCC in build-binutils isn't a great idea . Now it all works, thanks for the help guys!