Can't compile 2.6.7 with gcc 3.4.1
Is this a known problem ? I can't compile the kernel 2.6.7 with gcc 3.4.1:
CC arch/ppc/kernel/traps.oarch/ppc/kernel/traps.c: In function `AltivecUnavailException':arch/ppc/kernel/traps.c:650: warning: unsigned int format, long unsigned int arg (arg 3) arch/ppc/kernel/traps.c: In function `AltivecAssistException':arch/ppc/kernel/traps.c:665: warning: implicit declaration of function `emulate_altivec'
CC arch/ppc/kernel/irq.o CC arch/ppc/kernel/idle.o CC arch/ppc/kernel/time.o
{standard input}: Assembler messages:
{standard input}:161: Error: Unrecognized opcode: mftb' {standard input}:393: Error: Unrecognized opcode: mftb' {standard input}:538: Error: Unrecognized opcode: mftb' {standard input}:728: Error: Unrecognized opcode: mftb' {standard input}:839: Error: Unrecognized opcode: mftb' {standard input}:1054: Error: Unrecognized opcode: mftbu' {standard input}:1055: Error: Unrecognized opcode: mftb' {standard input}:1056: Error: Unrecognized opcode: mftbu' make[1]: *** [arch/ppc/kernel/time.o] Error 1
make: *** [arch/ppc/kernel] Error 2
[root@Jay linux-2.6.7]#
I have no problems with gcc 3.3.3.
(dual-G4 MDD)
--
Giuliano.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 1 line · Giuliano Pochini
Is this a known problem ? I can't compile the kernel 2.6.7 with gcc
3.4.1:
Quoted 4 lines
CC
arch/ppc/kernel/traps.oarch/ppc/kernel/traps.c: In function `AltivecUnavailException':arch/ppc/kernel/traps.c:650: warning: unsigned int format, long
unsigned int arg (arg 3)
Quoted 2 lines
arch/ppc/kernel/traps.c: In function `AltivecAssistException':arch/ppc/kernel/traps.c:665: warning: implicit declaration of function
`emulate_altivec'
Quoted 4 lines
CC arch/ppc/kernel/irq.o CC arch/ppc/kernel/idle.o CC arch/ppc/kernel/time.o{standard input}: Assembler messages:
- --------------------^^^^^^^^^
the Assembler spits out the errors here, and /usr/bin/as is usually coming with "binutils". which version do you have?
Christian.
- --
BOFH excuse #72:
Satan did it
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · On 26-Jul-2004 Christian Kujau wrote:
the Assembler spits out the errors here, and
/usr/bin/asis usually coming with "binutils". which version do you have ?
I don't remember, but it's a quite recent one (I'm not at home). I'll try the latest version ASAP.
--
Giuliano.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Giuliano Pochini
Is this a known problem ? I can't compile the kernel 2.6.7 with gcc 3.4.1:
You're trying to use gcc-3.4 and binutils-2.14, which is a bad combination.
Olaf, did you ever get a chance to try the last patch I had with your matrix of toolchain versions?
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Tom Rini
Quoted 2 lines · Giuliano Pochini
Is this a known problem ? I can't compile the kernel 2.6.7 with gcc 3.4.1:
You're trying to use gcc-3.4 and binutils-2.14, which is a bad combination.
Olaf, did you ever get a chance to try the last patch I had with your matrix of toolchain versions?
yes, it worked fine
arch/ppc/Makefile +18 -5
@@ -22,7 +22,7 @@ endif LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic CPPFLAGS += -Iarch/$(ARCH) -AFLAGS += -Iarch/$(ARCH) +aflags-y += -Iarch/$(ARCH) cflags-y += -Iarch/$(ARCH) -msoft-float -pipe \ -ffixed-r2 -Wno-uninitialized -mmultiple CPP = $(CC) -E $(CFLAGS)
@@ -31,10 +31,16 @@ ifndef CONFIG_E500 cflags-y += -mstring endif +aflags-$(CONFIG_4xx) += -m405 cflags-$(CONFIG_4xx) += -Wa,-m405 +aflags-$(CONFIG_6xx) += -maltivec +cflags-$(CONFIG_6xx) += -Wa,-maltivec +aflags-$(CONFIG_E500) += -me500 cflags-$(CONFIG_E500) += -Wa,-me500 +aflags-$(CONFIG_PPC64BRIDGE) += -mppc64bridge cflags-$(CONFIG_PPC64BRIDGE) += -Wa,-mppc64bridge +AFLAGS += $(aflags-y) CFLAGS += $(cflags-y) head-y := arch/ppc/kernel/head.o
@@ -106,17 +112,24 @@ GOODVER := 2.12.1 else NEW_AS := 0 endif +# gcc-3.4 and binutils-2.14 are a fatal combination. +GCC_VERSION := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) +BAD_GCC_AS := $(shell echo mftb 5 | $(AS) -mppc -many -o /dev/null >/dev/null 2>&1 ; echo $$?) -ifneq ($(NEW_AS),0) checkbin: +ifeq ($(GCC_VERSION)$(BAD_GCC_AS),03041) + @echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build ' + @echo 'correctly with gcc-3.4 and your version of binutils.' + @echo '*** Please upgrade your binutils or downgrade your gcc' + @false +endif +ifneq ($(NEW_AS),0) @echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build ' @echo 'correctly with old versions of binutils.' @echo '*** Please upgrade your binutils to ${GOODVER} or newer' @false -else -checkbin: - @true endif + @true CLEAN_FILES += include/asm-$(ARCH)/offsets.h \ arch/$(ARCH)/kernel/asm-offsets.s
arch/ppc/kernel/Makefile +2 -14
@@ -2,16 +2,6 @@ # Makefile for the linux kernel. # -ifdef CONFIG_PPC64BRIDGE -EXTRA_AFLAGS := -Wa,-mppc64bridge -endif -ifdef CONFIG_4xx -EXTRA_AFLAGS := -Wa,-m405 -endif -ifdef CONFIG_E500 -EXTRA_AFLAGS := -Wa,-me500 -endif - extra-$(CONFIG_PPC_STD_MMU) := head.o extra-$(CONFIG_40x) := head_4xx.o extra-$(CONFIG_44x) := head_44x.o
@@ -35,7 +25,5 @@ obj-$(CONFIG_SMP) += smp.o smp-tbsync.o obj-$(CONFIG_TAU) += temp.o obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o -ifdef CONFIG_MATH_EMULATION -obj-$(CONFIG_8xx) += softemu8xx.o -endif - +sw-math-emu-$(CONFIG_8xx) += softemu8xx.o +obj-$(CONFIG_MATH_EMULATION) += $(sw-math-emu-y)
arch/ppc/mm/Makefile +0 -4
@@ -2,10 +2,6 @@ # Makefile for the linux ppc-specific parts of the memory manager. # -ifdef CONFIG_PPC64BRIDGE -EXTRA_AFLAGS := -Wa,-mppc64bridge -endif - obj-y := fault.o init.o mem_pieces.o \ mmu_context.o pgtable.o
arch/ppc/platforms/Makefile +11 -22
@@ -2,29 +2,23 @@ # Makefile for the linux kernel. # -ifdef CONFIG_PPC64BRIDGE -EXTRA_AFLAGS := -Wa,-mppc64bridge -endif -ifdef CONFIG_40x -EXTRA_AFLAGS := -Wa,-m405 -endif - # Extra CFLAGS so we don't have to do relative includes CFLAGS_pmac_setup.o += -Iarch/$(ARCH)/mm -obj-$(CONFIG_APUS) += apus_setup.o -ifeq ($(CONFIG_APUS),y) -obj-$(CONFIG_PCI) += apus_pci.o -endif +# Multiple dependancies +apus-$(CONFIG_PCI) += apus_pci.o +chrp-$(CONFIG_SMP) += chrp_smp.o +pmac-$(CONFIG_NVRAM) += pmac_nvram.o +pmac-$(CONFIG_CPU_FREQ_PMAC) += pmac_cpufreq.o +pmac-$(CONFIG_SMP) += pmac_smp.o + +obj-$(CONFIG_APUS) += apus_setup.o $(apus-y) obj-$(CONFIG_PPC_PMAC) += pmac_pic.o pmac_setup.o pmac_time.o \ pmac_feature.o pmac_pci.o pmac_sleep.o \ - pmac_low_i2c.o -obj-$(CONFIG_PPC_CHRP) += chrp_setup.o chrp_time.o chrp_pci.o + pmac_low_i2c.o $(pmac-y) +obj-$(CONFIG_PPC_CHRP) += chrp_setup.o chrp_time.o chrp_pci.o \ + $(chrp-y) obj-$(CONFIG_PPC_PREP) += prep_pci.o prep_setup.o -ifeq ($(CONFIG_PPC_PMAC),y) -obj-$(CONFIG_NVRAM) += pmac_nvram.o -obj-$(CONFIG_CPU_FREQ_PMAC) += pmac_cpufreq.o -endif obj-$(CONFIG_PMAC_BACKLIGHT) += pmac_backlight.o obj-$(CONFIG_PPC_RTAS) += error_log.o proc_rtas.o obj-$(CONFIG_PREP_RESIDUAL) += residual.o
@@ -48,8 +42,3 @@ obj-$(CONFIG_PRPMC800) += prpmc800.o obj-$(CONFIG_SANDPOINT) += sandpoint.o obj-$(CONFIG_SBC82xx) += sbc82xx.o obj-$(CONFIG_SPRUCE) += spruce.o - -ifeq ($(CONFIG_SMP),y) -obj-$(CONFIG_PPC_PMAC) += pmac_smp.o -obj-$(CONFIG_PPC_CHRP) += chrp_smp.o -endif
arch/ppc/platforms/tqm8260_setup.c +1 -0
@@ -77,3 +77,4 @@ platform_init(unsigned long r3, unsigned callback_setup_arch = ppc_md.setup_arch; ppc_md.setup_arch = tqm8260_setup_arch; +}
arch/ppc/syslib/Makefile +15 -32
70 lines not on this page · raw message
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/