[ewg] FW: issues with new build structure

Vladimir Sokolovsky vlad at dev.mellanox.co.il
Tue Mar 6 09:28:16 PST 2012


On 03/06/2012 07:06 PM, Marciniszyn, Mike wrote:
>
>
> -----Original Message-----
> From: Marciniszyn, Mike
> Sent: Tuesday, March 06, 2012 11:59 AM
> To: 'ewg at lists.openfabrics.org'
> Cc: Mascarenhas, Edward; Elken, Tom
> Subject: issues with new build structure
>
> I got the following trying the build steps.
>
> running the admin script:
>
> cp -a /home/mmarciniszyn/repos/new_ofed/linux-3.2/net/sunrpc/ ./net Copying /home/mmarciniszyn/repos/new_ofed/compat/ files...
> cp: cannot stat `/home/mmarciniszyn/repos/new_ofed/compat/include/scsi/*': No such file or directory
> Patches: patches empty, skipping...
>
> fatal: cannot describe '6343adaefb8a7a21d9ae1a018159f90f482cac61'
> Updated from local tree: /home/mmarciniszyn/repos/new_ofed/linux-3.2
> Origin remote URL: git://git.openfabrics.org/compat-rdma/linux-3.2.git
> fatal: cannot describe '55379a99264a53afa3cfc82594ee14b5513b0141'
>

This issue was fixed (added an annotated tag to the linux-3.2 git tree). Please pull linux-3.2.git.

> compat-rdma code metrics
>
>      423399 - Total upstream lines of code being pulled
>
> Base tree: linux-3.2.git
> Base tree version:
> compat-rdma release:
>
> no args to configure
> configure&&  make
>

configure script should be executed with parameters which define a set of kernel modules to be compiled.
E.g.:
# ./configure --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_en-mod --with-mlx4_ib-mod --with-cxgb3-mod --with-nes-mod 
--with-qib-mod --with-ipoib-mod --with-srp-mod --with-rds-mod
# make
# make install

> -I/usr/src/linux-2.6.27.19-5/arch/x86/include \
>    -I/home/mmarciniszyn/repos/new_ofed/compat-rdma/compat -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -I/usr/src/linux-2.6.27.19-5/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -g -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(main)"  -D"KBUILD_MODNAME=KBUILD_STR(compat)" -D"DEBUG_HASH=25" -D"DEBUG_HASH2=28" -c -o /home/mmarciniszyn/repos/new_ofed/compat-rdma/compat/.tmp_main.o /home/mmarciniszyn/repos/new_ofed/compat-rdma/compat/main.c
> In file included from /usr/src/linux-2.6.27.19-5/include/linux/textsearch.h:7,
>                   from /usr/src/linux-2.6.27.19-5/include/linux/skbuff.h:26,
>                   from /home/mmarciniszyn/repos/new_ofed/compat-rdma/include/linux/compat-2.6.28.h:8,
>                   from /home/mmarciniszyn/repos/new_ofed/compat-rdma/include/linux/compat-2.6.h:25,
>                   from<command-line>:0:
> /usr/src/linux-2.6.27.19-5/include/linux/module.h:463: warning: âstruct tracepoint_iterâ declared inside parameter list
> /usr/src/linux-2.6.27.19-5/include/linux/module.h:463: warning: its scope is only this definition or declaration, which is probably not what you want In file included from /home/mmarciniszyn/repos/new_ofed/compat-rdma/include/linux/compat-2.6.31.h:11,
>                   from /home/mmarciniszyn/repos/new_ofed/compat-rdma/include/linux/compat-2.6.h:28,
>                   from<command-line>:0:
> /home/mmarciniszyn/repos/new_ofed/compat-rdma/include/net/dst.h: In function âdst_get_neighbour_rawâ:
> /home/mmarciniszyn/repos/new_ofed/compat-rdma/include/net/dst.h:23: error: implicit declaration of function ârcu_dereference_rawâ
> /home/mmarciniszyn/repos/new_ofed/compat-rdma/include/net/dst.h:23: warning: return makes pointer from integer without a cast
> make[5]: *** [/home/mmarciniszyn/repos/new_ofed/compat-rdma/compat/main.o] Error 1
> make[4]: *** [/home/mmarciniszyn/repos/new_ofed/compat-rdma/compat] Error 2
> make[3]: *** [_module_/home/mmarciniszyn/repos/new_ofed/compat-rdma] Error 2
> make[2]: *** [sub-make] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.27.19-5-obj/x86_64/default'
> make: *** [kernel] Error 2
>
> I see that that the include stuff is wrong, but I would have thought that the export of the GIT_ stuff  would have taken care of that.
>
> Mike
>


Note: SLES11 is not supported yet.
Please try SLES11SP2 or kernel.org 3.0-3.2.

You can use OFED: http://www.openfabrics.org/downloads/OFED/ofed-3.2-daily/OFED-3.2-20120223-0313.tgz

Regards,
Vladimir



More information about the ewg mailing list