Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2016 14:26:26 +0000
From:      KrishnamRaju ErapaRaju <Krishna2@chelsio.com>
To:        Hans Petter Selasky <hps@selasky.org>, "freebsd-infiniband@freebsd.org" <freebsd-infiniband@freebsd.org>
Subject:   RE: OFED v3.2 update  
Message-ID:  <4EAB2619577FCA4EBCE11F17B7373447C4309255@nice.asicdesigners.com>

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

Hello Hans,


I could apply  OFED 3.2 patches cleanly to r298617 but failed to build(buil=
dworld), below is the compile error:(more error log at the bottom of this m=
ail)
            bmake[5]: bmake[5]: don't know how to make buf.c. Stop

I took the latest OFED 3.2 patchsets as of today. And applied the patches w=
ith commands: "patch --remove-empty-files -F 30 -i /usr/src/ofed3.2/D5790.d=
iff"

Here is my config file:

diff -r 5615b648049d sys/amd64/conf/GENERIC
--- a/sys/amd64/conf/GENERIC    Tue Apr 26 05:21:27 2016 +0000
+++ b/sys/amd64/conf/GENERIC    Mon Apr 25 15:34:54 2016 +0530
@@ -21,8 +21,9 @@
-makeoptions    DEBUG=3D-g                # Build kernel with gdb(1) debug =
symbols
+makeoptions    DEBUG=3D"-g -O0"          # Build kernel with gdb(1) debug =
symbols
+options KSTACK_PAGES=3D16
+options KTR
+options KTR_COMPILE=3DKTR_SPARE3
+options KTR_MASK=3DKTR_SPARE3
+options KTR_ENTRIES=3D65536
+options BREAK_TO_DEBUGGER
+options LINUXKPI


-------------------------------COMPILE ERROR LOG--------------------
cc   -O2 -pipe -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/compat/openso=
laris -I/usr/src/cddl/lib/libzpool/../../compat/opensolaris/include -I/usr/=
src/cddl/lib/libzpool/../../compat/opensolaris/lib/libumem -I/usr/src/cddl/=
lib/libzpool/../../contrib/opensolaris/lib/libzpool/common -I/usr/src/cddl/=
lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/usr/sr=
c/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs=
 -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/common/=
zfs -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/=
common -I/usr/src/cddl/lib/libzpool/../../contrib/opensolaris/head -I/usr/s=
rc/cddl/lib/libzpool/../../lib/libumem -I/usr/src/cddl/lib/libzpool/../../c=
ontrib/opensolaris/lib/libnvpair -DWANTS_MUTEX_OWNED -I/usr/src/cddl/lib/li=
bzpool/../../../lib/libpthread/thread -I/usr/src/cddl/lib/libzpool/../../..=
/lib/libpthread/sys -I/usr/src/cddl/lib/libzpool/../../../lib/libthr/arch/a=
md64/include -g -DDEBUG=3D1   -DNEED_SOLARIS_BOOLEAN -MD  -MF.depend.dmu_zf=
etch.o -MTdmu_zfetch.o -std=3Diso9899:1999 -fstack-protector-strong -Wno-po=
inter-sign -Wno-unknown-pragmas -Wno-empty-body -Wno-string-plus-int -Wno-u=
nused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-paren=
theses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local=
-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-pare=
ntheses  -Qunused-arguments  -c /usr/src/cddl/lib/libzpool/../../../sys/cdd=
l/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c -o dmu_zfetch.o
--- contrib/ofed/usr.lib__L ---
bmake[5]: bmake[5]: don't know how to make buf.c. Stop

bmake[5]: stopped in /usr/src/contrib/ofed/usr.lib/libmlx5
--- kerberos5/lib__L ---
--- asn1_MechTypeList.c ---
--- contrib/ofed/usr.lib__L ---


Command used for compilation:
-> make  -j4 buildworld WITH_OFED=3DYES
-> make -j4  buildkernel WITH_OFED=3DYES





Am I missing something here?, please guide me in successfully building the =
kernel/world with OFED 3.2 pathes.

Thanks,
Krishna.
-----Original Message-----
From: owner-freebsd-infiniband@freebsd.org [mailto:owner-freebsd-infiniband=
@freebsd.org] On Behalf Of Hans Petter Selasky
Sent: Thursday, March 31, 2016 3:21 PM
To: freebsd-infiniband@freebsd.org
Subject: OFED v3.2 update

Dear users of infiniband in FreeBSD:


Mellanox is working on a big infiniband update towards mellanox OFED
v3.2 of the infiniband stack (ibcore), drivers (mlx4/mlx5) and libraries (l=
ibrdma, libibverbs ...). Currently there are 10-patches in different areas =
of the FreeBSD kernel and userspace which you need to apply to 11-current a=
s of today to get a working GENERIC kernel.

Compile world and kernel like this after applying the patches below:

make buildkernel WITH_OFED=3DYES
make buildworld WITH_OFED=3DYES


https://reviews.freebsd.org/D5790
https://reviews.freebsd.org/D5791
https://reviews.freebsd.org/D5792
https://reviews.freebsd.org/D5793
https://reviews.freebsd.org/D5794
https://reviews.freebsd.org/D5795
https://reviews.freebsd.org/D5796
https://reviews.freebsd.org/D5797
https://reviews.freebsd.org/D5798
https://reviews.freebsd.org/D5799


The patches are work in progress, though at a level where basic infiniband =
is working with MLX5.


Known issues:
- LINT build is broken (Will be fixed before committing. Waiting for=20
solution from Navdeep)
- Need to unload ipoib before mlx5ib.

--HPS
_______________________________________________
freebsd-infiniband@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-infiniband
To unsubscribe, send any mail to "freebsd-infiniband-unsubscribe@freebsd.or=
g"



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