On Thu, 6 Dec 2001 00:59:16 -0500, Ghozlane Toumi <[EMAIL PROTECTED]> wrote: >I thought that we tried to avoid at all costs including userspace headers, it >seems that some assembler source in arch/alpha/lib/ have a #include ><alpha/regdef.h> , and on my system it points to /usr/include/alpha/regdef.h >, wich is a self contained header owned by glibc. > >From what I understood, the regdef.h contains definitions/uses of registers >according to gcc's calling convention, so i guess it may change depending on >gcc version ... > >What do i do now ? do i trick kbuild to add /usr/include in the includes, or >do I rip the .h and copy it to the asm-alpha directory ?
Copy the header to include/asm-alpha and change the code, MIPS does that. Check with the alpha mailing list first. >speaking of includes, why does kbuild adds to the include path >"-I/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/include" ? The ban on user space includes is really to stop people using glibc headers in the kernel. The compiler always needs to read from its own include directory, that is where the gcc (not glibc) specific headers live. Adding -nostdinc stops gcc reading its own headers but we really need them, so I add the gcc library back. All based on an idea by Cristoph Hellwig. _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel