Bug#221621: gcc-3.3: fails to compile the linux kernel
Package: gcc-3.3
Version: 1:3.3.2-4
Severity: normal
While compiling the kernel on a sparc system I get the following errors in
kernel-source-2.4.22/arch/sparc/kernel/check_asm.c:
gcc -o check_asm check_asm.c
check_asm.c:309: error: field name not in record or union initializer
check_asm.c:309: error: (near initialization for `check_asm_data')
check_asm.c:311: warning: initialization makes integer from pointer without a cast
and while compiling a 64-bit kernel I get
gcc -o check_asm check_asm.c
check_asm.c:312: error: field name not in record or union initializer
check_asm.c:312: error: (near initialization for `check_asm_data')
check_asm.c:313: warning: initialization makes integer from pointer without a cast
check_asm.c:313: error: initializer element is not computable at load time
check_asm.c:313: error: (near initialization for `check_asm_data[307]')
The offending line is
.section ".note.GNU-stack"
at the end of the initialization of unsigned int check_asm_data[].
The previous version of gcc-3.3 (3.3.2-1) was working fine.
I've verified this on both kernel-source-2.4.22-3 and kernel-source-2.4.22-4
-- System Information:
Debian Release: testing/unstable
Architecture: sparc
Kernel: Linux argonath-linux 2.4.22-anbe3-sparc64-smp #1 SMP Sun Sep 28 23:33:06 CEST 2003 sparc64
Locale: LANG=C, LC_CTYPE=C
Versions of packages gcc-3.3 depends on:
ii binutils 2.14.90.0.6-5 The GNU assembler, linker and bina
ii cpp-3.3 1:3.3.2-4 The GNU C preprocessor
ii gcc-3.3-base 1:3.3.2-4 The GNU Compiler Collection (base
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libgcc1 1:3.3.2-4 GCC support library
-- no debconf information
Reply to: