This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
can newlib really work as linux C library on i686 or x86_64?
- From: Junfeng Dong <jfdong at gmail dot com>
- To: newlib at sourceware dot org
- Date: Tue, 5 May 2015 17:20:47 -0700
- Subject: can newlib really work as linux C library on i686 or x86_64?
- Authentication-results: sourceware.org; auth=none
Hi,
Recently I tried to use newlib to build simple programs on x86_64 or
i686. I run into various problems.Can someone please tell me what is
the mistake I made.
1. when build it as part of cross toolchain (target is i686-linux-elf,
host is x86_64). it shows crt0.o is missing.
2. native build with "-with-newlib --disable-multilib" on i686
machine. it failed with
/usr/include/i386-linux-gnu/bits/types.h:170:1: error: unknown type
name â__FSWORD_T_TYPEâ
I searched the history mailing list. It is said that "Newlib is almost
NEVER built as a linux library. That it can do so AT ALL is a recent
change and rarely used" "Newlib is intended for bare-metal targets
like m32c-elf, arm-elf, h8300-coff, etc."
Have things changed from that? Can newlib really work as linux C
library on i686 and fully tested?
Best regards
junfeng