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