From owner-freebsd-stable@FreeBSD.ORG Mon Jan 30 10:29:30 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2623106566B for ; Mon, 30 Jan 2012 10:29:30 +0000 (UTC) (envelope-from Kashyap.Desai@lsi.com) Received: from na3sys009aog104.obsmtp.com (na3sys009aog104.obsmtp.com [74.125.149.73]) by mx1.freebsd.org (Postfix) with ESMTP id 52A7B8FC08 for ; Mon, 30 Jan 2012 10:29:30 +0000 (UTC) Received: from paledge01.lsi.com ([192.19.193.42]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTyZxCYLSaJ+3lPdxNTFbi6ye6WxyeelG@postini.com; Mon, 30 Jan 2012 02:29:30 PST Received: from PALCAS01.lsi.com (128.94.213.117) by PALEDGE01.lsi.com (192.19.193.42) with Microsoft SMTP Server (TLS) id 8.3.213.0; Mon, 30 Jan 2012 05:34:07 -0500 Received: from inbexch02.lsi.com (135.36.98.40) by PALCAS01.lsi.com (128.94.213.117) with Microsoft SMTP Server (TLS) id 8.3.213.0; Mon, 30 Jan 2012 05:29:28 -0500 Received: from inbmail01.lsi.com ([135.36.98.64]) by inbexch02.lsi.com ([135.36.98.40]) with mapi; Mon, 30 Jan 2012 15:59:25 +0530 From: "Desai, Kashyap" To: Damien Fleuriot , "freebsd-stable@freebsd.org" Date: Mon, 30 Jan 2012 15:59:24 +0530 Thread-Topic: mps module compilation issue on FreeBSD-9 amd64 Thread-Index: AczfNGikieGZTdBBQN2sjYkdY7/yMQAAHkqgAAE1XpA= Message-ID: References: <4F266748.4010602@my.gd> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: mps module compilation issue on FreeBSD-9 amd64 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 10:29:30 -0000 After applying below patch on my tree, things are working fine.. *** src/sys/conf/files.orig --- src/sys/conf/files *************** *** 1469,1476 **** --- 1469,1479 ---- dev/mmc/mmcsd.c optional mmcsd dev/mn/if_mn.c optional mn pci dev/mps/mps.c optional mps + dev/mps/mps_config.c optional mps + dev/mps/mps_mapping.c optional mps dev/mps/mps_pci.c optional mps pci dev/mps/mps_sas.c optional mps + dev/mps/mps_sas_lsi.c optional mps dev/mps/mps_table.c optional mps dev/mps/mps_user.c optional mps dev/mpt/mpt.c optional mp In LSI's new driver we have=20 mps_config.c, mps_mapping.c and mps_sas_lsi.c new files added. This needs t= o be updated in "sys/conf/files" _But_ still unresolved question is why it worked fine for i386 build and fa= iled only for amd64. Anyways, Thanks for helping me out. I am happy to continue with above menti= oned fix. ` Kashyap > -----Original Message----- > From: Desai, Kashyap > Sent: Monday, January 30, 2012 3:30 PM > To: 'Damien Fleuriot'; freebsd-stable@freebsd.org > Subject: RE: mps module compilation issue on FreeBSD-9 amd64 >=20 >=20 >=20 > > -----Original Message----- > > From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd- > > stable@freebsd.org] On Behalf Of Damien Fleuriot > > Sent: Monday, January 30, 2012 3:18 PM > > To: freebsd-stable@freebsd.org > > Subject: Re: mps module compilation issue on FreeBSD-9 amd64 > > > > > > > > On 1/30/12 10:15 AM, Desai, Kashyap wrote: > > > Hi, > > > > > > I am seeing some uncommon problem while doing compilation of mps > > driver (this is a latest driver from LSI). > > > > > > Here are the steps I followed. > > > > > > CASE-1 > > > > > > 1. remove mps directory from sys/dev and sys/module and overwrite > > those two directories with my latest code. > > > 2. go to sys/module/mps and run "make". [Things works fine.] > > > > > > CASE-2. > > > 1. remove mps directory from sys/dev and sys/module and overwrite > > those two directories with my latest code. > > > 2. go to main directory ( In my case it is "/usr/trees/9.0.0") > > > 3. Run below command > > > make -j8 buildkernel KERNCONF=3DGENERIC MODULES_OVERRIDE=3Dmps > > TARGET_ARCH=3Damd64 SYSDIR=3D/usr/trees/9.0.0/sys -DNO_CLEAN - > > DNO_KERNELCONFIG -DNO_KERNELCLEAN -DNO_KERNELDEPEND > > > > > > > Why are you multithreading your kernel build ? > > > > I might be mistaken but I've always read you're *NOT* supposed to do > > that, only with the world ! >=20 > I have also tried with "-j1". > I observe post "objcopy" .. why there is linking kernel.debug steps .? > This step is only seen for amd64 compilation. For i386, it finished > immediate after > "objcopy" prompt. >=20 >=20 > --- > objcopy --only-keep-debug mpslsi.ko.debug mpslsi.ko.symbols > objcopy --strip-debug --add-gnu-debuglink=3Dmpslsi.ko.symbols > mpslsi.ko.debug mpslsi.ko > /usr/local/bin/svnversion > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=3Dc99 -g - > Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing- > prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer- > sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show- > option -nostdinc -I. -I/usr/trees/9.0.0/sys - > I/usr/trees/9.0.0/sys/contrib/altq -D_KERNEL - > DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline- > limit=3D8000 --param inline-unit-growth=3D100 --param large-function- > growth=3D1000 -fno-omit-frame-pointer -mno-sse -mcmodel=3Dkernel -mno-re= d- > zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables - > ffreestanding -fstack-protector -Werror vers.c > linking kernel.debug >=20 > --- >=20 >=20 >=20 > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable- > > unsubscribe@freebsd.org"