This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: error building gcc w/ newlib
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: "Wilkes, John" <John dot Wilkes at amd dot com>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Sun, 26 Jun 2016 10:14:16 -0400
- Subject: Re: error building gcc w/ newlib
- Authentication-results: sourceware.org; auth=none
- References: <DM2PR12MB00135A85C7AB174670C1D539FF2F0 at DM2PR12MB0013 dot namprd12 dot prod dot outlook dot com> <CAOFdcFNepXLJ5Cywd0+pVhkBMOrgDzZq=DFqzCV5Jpb1VRu8Gw at mail dot gmail dot com> <BN1PR12MB0004D8E58327A407C699D299FF200 at BN1PR12MB0004 dot namprd12 dot prod dot outlook dot com>
On Sun, Jun 26, 2016 at 12:43 AM, Wilkes, John <John.Wilkes@amd.com> wrote:
> Thanks for the suggestion. If I configure the second gcc invocation with "--with-newlib", I get an earlier compile-time error complaining that "typeof" is not declared:
If you don't need it, you can probably work around this with
--without-libquadmath
> One of the errors is from "ld" complaining that it can't find crt0.o. I intend to use this tool chain (if I can ever get it to build and install) for FreeRTOS development, and crt0 is neither needed nor used by FreeRTOS, which is why I don't have one.
This is most likely the reason that you're failing the link test later on.
I think you're either going to have to pass --with-newlib and fix
whatever other issues that causes, or just create a dummy crt0.o to
make configure happy.
Your best bet is probably --with-newlib --without-libquadmath.
Hopefully that'll be enough.
Thanks,
Peter