Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2012 14:49:12 +0530
From:      "Desai, Kashyap" <Kashyap.Desai@lsi.com>
To:        "Desai, Kashyap" <Kashyap.Desai@lsi.com>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Cc:        "gibbs@FreeBSD.org" <gibbs@FreeBSD.org>, "Kenneth D. Merry" <ken@FreeBSD.org>, "McConnell, Stephen" <Stephen.McConnell@lsi.com>
Subject:   RE: mps module compilation issue on FreeBSD-9 amd64
Message-ID:  <B2FD678A64EAAD45B089B123FDFC3ED729A3414A59@inbmail01.lsi.com>
In-Reply-To: <B2FD678A64EAAD45B089B123FDFC3ED729A3414A58@inbmail01.lsi.com>
References:  <B2FD678A64EAAD45B089B123FDFC3ED729A3414A58@inbmail01.lsi.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----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 <linking
> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B2FD678A64EAAD45B089B123FDFC3ED729A3414A59>