Hi, On 16.12.2015 00:55 Bernd Schmidt wrote: > On 12/15/2015 10:13 PM, Bernd Edlinger wrote: >> due to recent discussion on the basic asm, and the special handling >> of ASM_INPUT in ia64, I tried to build a bare-metal cross-compiler >> for ia64, but that did not work, because it seems to be impossible to >> build it without having a stdlib.h. > > Actually David Howells has complained to me about this as well, it > seems to be a problem when building a toolchain for kernel compilation.
yes. I am not sure, if this is also problematic, when building a cross-glibc, then I need also a cross C compiler first, build glibc, and install .h and objects to the sysroot, then I build gcc again, with all languages. > >> With the attached patch, I was finally able to build the cross >> compiler, by declaring abort in the way as it is done already in many >> other places at libgcc. > > Can you just use __builtin_abort ()? Ok with that change. > I will try, but ./config/ia64/unwind-ia64.c includes this header, and it also uses abort () at many places. So I'd expect warnings there. Thanks Bernd.