2.6.12-rc4-git7 fails to build on x86_64 if CONFIG_BUG is off.

From: Simon Strandman
Date: Tue May 24 2005 - 10:20:45 EST


Hi!

I don't know if this is a supported configuration, but I tried turning off CONFIG_BUG just to see what difference it would make. But it fails to build with this error:

CC arch/x86_64/kernel/process.o
CC arch/x86_64/kernel/semaphore.o
CC arch/x86_64/kernel/signal.o
AS arch/x86_64/kernel/entry.o
CC arch/x86_64/kernel/traps.o
CC arch/x86_64/kernel/irq.o
CC arch/x86_64/kernel/ptrace.o
CC arch/x86_64/kernel/time.o
CC arch/x86_64/kernel/ioport.o
CC arch/x86_64/kernel/ldt.o
CC arch/x86_64/kernel/setup.o
In file included from include/linux/dma-mapping.h:19,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:94,
from include/linux/pci.h:904,
from arch/x86_64/kernel/setup.c:39:
include/asm/dma-mapping.h: In function `dma_sync_single_for_cpu':
include/asm/dma-mapping.h:67: varning: implicit deklaration av funktion "out_of_line_bug"
CC arch/x86_64/kernel/i8259.o
CC arch/x86_64/kernel/sys_x86_64.o
CC arch/x86_64/kernel/x8664_ksyms.o
In file included from include/linux/dma-mapping.h:19,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:94,
from include/linux/pci.h:904,
from arch/x86_64/kernel/x8664_ksyms.c:10:
include/asm/dma-mapping.h: In function `dma_sync_single_for_cpu':
include/asm/dma-mapping.h:67: varning: implicit deklaration av funktion "out_of_line_bug"
arch/x86_64/kernel/x8664_ksyms.c: At top level:
arch/x86_64/kernel/x8664_ksyms.c:196: error: conflicting types for 'out_of_line_bug'
include/asm/dma-mapping.h:67: error: previous implicit declaration of 'out_of_line_bug' was here
make[1]: *** [arch/x86_64/kernel/x8664_ksyms.o] Fel 1
make: *** [arch/x86_64/kernel] Fel 2

This is with gcc 3.4.3, binutils 2.16 and I have the -ck patch applied. It works fine with CONFIG_BUG set to y. My kernel config: http://snigel.no-ip.com/~nxsty/linux/config

--
Simon Strandman <simon.strandman@xxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/