Page 1 of 1

32-bit newlib on 64-bit host

Posted: Mon Oct 29, 2012 8:45 am
by lrod
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.

Re: 32-bit newlib on 64-bit host

Posted: Tue Oct 30, 2012 7:01 am
by Combuster
lrod wrote:I compile my kernel with '-m32' option
Wrong compiler. See the title of your own post (EDIT: which read cross-compiler before moderation).

Re: 32-bit newlib on 64-bit host

Posted: Fri Nov 02, 2012 11:58 pm
by lrod
Combuster wrote:
lrod wrote:I compile my kernel with '-m32' option
Wrong compiler. See the title of your own post.
I need 32-bit toolchain, correct?

Re: 32-bit newlib on 64-bit host

Posted: Sat Nov 03, 2012 2:10 am
by bluemoon
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.