Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2012 14:45:10 +0530
From:      "Desai, Kashyap" <Kashyap.Desai@lsi.com>
To:        "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:   mps module compilation issue on FreeBSD-9 amd64
Message-ID:  <B2FD678A64EAAD45B089B123FDFC3ED729A3414A58@inbmail01.lsi.com>

next in thread | raw e-mail | index | archive | help
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 <linking ke=
rnel.debug> 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



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