Date: Mon, 30 Jan 2012 15:29:35 +0530 From: "Desai, Kashyap" <Kashyap.Desai@lsi.com> To: Damien Fleuriot <ml@my.gd>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org> Subject: RE: mps module compilation issue on FreeBSD-9 amd64 Message-ID: <B2FD678A64EAAD45B089B123FDFC3ED729A3414A66@inbmail01.lsi.com> In-Reply-To: <4F266748.4010602@my.gd> References: <B2FD678A64EAAD45B089B123FDFC3ED729A3414A58@inbmail01.lsi.com> <4F266748.4010602@my.gd>
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 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 >=20 >=20 >=20 > 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 > > >=20 > Why are you multithreading your kernel build ? >=20 > I might be mistaken but I've always read you're *NOT* supposed to do > that, only with the world ! 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 a= fter=20 "objcopy" prompt. --- 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 /usr/local/bin/svnversion 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 --- > _______________________________________________ > 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?B2FD678A64EAAD45B089B123FDFC3ED729A3414A66>