From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755026AbXKFPpp (ORCPT ); Tue, 6 Nov 2007 10:45:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752208AbXKFPpi (ORCPT ); Tue, 6 Nov 2007 10:45:38 -0500 Received: from 80-68-90-175.no-reverse-dns-set.bytemark.co.uk ([80.68.90.175]:4541 "EHLO hellhawk.shadowen.org" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752951AbXKFPph (ORCPT ); Tue, 6 Nov 2007 10:45:37 -0500 Date: Tue, 6 Nov 2007 15:44:39 +0000 From: Andy Whitcroft To: Balbir Singh Cc: Kamalesh Babulal , linuxppc-dev@ozlabs.org, johannes@sipsolutions.net, sam@ravnborg.org, David Miller , linux-kernel@vger.kernel.org Subject: Re: 2.6.24-rc1-git15 Kernel build fails on powerpc - Unrecognized opcode: `dssall' Message-ID: <20071106154439.GK5080@shadowen.org> References: <47304343.2010709@linux.vnet.ibm.com> <661de9470711060246s3040f68drf0a6310aeec4e1e8@mail.gmail.com> <1194346486.4066.13.camel@johannes.berg> <20071106.031001.189578769.davem@davemloft.net> <47304FE5.2010309@linux.vnet.ibm.com> <47306E9C.4090202@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47306E9C.4090202@linux.vnet.ibm.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-SPF-Guess: neutral Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 06, 2007 at 07:09:40PM +0530, Balbir Singh wrote: > Kamalesh Babulal wrote: > > David Miller wrote: > >> From: Johannes Berg > >> Date: Tue, 06 Nov 2007 11:54:46 +0100 > >> > >>>>> CHK include/linux/compile.h > >>>>> AS arch/powerpc/kernel/swsusp_32.o > >>>>> arch/powerpc/kernel/swsusp_32.S: Assembler messages: > >>>>> arch/powerpc/kernel/swsusp_32.S:138: Error: Unrecognized opcode: `dssall' > >>>>> make[1]: *** [arch/powerpc/kernel/swsusp_32.o] Error 1 > >>>>> make: *** [arch/powerpc/kernel] Error 2 > >>>>> > >>>> Looks suspiciously like an altivec issue. Could you compile with make > >>>> V=1 and/or do a git bisect and see what broke? > >>> Looks more like a toolchain issue to me. > >> Or, this is another instance of the "CFLAGS environment variable" > >> problem. > >> > >> For a few days, the kbuild stuff would integrate any CFLAGS, > >> AFLAGS, etc. settings you might have set in your environment. > > > > Hi Balbir, > > > > The Build error of kernel compilation with V=1 > > > > make -f scripts/Makefile.build obj=arch/powerpc/kernel > > make -f scripts/Makefile.build obj=arch/powerpc/kernel/vdso32 > > gcc -m32 -Wp,-MD,arch/powerpc/kernel/.swsusp_32.o.d -nostdinc -isystem /usr/lib/gcc/ppc64-redhat-linux/4.1.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Iarch/powerpc -D__ASSEMBLY__ -Iarch/powerpc -Wa,-m405 -gdwarf-2 -c -o arch/powerpc/kernel/swsusp_32.o arch/powerpc/kernel/swsusp_32.S > > arch/powerpc/kernel/swsusp_32.S: Assembler messages: > > arch/powerpc/kernel/swsusp_32.S:138: Error: Unrecognized opcode: `dssall' > > make[1]: *** [arch/powerpc/kernel/swsusp_32.o] Error 1 > > make: *** [arch/powerpc/kernel] Error 2 > > > > I looked at your .config and now your build. It looks like you select > CONFIG_4xx (I see -Wa,-m405) and compile swsusp_32.S. The > compiler/toolchain does not enable altivec instructions for CONFIG_4xx. > If CONFIG_HIBERNATION is enabled as in your case, it compiles > swsusp_32.S which assumes that ALTIVEC is enabled (see CPU_FTR_ALTIVEC). > > You ideally need to have -Wa,-maltivec passed in your CFLAGS. So that sounds like a Kconfig problem then? That HIBERATION requires ALITIVEC and yet does not depend on it or set it. -apw