From owner-freebsd-stable@FreeBSD.ORG Mon Jan 30 09:19:20 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 2EEF21065670; Mon, 30 Jan 2012 09:19:20 +0000 (UTC) (envelope-from Kashyap.Desai@lsi.com) Received: from na3sys009aog121.obsmtp.com (na3sys009aog121.obsmtp.com [74.125.149.145]) by mx1.freebsd.org (Postfix) with ESMTP id 3B51F8FC12; Mon, 30 Jan 2012 09:19:18 +0000 (UTC) Received: from paledge01.lsi.com ([192.19.193.42]) (using TLSv1) by na3sys009aob121.postini.com ([74.125.148.12]) with SMTP ID DSNKTyZglv3LABLoRTgDSNTvVe677m/jC2y8@postini.com; Mon, 30 Jan 2012 01:19:19 PST Received: from PALHUB01.lsi.com (128.94.213.114) by PALEDGE01.lsi.com (192.19.193.42) with Microsoft SMTP Server (TLS) id 8.3.213.0; Mon, 30 Jan 2012 04:23:56 -0500 Received: from inbexch02.lsi.com (135.36.98.40) by PALHUB01.lsi.com (128.94.213.114) with Microsoft SMTP Server (TLS) id 8.3.213.0; Mon, 30 Jan 2012 04:19:17 -0500 Received: from inbmail01.lsi.com ([135.36.98.64]) by inbexch02.lsi.com ([135.36.98.40]) with mapi; Mon, 30 Jan 2012 14:49:14 +0530 From: "Desai, Kashyap" To: "Desai, Kashyap" , "freebsd-stable@freebsd.org" , "freebsd-current@freebsd.org" Date: Mon, 30 Jan 2012 14:49:12 +0530 Thread-Topic: mps module compilation issue on FreeBSD-9 amd64 Thread-Index: AczfL6p2onvxGYiiRyaw+Lm85o015QAAE/8w Message-ID: References: In-Reply-To: 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: "gibbs@FreeBSD.org" , "Kenneth D. Merry" , "McConnell, Stephen" 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 09:19:20 -0000 > -----Original Message----- > From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd- > stable@freebsd.org] On Behalf Of Desai, Kashyap > Sent: Monday, January 30, 2012 2:45 PM > To: freebsd-stable@freebsd.org; freebsd-current@freebsd.org > Cc: gibbs@FreeBSD.org; Kenneth D. Merry; McConnell, Stephen > Subject: mps module compilation issue on FreeBSD-9 amd64 >=20 > Hi, >=20 > I am seeing some uncommon problem while doing compilation of mps driver > (this is a latest driver from LSI). >=20 > Here are the steps I followed. >=20 > CASE-1 >=20 > 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.] >=20 > 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 >=20 > Here I am seeing mps.ko file is generated, but it is failing at kernel.debug> steps. (this step is only seen in CASE-1). Typo: It should be=09 this step is only seen in CASE-2. Also, I have first finished buildworld before I tried mps (LSI driver) comp= ilation. > Any Idea How to resolve this issue ? >=20 > INFO: I am using FreeBSD-8.2-Release amd64.case-1 and case-2 both passes > for i386. \\\\ >=20 > --- Compilation failure log for CASE-2 ---- >=20 > ld -d -warn-common -r -d -o mpslsi.ko.debug mps_pci.o mps.o mps_sas.o > mps_table.o mps_user.o mps_config.o mps_mapping.o mps_sas_lsi.o > :> export_syms > awk -f /usr/trees/9.0.0/sys/conf/kmod_syms.awk mpslsi.ko.debug > export_syms | xargs -J% objcopy % mpslsi.ko.debug > /usr/local/bin/svnversion > objcopy --only-keep-debug mpslsi.ko.debug mpslsi.ko.symbols > objcopy --strip-debug --add-gnu-debuglink=3Dmpslsi.ko.symbols > mpslsi.ko.debug mpslsi.ko > 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 > mps.o: In function `mps_startup': > /usr/trees/9.0.0/sys/dev/mps/mps.c:1249: undefined reference to > `mps_mapping_initialize' > mps.o: In function `mps_free': > /usr/trees/9.0.0/sys/dev/mps/mps.c:1410: undefined reference to > `mps_mapping_free_memory' > mps.o: In function `mps_attach': > /usr/trees/9.0.0/sys/dev/mps/mps.c:1204: undefined reference to > `mps_base_static_config_pages' > /usr/trees/9.0.0/sys/dev/mps/mps.c:1224: undefined reference to > `mpssas_ir_shutdown' > mps_sas.o: In function `mps_attach_sas': > /usr/trees/9.0.0/sys/dev/mps/mps_sas.c:614: undefined reference to > `mpssas_firmware_event_work' > mps_sas.o: In function `mpssas_register_events': > /usr/trees/9.0.0/sys/dev/mps/mps_sas.c:576: undefined reference to > `mpssas_evt_handler' > mps_sas.o: In function `mpssas_portenable_complete': > /usr/trees/9.0.0/sys/dev/mps/mps_sas.c:3069: undefined reference to > `mps_wd_config_pages' > mps_user.o: In function `mps_user_btdh': > /usr/trees/9.0.0/sys/dev/mps/mps_user.c:2038: undefined reference to > `mps_mapping_get_sas_id_from_handle' > mps_user.o: In function `mps_user_get_adapter_data': > /usr/trees/9.0.0/sys/dev/mps/mps_user.c:1101: undefined reference to > `mps_config_get_bios_pg3' > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > Failed : 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 > _______________________________________________ > 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"