- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using Centos 6.7, kernel 2.6.32-573.3.1.el6.x86_64, OFED 3.18-1. From the release information I see that mpss 3.6 is supported on RH6.7, but I do not see the corresponding ofed-driver package in mpss-3.6/ofed/modules. I tried to build it myself, but I ran into the following error trying to rpmbuild ofed-driver in mpss-3.6/src
-I/usr/src/kernels/2.6.32-573.3.1.el6.x86_64/arch/x86/include \ -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -Idrivers/infiniband/include -ggdb -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(sdp_main)" -D"KBUILD_MODNAME=KBUILD_STR(ib_sdp)" -D"DEBUG_HASH=40" -D"DEBUG_HASH2=62" -c -o /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/.tmp_sdp_main.o /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c: In function 'sdp_mark_push': /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c:1349: error: 'TCPCB_FLAG_PSH' undeclared (first use in this function) /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c:1349: error: (Each undeclared identifier is reported only once /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c:1349: error: for each function it appears in.) /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c: In function 'sdp_mark_urg': /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c:1625: error: 'TCPCB_FLAG_URG' undeclared (first use in this function) /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c: In function 'sdp_sendmsg': /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c:1986: error: 'TCPCB_FLAG_PSH' undeclared (first use in this function) /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c: At top level: /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c:2872: warning: initialization from incompatible pointer type /root/rpmbuild/BUILD/ofed-driver/ofa_kernel-1.5.4.1/drivers/infiniband/ulp/sdp/sdp_main.c:2879: warning: initialization from incompatible pointer type
It seems that there is a patch for this problem in ofed-driver/ofa_kernel-1.5.4.1/kernel_patches/backport/2.6.36/sdp_0190_for_2.6.36.patch, but it is not applied on my system. Also, I see no RH6.7 directory with patches. kernel_patches/backport/2.6.32-EL6.6 is applied instead.
Could anyone help me with this?
Thanks a lot!
Marcin Krotkiewski
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been having problems building the ofed-driver source RPM, as well. I've installed MPSS 6.7 also. My kernel is 2.6.32-573.8.1. I'm using Mellanox OFED 2.4-1.0.4. Please advise.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had the same problem. To solve it you have to:
- Unpack the rpm
- Unpack src/pristine/ofa_kernel-1.5.4.1.tgz
- Copy the ofed-driver/ofa_kernel-1.5.4.1/kernel_patches/backport/2.6.36/sdp_0190_for_2.6.36.patch file into patches/2.6.32-EL6.6
- Delete $HOME/rpmbuild/SOURCES/ofed-driver.tgz if it exists
- Copy the newly created ofed-driver.tgz into $HOME/rpmbuild/SOURCES
- Recreate the RPM with rpmbuild -bs intel-mic-ofed-kmod.spec at the top level
- Run rpmbuild --rebuild $HOME/rpmbuild/RPMS/x86_64/ofed-driver-[...].rpm
That should be it. I hope that helps somebody that bumps into the same issue.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page