[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#311496: kernel-source-2.6.8: Fails to compile, error in /usr/src/linux/include/asm/checksum.h



Package: kernel-source-2.6.8
Version: 2.6.8-16
Severity: important


I'm trying to recompile the Debian 2.6.8 kernel source for a pentium classic.
This is what I did:

# cp /boot/config-2.6.8-2-386 /usr/src/linux/.config

* comment out the CONFIG_M386=y

# make-kpkg --initrd --append-to-version=.01062005 kernel_image

* config options: choose pentium-classic, just [return] all other questions
  (choose default option - I didn't want to change anything else, just get a
  586 image which is not available in the archive atm.).
  Check the config on: http://www.stroobant.be/~luc/config

This results in a compile error:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=i586   -DKBUILD_BASENAME=ksyms
-DEXPORT_SYMTAB -c ksyms.c
In file included from ksyms.c:50:
/usr/src/linux/include/asm/checksum.h:72:30: missing terminating " character
In file included from ksyms.c:50:
/usr/src/linux/include/asm/checksum.h: In function `ip_fast_csum':
/usr/src/linux/include/asm/checksum.h:73: error: syntax error before "movl"
/usr/src/linux/include/asm/checksum.h:75:17: invalid suffix "f" on integer
constant
/usr/src/linux/include/asm/checksum.h:82:17: invalid suffix "b" on integer
constant
/usr/src/linux/include/asm/checksum.h:90:13: missing terminating " character
/usr/src/linux/include/asm/checksum.h:105:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h: In function `csum_fold':
/usr/src/linux/include/asm/checksum.h:106: error: syntax error before "addl"
/usr/src/linux/include/asm/checksum.h:108:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h:121:13: missing terminating " character
/usr/src/linux/include/asm/checksum.h: In function `csum_tcpudp_nofold':
/usr/src/linux/include/asm/checksum.h:122: error: syntax error before "addl"
/usr/src/linux/include/asm/checksum.h:126:9: missing terminating " character
/usr/src/linux/include/asm/checksum.h:128: error: `__x' undeclared (first use
in this function)
/usr/src/linux/include/asm/checksum.h:128: error: (Each undeclared identifier
is reported only once
/usr/src/linux/include/asm/checksum.h:128: error: for each function it appears
in.)
/usr/src/linux/include/asm/checksum.h: At top level:
/usr/src/linux/include/asm/checksum.h:128: error: syntax error before ')'
token
/usr/src/linux/include/asm/checksum.h:161:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h: In function `csum_ipv6_magic':
/usr/src/linux/include/asm/checksum.h:162: error: syntax error before "addl"
/usr/src/linux/include/asm/checksum.h:173:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h:176: error: `__x' undeclared (first use
in this function)
/usr/src/linux/include/asm/checksum.h:176: warning: no return statement in
function returning non-void
/usr/src/linux/include/asm/checksum.h: At top level:
/usr/src/linux/include/asm/checksum.h:176: error: syntax error before ')'
token
/usr/src/linux/include/asm/checksum.h:176: error: syntax error before "__u32"
make[3]: *** [ksyms.o] Error 1
make[3]: Leaving directory `/usr/src/linux/kernel'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: *** [_dir_kernel] Error 2
make[1]: Leaving directory `/usr/src/linux'
make: *** [stamp-build] Error 2

I think there is an ); missing on line 96/97 in
/usr/src/linux/include/asm/checksum.h
(but I'm not a real coder, so don't shoot if I'm wrong ;-)

Luc

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.6.8-2-386
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages kernel-source-2.6.8 depends on:
ii  binutils                      2.15-6     The GNU assembler, linker and bina
ii  bzip2                         1.0.2-7    high-quality block-sorting file co
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  fileutils                     5.2.1-2    The GNU file management utilities 

-- no debconf information



Reply to: