Compilation problem on sparc64

Discuss and suggest new grsecurity features

Compilation problem on sparc64

Postby linkfanel » Mon Feb 12, 2007 9:18 am

A 2.6.19.3 kernel patched with the latest grsecurity-2.1.10-2.6.19.3-200702061822.patch (at least) fails to compile on sparc64:

Code: Select all
  CC      arch/sparc64/kernel/setup.o
cc1: warnings being treated as errors
arch/sparc64/kernel/setup.c:64: warning: missing initializer
arch/sparc64/kernel/setup.c:64: warning: (near initialization for 'screen_info.lfb_width')
arch/sparc64/kernel/setup.c:208: warning: missing initializer
arch/sparc64/kernel/setup.c:208: warning: (near initialization for 'fake_swapper_regs.fprs')
make[2]: *** [arch/sparc64/kernel/setup.o] Erreur 1
make[1]: *** [arch/sparc64/kernel] Erreur 2


Indeed, arch/sparc64/kernel/Makefile and arch/sparc64/mm/Makefile contain the "EXTRA_CFLAGS := -Werror" flag. Those warnings do not appear on a vanilla kernel. The complete list of problematic warnings is (when commenting the flag):

Code: Select all
  CC      arch/sparc64/kernel/process.o
  CC      arch/sparc64/kernel/setup.o
arch/sparc64/kernel/setup.c:64: warning: missing initializer
arch/sparc64/kernel/setup.c:64: warning: (near initialization for 'screen_info.lfb_width')
arch/sparc64/kernel/setup.c:208: warning: missing initializer
arch/sparc64/kernel/setup.c:208: warning: (near initialization for 'fake_swapper_regs.fprs')
  CC      arch/sparc64/kernel/cpu.o
arch/sparc64/kernel/cpu.c:17: warning: missing initializer
arch/sparc64/kernel/cpu.c:17: warning: (near initialization for 'per_cpu____cpu_data.multiplier')
  CC      arch/sparc64/kernel/idprom.o
  CC      arch/sparc64/kernel/traps.o
  CC      arch/sparc64/kernel/devices.o
  CC      arch/sparc64/kernel/auxio.o
arch/sparc64/kernel/auxio.c:116: warning: missing initializer
arch/sparc64/kernel/auxio.c:116: warning: (near initialization for 'auxio_match[1].name')
  AS      arch/sparc64/kernel/una_asm.o
  CC      arch/sparc64/kernel/irq.o
  CC      arch/sparc64/kernel/ptrace.o
  CC      arch/sparc64/kernel/time.o
arch/sparc64/kernel/time.c:836: warning: missing initializer
arch/sparc64/kernel/time.c:836: warning: (near initialization for 'clock_match[2].name')
  CC      arch/sparc64/kernel/sys_sparc.o
  CC      arch/sparc64/kernel/signal.o
  CC      arch/sparc64/kernel/unaligned.o
  CC      arch/sparc64/kernel/central.o
  CC      arch/sparc64/kernel/pci.o
  CC      arch/sparc64/kernel/starfire.o
  CC      arch/sparc64/kernel/semaphore.o
  CC      arch/sparc64/kernel/power.o
arch/sparc64/kernel/power.c:151: warning: missing initializer
arch/sparc64/kernel/power.c:151: warning: (near initialization for 'power_match[1].name')
  CC      arch/sparc64/kernel/sbus.o
  CC      arch/sparc64/kernel/iommu_common.o
  CC      arch/sparc64/kernel/sparc64_ksyms.o
  CC      arch/sparc64/kernel/chmc.o
  CC      arch/sparc64/kernel/visemul.o
  CC      arch/sparc64/kernel/prom.o
  CC      arch/sparc64/kernel/of_device.o
  CC      arch/sparc64/kernel/ebus.o
  CC      arch/sparc64/kernel/isa.o
  CC      arch/sparc64/kernel/pci_common.o
  CC      arch/sparc64/kernel/pci_iommu.o
arch/sparc64/kernel/pci_iommu.c:67: warning: 'inline' is not at beginning of declaration
  CC      arch/sparc64/kernel/pci_psycho.o
  CC      arch/sparc64/kernel/pci_sabre.o
  CC      arch/sparc64/kernel/pci_schizo.o
  CC      arch/sparc64/kernel/pci_sun4v.o
  AS      arch/sparc64/kernel/pci_sun4v_asm.o
  AS      arch/sparc64/kernel/sys32.o
  CC      arch/sparc64/kernel/sys_sparc32.o
  CC      arch/sparc64/kernel/signal32.o
  CC      arch/sparc64/kernel/binfmt_elf32.o
  CC      arch/sparc64/kernel/module.o
  CC      arch/sparc64/kernel/compat_audit.o
  CC      arch/sparc64/kernel/sys_sunos32.o
  CC      arch/sparc64/kernel/sunos_ioctl32.o
  LD      arch/sparc64/kernel/built-in.o
  AS      arch/sparc64/kernel/head.o
  CC      arch/sparc64/kernel/init_task.o
arch/sparc64/kernel/init_task.c:14: warning: missing initializer
arch/sparc64/kernel/init_task.c:14: warning: (near initialization for 'init_sighand.action[0].ka_restorer')
arch/sparc64/kernel/init_task.c:15: warning: missing initializer
arch/sparc64/kernel/init_task.c:15: warning: (near initialization for 'init_mm.context')
arch/sparc64/kernel/init_task.c:35: warning: missing initializer
arch/sparc64/kernel/init_task.c:35: warning: (near initialization for 'init_task.rcu')
  LDS     arch/sparc64/kernel/vmlinux.lds
  AS      arch/sparc64/mm/ultra.o
  CC      arch/sparc64/mm/tlb.o
arch/sparc64/mm/tlb.c:22: warning: missing initializer
arch/sparc64/mm/tlb.c:22: warning: (near initialization for 'per_cpu__mmu_gathers.pages_nr')
  CC      arch/sparc64/mm/tsb.o
  CC      arch/sparc64/mm/fault.o
  CC      arch/sparc64/mm/init.o
  CC      arch/sparc64/mm/generic.o
  LD      arch/sparc64/mm/built-in.o
  CC      arch/sparc64/math-emu/math.o
  LD      arch/sparc64/math-emu/built-in.o
linkfanel
 
Posts: 39
Joined: Fri Jul 14, 2006 8:26 pm

Re: Compilation problem on sparc64

Postby PaX Team » Mon Feb 19, 2007 11:45 am

linkfanel wrote:Indeed, arch/sparc64/kernel/Makefile and arch/sparc64/mm/Makefile contain the "EXTRA_CFLAGS := -Werror" flag. Those warnings do not appear on a vanilla kernel. The complete list of problematic warnings is (when commenting the flag):
thanks for the list, but in the end i ended up removing -Werror instead, it's the easier way out.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity development