This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: sys-include/newlib.h
- From: "Jon Beniston" <jon at beniston dot com>
- To: <newlib at sourceware dot org>
- Cc: "'Jeff Johnston'" <jjohnstn at redhat dot com>
- Date: Fri, 9 Dec 2016 20:47:38 -0000
- Subject: RE: sys-include/newlib.h
- Authentication-results: sourceware.org; auth=none
- References: <84b001d25232$da74dd20$8f5e9760$@beniston.com> <212353526.2559217.1481310415007.JavaMail.zimbra@redhat.com>
Hi Jeff,
> What you are trying is unsupported. Newlib configuration needs to run.
> Have you tried --with-newlib? You might need to add a
> configure-target-newlib or all-target-newlib target to your configure call.
I'm not sure what you mean by newlib configuration needs to run. I thought it was, and that's what is generating target/include/newlib.h (which has the correct values generate by configure).
Yes, I'm using --with-newlib. This is with newlib & gcc source trees merged, so they configure and build together.
Do you mean --with-headers is unsupported? If I don't use that, then inhibit_libc=true is set in gcc/Makefile, and things like gprof support aren't built.
Here's the code from gcc/configure.ac
if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
test x$with_newlib = xyes ; } &&
{ test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
inhibit_libc=true
Is that not saying it needs to be set?
Thanks,
Jon