Patchwork net-2.6 build error on powerpc

login
register
mail settings
Submitter Zhiyong Wu
Date Dec. 16, 2009, 8:37 a.m.
Message ID <b1e768440912160037v21cf7ed2s521c0ac1307c583e@mail.gmail.com>
Download mbox | patch
Permalink /patch/41242/
State RFC
Delegated to: David Miller
Headers show

Comments

Zhiyong Wu - Dec. 16, 2009, 8:37 a.m.
HI, Ron Mercer

In order to succeed in compiling, currently i comment out the line
that includes the option "Werror" in the file Makefile.

Similiar to :


Can anyone let me know how to fix this issue thoroughly?


Cheers,

Zhiyong Wu


On Thu, Oct 8, 2009 at 11:20 PM, Ron Mercer <ron.mercer@qlogic.com> wrote:
> I recently grabbed the latest net-2.6 kernel for a powerpc test box and
> got this compile error.
>
>  CC      arch/powerpc/kernel/cputable.o
>  CC      arch/powerpc/kernel/ptrace.o
>  CC      arch/powerpc/kernel/syscalls.o
>  CC      arch/powerpc/kernel/irq.o
>  CC      arch/powerpc/kernel/align.o
>  CC      arch/powerpc/kernel/signal_32.o
>  CC      arch/powerpc/kernel/pmc.o
>  CC      arch/powerpc/kernel/vdso.o
>  cc1: warnings being treated as errors
>  arch/powerpc/kernel/vdso.c:78: warning: alignment of
>  āso_data_storeās greater than maximum object file
>  alignment.  Using 32768
>  make[1]: *** [arch/powerpc/kernel/vdso.o] Error 1
>  make: *** [arch/powerpc/kernel] Error 2
>  [root@localhost linux-2.6-net.git]#
>
>
>
>  Any suggestions would be appreciated.
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index b23664a..0c8a8b0 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -4,7 +4,7 @@ 

 CFLAGS_ptrace.o                += -DUTS_MACHINE='"$(UTS_MACHINE)"'

-subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
+#subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror

 ifeq ($(CONFIG_PPC64),y)
 CFLAGS_prom_init.o     += -mno-minimal-toc