This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building kernel using toolchain build with sanitized headers


Dan Kegel wrote:
This is just a note to myself, really.
I'm sure these issues are my own fault somehow.

I tried building with sanitized headers today, and ran into
curious problems on the following combinations, all using
gcc-3.4.3, glibc-2.3.5, binutils-2.15, linux-2.6.8 (or 2.6.11.3),
and  linux-libc-headers-2.6.11.2:

alpha-gcc-3.4.3-glibc-2.3.5
arm-gcc-3.4.3-glibc-2.3.5
ia64-gcc-3.4.3-glibc-2.3.5

Oh, and sh4, too:


In file included from include/linux/sched.h:15,
                 from include/linux/mm.h:4,
                 from include/linux/mman.h:5,
                 from arch/sh/mm/pg-sh4.c:11:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:210: warning: passing arg 1 of `find_next_bit' discards qualifiers from pointer target type
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:216: warning: passing arg 1 of `find_next_bit' discards qualifiers from pointer target type
arch/sh/mm/pg-sh4.c: At top level:
arch/sh/mm/pg-sh4.c:34: error: 'clear_page' redeclared as different kind of symbol
include/asm/page.h:39: error: previous declaration of 'clear_page' was here
arch/sh/mm/pg-sh4.c:34: error: 'clear_page' redeclared as different kind of symbol
include/asm/page.h:39: error: previous declaration of 'clear_page' was here
arch/sh/mm/pg-sh4.c: In function `clear_page':
arch/sh/mm/pg-sh4.c:35: error: `page' undeclared (first use in this function)
arch/sh/mm/pg-sh4.c:35: error: (Each undeclared identifier is reported only once
arch/sh/mm/pg-sh4.c:35: error: for each function it appears in.)
arch/sh/mm/pg-sh4.c:36: error: `address' undeclared (first use in this function)
arch/sh/mm/pg-sh4.c:58: warning: implicit declaration of function `__clear_user_page'
arch/sh/mm/pg-sh4.c: At top level:
arch/sh/mm/pg-sh4.c:73: error: 'copy_page' redeclared as different kind of symbol
include/asm/page.h:40: error: previous declaration of 'copy_page' was here
arch/sh/mm/pg-sh4.c:73: error: 'copy_page' redeclared as different kind of symbol
include/asm/page.h:40: error: previous declaration of 'copy_page' was here
arch/sh/mm/pg-sh4.c: In function `copy_page':
arch/sh/mm/pg-sh4.c:74: error: `page' undeclared (first use in this function)
arch/sh/mm/pg-sh4.c:75: error: `address' undeclared (first use in this function)
arch/sh/mm/pg-sh4.c:97: warning: implicit declaration of function `__copy_user_page'
make[1]: *** [arch/sh/mm/pg-sh4.o] Error 1
make: *** [arch/sh/mm] Error 2


-- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]