This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: m68k toolchain
- From: Waldemar Brodkorb <wbx at openadk dot org>
- To: Jeff Law <law at redhat dot com>
- Cc: Waldemar Brodkorb <wbx at openadk dot org>, gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Mar 2016 20:35:51 +0100
- Subject: Re: m68k toolchain
- Authentication-results: sourceware.org; auth=none
- References: <20160319085024 dot GW21774 at waldemar-brodkorb dot de> <56F02223 dot 6020401 at redhat dot com>
Hi Jeff,
Jeff Law wrote,
> On 03/19/2016 02:50 AM, Waldemar Brodkorb wrote:
> >Hi GCC devs,
> >
> >I like to enable m68k support in Buildroot. They use
> >a two-stage toolchain building method.
> >
> >But libgcc contains a header which is not available at this time.
> >Removing the reference make compilation work fine.
> >It seems the inclusion of asm/unistd.h is unnecessary.
> I assume you're trying to build libgcc prior to having built & installed
> glibc?
>
> IIRC, the right way to do this is to first use glibc's install-headers
> target to get the header files installed, then you can build gcc.
It is a method of building a cross-toolchain in a let's say "short"
way. It reduces the toolchain build time and is used by buildroot
and other toolchain building systems. It works fine for most of the
supported Linux architectures. It only fails for m68k, ia64 and
tile. As ia64 and tile is not supported by Buildroot, I have'nt
reported it, yet.
> Regardless, I don't offhand see a need for unistd.h in that file. I'll
> remove it during the next development cycle.
Thank you very much,
Waldemar