From owner-freebsd-stable@FreeBSD.ORG Mon Jan 30 09:15:19 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 4AC1A1065670; Mon, 30 Jan 2012 09:15:19 +0000 (UTC) (envelope-from Kashyap.Desai@lsi.com) Received: from na3sys009aog103.obsmtp.com (na3sys009aog103.obsmtp.com [74.125.149.71]) by mx1.freebsd.org (Postfix) with ESMTP id 59C868FC15; Mon, 30 Jan 2012 09:15:18 +0000 (UTC) Received: from paledge01.lsi.com ([192.19.193.42]) (using TLSv1) by na3sys009aob103.postini.com ([74.125.148.12]) with SMTP ID DSNKTyZfpbx6f4hiNqTanUBpBV6Z3qu2N+Cu@postini.com; Mon, 30 Jan 2012 01:15:18 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:19:55 -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:15:16 -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:45:13 +0530 From: "Desai, Kashyap" To: "freebsd-stable@freebsd.org" , "freebsd-current@freebsd.org" Date: Mon, 30 Jan 2012 14:45:10 +0530 Thread-Topic: mps module compilation issue on FreeBSD-9 amd64 Thread-Index: AczfL6p2onvxGYiiRyaw+Lm85o015Q== Message-ID: 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: 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:15:19 -0000 Hi, I am seeing some uncommon problem while doing compilation of mps driver (th= is is a latest driver from LSI). Here are the steps I followed. 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.] 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=20 make -j8 buildkernel KERNCONF=3DGENERIC MODULES_OVERRIDE=3Dmps TARGET_ARCH= =3Damd64 SYSDIR=3D/usr/trees/9.0.0/sys -DNO_CLEAN -DNO_KERNELCONFIG -DNO_KE= RNELCLEAN -DNO_KERNELDEPEND Here I am seeing mps.ko file is generated, but it is failing at steps. (this step is only seen in CASE-1). Any Idea How to resolve this issue ? INFO: I am using FreeBSD-8.2-Release amd64.case-1 and case-2 both passes fo= r i386. \\\\ --- Compilation failure log for CASE-2 ---- 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.deb= ug mpslsi.ko cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=3Dc99 -g -Wal= l -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototy= pes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fforma= t-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 -DH= AVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit= =3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D10= 00 -fno-omit-frame-pointer -mno-sse -mcmodel=3Dkernel -mno-red-zone -mno-m= mx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-pro= tector -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_mappin= g_initialize' mps.o: In function `mps_free': /usr/trees/9.0.0/sys/dev/mps/mps.c:1410: undefined reference to `mps_mappin= g_free_memory' mps.o: In function `mps_attach': /usr/trees/9.0.0/sys/dev/mps/mps.c:1204: undefined reference to `mps_base_s= tatic_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_m= apping_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_c= onfig_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 TAR= GET_ARCH=3Damd64 SYSDIR=3D/usr/trees/9.0.0/sys -DNO_CLEAN -DNO_KERNELCONFIG= -DNO_KERNELCLEAN -DNO_KERNELDEPEND