bash-3.1# make scripts/split-include include/linux/autoconf.h include/config gcc -D__KERNEL__ -I/usr/src/linux-2.4.35.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -fno-unit-at-a-time -DKBUILD_BASENAME=main -c -o init/main.o init/main.c In file included from /usr/src/linux-2.4.35.4/include/linux/spinlock.h:39, from /usr/src/linux-2.4.35.4/include/linux/wait.h:16, from /usr/src/linux-2.4.35.4/include/linux/fs.h:12, from /usr/src/linux-2.4.35.4/include/linux/capability.h:17, from /usr/src/linux-2.4.35.4/include/linux/binfmts.h:5, from /usr/src/linux-2.4.35.4/include/linux/sched.h:9, from /usr/src/linux-2.4.35.4/include/linux/mm.h:4, from /usr/src/linux-2.4.35.4/include/linux/slab.h:14, from /usr/src/linux-2.4.35.4/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.35.4/include/asm/spinlock.h: In function `spin_lock': /usr/src/linux-2.4.35.4/include/asm/spinlock.h:137: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/spinlock.h: In function `read_lock': /usr/src/linux-2.4.35.4/include/asm/spinlock.h:188: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/spinlock.h:188: warning: implicit declaration of function `LOCK_SECTION_START' /usr/src/linux-2.4.35.4/include/asm/spinlock.h:188: error: syntax error before string constant /usr/src/linux-2.4.35.4/include/asm/spinlock.h: In function `write_lock': /usr/src/linux-2.4.35.4/include/asm/spinlock.h:197: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/spinlock.h:197: error: syntax error before string constant In file included from /usr/src/linux-2.4.35.4/include/linux/rwsem.h:27, from /usr/src/linux-2.4.35.4/include/asm/semaphore.h:42, from /usr/src/linux-2.4.35.4/include/linux/fs.h:200, from /usr/src/linux-2.4.35.4/include/linux/capability.h:17, from /usr/src/linux-2.4.35.4/include/linux/binfmts.h:5, from /usr/src/linux-2.4.35.4/include/linux/sched.h:9, from /usr/src/linux-2.4.35.4/include/linux/mm.h:4, from /usr/src/linux-2.4.35.4/include/linux/slab.h:14, from /usr/src/linux-2.4.35.4/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.35.4/include/asm/rwsem.h: In function `__down_read': /usr/src/linux-2.4.35.4/include/asm/rwsem.h:106: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/rwsem.h: In function `__down_write': /usr/src/linux-2.4.35.4/include/asm/rwsem.h:158: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/rwsem.h: In function `__up_read': /usr/src/linux-2.4.35.4/include/asm/rwsem.h:195: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/rwsem.h:189: warning: unused variable `tmp' /usr/src/linux-2.4.35.4/include/asm/rwsem.h: In function `__up_write': /usr/src/linux-2.4.35.4/include/asm/rwsem.h:221: error: syntax error before "LOCK_SECTION_START" In file included from /usr/src/linux-2.4.35.4/include/linux/fs.h:200, from /usr/src/linux-2.4.35.4/include/linux/capability.h:17, from /usr/src/linux-2.4.35.4/include/linux/binfmts.h:5, from /usr/src/linux-2.4.35.4/include/linux/sched.h:9, from /usr/src/linux-2.4.35.4/include/linux/mm.h:4, from /usr/src/linux-2.4.35.4/include/linux/slab.h:14, from /usr/src/linux-2.4.35.4/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.35.4/include/asm/semaphore.h: In function `down': /usr/src/linux-2.4.35.4/include/asm/semaphore.h:125: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/semaphore.h: In function `down_interruptible': /usr/src/linux-2.4.35.4/include/asm/semaphore.h:152: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/semaphore.h: In function `down_trylock': /usr/src/linux-2.4.35.4/include/asm/semaphore.h:180: error: syntax error before "LOCK_SECTION_START" /usr/src/linux-2.4.35.4/include/asm/semaphore.h: In function `up': /usr/src/linux-2.4.35.4/include/asm/semaphore.h:206: error: syntax error before "LOCK_SECTION_START" In file included from /usr/src/linux-2.4.35.4/include/linux/fs.h:201, from /usr/src/linux-2.4.35.4/include/linux/capability.h:17, from /usr/src/linux-2.4.35.4/include/linux/binfmts.h:5, from /usr/src/linux-2.4.35.4/include/linux/sched.h:9, from /usr/src/linux-2.4.35.4/include/linux/mm.h:4, from /usr/src/linux-2.4.35.4/include/linux/slab.h:14, from /usr/src/linux-2.4.35.4/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.35.4/include/asm/byteorder.h: At top level: /usr/src/linux-2.4.35.4/include/asm/byteorder.h:14: error: syntax error before "__u32" /usr/src/linux-2.4.35.4/include/asm/byteorder.h:30: error: syntax error before "__u16" In file included from /usr/src/linux-2.4.35.4/include/linux/smp.h:14, from /usr/src/linux-2.4.35.4/include/linux/sched.h:23, from /usr/src/linux-2.4.35.4/include/linux/mm.h:4, from /usr/src/linux-2.4.35.4/include/linux/slab.h:14, from /usr/src/linux-2.4.35.4/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.35.4/include/asm/smp.h:42: error: syntax error before "smp_send_reschedule" /usr/src/linux-2.4.35.4/include/asm/smp.h:42: warning: type defaults to `int' in declaration of `smp_send_reschedule' /usr/src/linux-2.4.35.4/include/asm/smp.h:42: warning: data definition has no type or storage class In file included from /usr/src/linux-2.4.35.4/include/linux/sched.h:23, from /usr/src/linux-2.4.35.4/include/linux/mm.h:4, from /usr/src/linux-2.4.35.4/include/linux/slab.h:14, from /usr/src/linux-2.4.35.4/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.35.4/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule' /usr/src/linux-2.4.35.4/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here /usr/src/linux-2.4.35.4/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule' /usr/src/linux-2.4.35.4/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here In file included from /usr/src/linux-2.4.35.4/include/linux/pagemap.h:16, from /usr/src/linux-2.4.35.4/include/linux/locks.h:8, from /usr/src/linux-2.4.35.4/include/linux/devfs_fs_kernel.h:6, from init/main.c:16: /usr/src/linux-2.4.35.4/include/linux/highmem.h: In function `kmap': /usr/src/linux-2.4.35.4/include/linux/highmem.h:33: warning: implicit declaration of function `page_address' /usr/src/linux-2.4.35.4/include/linux/highmem.h:33: warning: return makes pointer from integer without a cast In file included from /usr/src/linux-2.4.35.4/include/linux/smp_lock.h:16, from init/main.c:24: /usr/src/linux-2.4.35.4/include/asm/smplock.h: At top level: /usr/src/linux-2.4.35.4/include/asm/smplock.h:14: error: syntax error before "kernel_flag_cacheline" /usr/src/linux-2.4.35.4/include/asm/smplock.h:14: warning: type defaults to `int' in declaration of `kernel_flag_cacheline' /usr/src/linux-2.4.35.4/include/asm/smplock.h:14: warning: data definition has no type or storage class /usr/src/linux-2.4.35.4/include/asm/smplock.h: In function `lock_kernel': /usr/src/linux-2.4.35.4/include/asm/smplock.h:51: error: request for member `lock' in something not a structure or union /usr/src/linux-2.4.35.4/include/asm/smplock.h: In function `unlock_kernel': /usr/src/linux-2.4.35.4/include/asm/smplock.h:66: warning: implicit declaration of function `out_of_line_bug' /usr/src/linux-2.4.35.4/include/asm/smplock.h:69: error: request for member `lock' in something not a structure or union init/main.c: In function `rest_init': init/main.c:348: warning: implicit declaration of function `kernel_thread' init/main.c: In function `start_kernel': init/main.c:418: error: `num_mappedpages' undeclared (first use in this function) init/main.c:418: error: (Each undeclared identifier is reported only once init/main.c:418: error: for each function it appears in.) init/main.c: In function `init': init/main.c:584: warning: implicit declaration of function `unshare_files' make: *** [init/main.o] Error 1