Can't compile for H8 tiny
Bug #342667 reported by
tsm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-h8300-hms (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcc-h8300-hms
The repo version of the compiler does not seem to have a libgcc.a that is compatible with the -mn option required for h8 tiny devices.
To post a comment you must log in.
Same thing going on here, but I'm targeting an H8/3069. ======= ======= ======= ======= ======= === gcc/h8300- hitachi- coff/3. 4.6/../ ../../. ./h8300- hitachi- coff/bin/ ld: skipping incompatible /usr/lib/ gcc/h8300- hitachi- coff/3. 4.6/../ ../../. ./h8300- hitachi- coff/lib/ libc.a when searching for -lc gcc/h8300- hitachi- coff/3. 4.6/../ ../../. ./h8300- hitachi- coff/bin/ ld: skipping incompatible /usr/bin/ ../h8300- hitachi- coff/lib/ libc.a when searching for -lc gcc/h8300- hitachi- coff/3. 4.6/../ ../../. ./h8300- hitachi- coff/bin/ ld: cannot find -lc ======= ======= ======= ======= ======= === assembler/ linker/ etc. Everything was built with the H8300 compiler/ assembler/ linker according to the build log. Further poking around with google provided me with some comments about how newer versions of GCC don't have ports properly updated. In a fit of desperation earlier on in my venture here I grabbed gcc-4.4 sources and tried to build only to find a message about the target h8300 no longer being maintained and that it has been deprecated and will be removed....
I believe I have properly analyzed the problem at this point, though I have not yet been able to fix it. Here's what I've come up with:
1. The package maintainer did not build GCC with newlib as he could not get it to build (I found a post stating this somewhere but can't seem to relocate it).
2. As newlib provides the C libraries (libc.a, not libgcc.a mind you).
3. I have successfully built newlib (1.17.0) and incorporated it into the directory structure, but I get the error
=======
/usr/lib/
/usr/lib/
/usr/lib/
collect2: ld returned 1 exit status
=======
indicating my build of newlib is not compatible with the compiler/
Has anyone been able to build for H8 with newer versions of Ubuntu? What was the last successfully build anyone had? What version of the packages was that with?