32-bit newlib on 64-bit host
32-bit newlib on 64-bit host
How do I build 32-bit newlib on 64-bit host? I compile my kernel with '-m32' option, but with newlib it doesn't work.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: 32-bit newlib on 64-bit host
Wrong compiler. See the title of your own post (EDIT: which read cross-compiler before moderation).lrod wrote:I compile my kernel with '-m32' option
Last edited by Combuster on Mon Nov 05, 2012 7:15 am, edited 1 time in total.
Re: 32-bit newlib on 64-bit host
I need 32-bit toolchain, correct?Combuster wrote:Wrong compiler. See the title of your own post.lrod wrote:I compile my kernel with '-m32' option
Re: 32-bit newlib on 64-bit host
The easiest way is build a cross compiler. It can be done with host compiler, but it require a higher level of knowledge and skill to work with, and sometime troubleshooting work.