[ewg] make failed when building ofed on SLES12 SP3
FuLong Wang
fulwang at linux.vnet.ibm.com
Sun Oct 25 22:15:21 PDT 2020
Yes, It's standard in-box SLES12 SP3.
I'm wondering if any additional requirements (such as need installing
additional packages) were missing in the guide.
Thanks!
--
Regards
FuLong Wang
_______________________________________________
On 8/26/20 00:26, Davis, Arlin R wrote:
> Is this the standard in-box SLES12.3 4.4 kernel? If so, OFED 4.17 should build.
>
> https://downloads.openfabrics.org/downloads/OFED/release_notes/OFED_4.17-release_notes
>
> Vlad, can you possibly help here?
>
>
>> -----Original Message-----
>> From: ewg <ewg-bounces at lists.openfabrics.org> On Behalf Of FuLong
>> Wang
>> Sent: Wednesday, August 19, 2020 12:48 AM
>> To: ewg at lists.openfabrics.org
>> Subject: Re: [ewg] make failed when building ofed on SLES12 SP3
>>
>> By the way, i'm following below guide.
>>
>> https://downloads.openfabrics.org/WorkGroups/ewg/Build%20Process/OFE
>> D-4-17-Build%20process-v2.pdf
>>
>> And i also checked the missing files as below:
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> ~~~~~~~
>>
>> sles12sp3:~/ofed/compat-rdma #
>> sles12sp3:~/ofed/compat-rdma # find / -name blkdev.h /usr/src/linux-
>> 4.4.73-5/include/linux/blkdev.h
>> /root/ofed/compat/include/linux/blkdev.h
>> sles12sp3:~/ofed/compat-rdma #
>>
>> #seems they are located on different dirs than expected.
>>
>> .........................
>>
>> les12sp3:~ #
>> sles12sp3:~ # ls -l /root/ofed/compat-rdma/drivers/infiniband/Makefile
>> ls: cannot access '/root/ofed/compat-rdma/drivers/infiniband/Makefile':
>> No such file or directory
>> sles12sp3:~ #
>>
>> #this directory is empty, does this mean my code is incomplete? I just gited
>> from the public website two days before.
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> ~~~~~~~~~~
>>
>>
>> --
>> Regards
>> FuLong Wang
>> _______________________________________________
>>
>> On 8/19/20 15:27, FuLong Wang wrote:
>>>
>>> Hello Gurus,
>>>
>>> I have trouble with building ofed 4.17 on my SLES12 SP3 server.
>>> Could anyone shed light on this?
>>>
>>> Many Thanks!
>>>
>>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>>
>>> sles12sp3:~ #
>>> sles12sp3:~ # ls -l
>>> total 24
>>> -rw------- 1 root root 668 Aug 17 13:40 .ICEauthority
>>> -rw------- 1 root root 2063 Aug 19 15:07 .bash_history
>>> drwx------ 3 root root 88 Aug 17 14:02 .cache
>>> drwx------ 9 root root 178 Aug 17 13:42 .config
>>> drwx------ 3 root root 25 Aug 17 13:16 .dbus
>>> -rw------- 1 root root 16 Aug 17 14:01 .esd_auth
>>> drwx------ 3 root root 169 Aug 17 13:40 .gnupg
>>> drwx------ 3 root root 19 Aug 17 14:01 .local
>>> -rw------- 1 root root 8862 Aug 17 14:18 .xsession-errors-:0
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Desktop
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Documents
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Downloads
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Music
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Pictures
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Public
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Templates
>>> drwxr-xr-x 2 root root 6 Aug 17 14:01 Videos
>>> drwxr-xr-x 2 root root 6 Jun 27 2017 bin
>>> drwxr-xr-x 4 root root 48 Aug 17 12:40 inst-sys
>>> drwxr-xr-x 6 root root 70 Aug 18 00:07 ofed
>>> sles12sp3:~ # cd ofed
>>> sles12sp3:~/ofed #
>>> sles12sp3:~/ofed # ls -l
>>> total 4
>>> drwxr-xr-x 12 root root 312 Aug 18 00:03 build
>>> drwxr-xr-x 9 root root 203 Aug 18 00:07 compat
>>> drwxr-xr-x 13 root root 4096 Aug 18 00:53 compat-rdma
>>> drwxr-xr-x 7 root root 90 Aug 18 00:18 linux-4.17
>>> sles12sp3:~/ofed #
>>> sles12sp3:~/ofed # cd compat-rdma/
>>> sles12sp3:~/ofed/compat-rdma #
>>> sles12sp3:~/ofed/compat-rdma # export GIT_TREE=/root/ofed/linux-4.17
>>> sles12sp3:~/ofed/compat-rdma # export
>> GIT_COMPAT_TREE=/root/ofed/compat
>>> sles12sp3:~/ofed/compat-rdma # ./scripts/admin_rdma.sh -n -p
>>> You said to use git tree at: /root/ofed/linux-4.17 for linux-next
>>> You said to use git tree at: /root/ofed/compat for compat
>>> mkdir -p ./include/linux
>>> cp -a /root/ofed/linux-4.17/include/linux/blk-mq-rdma.h ./include/linux
>>> mkdir -p ./include/linux
>>> cp -a /root/ofed/linux-4.17/include/linux/cgroup_rdma.h ./include/linux
>>> mkdir -p ./include/linux
>>> cp -a /root/ofed/linux-4.17/include/linux/mlx4/ ./include/linux
>>> mkdir -p ./include/linux
>>> cp -a /root/ofed/linux-4.17/include/linux/mlx5/ ./include/linux
>>> mkdir -p ./include/linux
>>> cp -a /root/ofed/linux-4.17/include/linux/nvme.h ./include/linux
>>> mkdir -p ./include/linux
>>> cp -a /root/ofed/linux-4.17/include/linux/nvme-rdma.h ./include/linux
>>> mkdir -p ./include/linux
>>> cp -a /root/ofed/linux-4.17/include/linux/nvme-fc-driver.h ./include/linux
>>> cp: cannot stat '/root/ofed/linux-4.17/include/linux/nvme-fc-driver.h':
>>> No such file or directory
>>>
>>> Failed executing cpsles12sp3:~/ofed/compat-rdma #
>>> sles12sp3:~/ofed/compat-rdma #
>>> sles12sp3:~/ofed/compat-rdma # ./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-mlx5-mod
>>> --with-mlx5_en-mod --withcxgb3-mod --with-cxgb4-mod --with-qib-mod
>>> --with-ipoib-mod --with-srp-mod --with-nfsrdma-mod
>>> .backports_applied does not exist. running ofed_patch.sh
>>> /root/ofed/compat-rdma/ofed_scripts/ofed_patch.sh
>>> Quilt does not exist... Going to use patch.
>>> mkdir -p /root/ofed/compat-rdma/patches
>>> touch /root/ofed/compat-rdma/patches/quiltrc
>>> getting backport dir for kernel version 4.4.73-5-default
>>> found backport dir backports
>>>
>>> Applying patches for backports kernel:
>>> /usr/bin/git checkout -b backport-backports
>>> Switched to a new branch 'backport-backports'
>>> /root/ofed/compat-rdma/backports no such directory
>>> Created configure.mk.kernel:
>>> Created /root/ofed/compat-rdma/include/generated/autoconf.h
>>> sles12sp3:~/ofed/compat-rdma #
>>> sles12sp3:~/ofed/compat-rdma # make
>>> cat: /root/ofed/compat-rdma/compat_version: No such file or directory
>>> cat: /root/ofed/compat-rdma/compat_version: No such file or directory
>>> grep: /lib/modules/4.4.73-5-default/build/include/linux/blkdev.h: No
>>> such file or directory
>>> grep: 4.4.73-5-default/include/linux/blkdev.h: No such file or directory
>>> cat: /root/ofed/compat-rdma/compat_version: No such file or directory
>>> cat: /root/ofed/compat-rdma/compat_version: No such file or directory
>>> cat: compat_base: No such file or directory
>>> cat: compat_base_tree: No such file or directory
>>> cat: compat_base_tree_version: No such file or directory
>>> cat: compat_version: No such file or directory
>>> cat: /root/ofed/compat-rdma/compat_version: No such file or directory
>>> Building kernel modules
>>> Kernel version: 4.4.73-5-default
>>> Modules directory: //lib/modules/4.4.73-5-default/updates
>>> Kernel sources: /lib/modules/4.4.73-5-default/build
>>> env CWD=/root/ofed/compat-rdma BACKPORT_INCLUDES= \
>>> make -C /lib/modules/4.4.73-5-default/build
>>> M="/root/ofed/compat-rdma" \
>>> V=0 KBUILD_NOCMDDEP=1 \
>>> \
>>> LINUXINCLUDE=' \
>>> -D__OFED_BUILD__ \
>>> -D__KERNEL__ \
>>> -DCOMPAT_BASE="\"\"" -DCOMPAT_BASE_TREE="\"\""
>>> -DCOMPAT_BASE_TREE_VERSION="\"\"" -
>> DCOMPAT_PROJECT="\"Compat-rdma\""
>>> -DCOMPAT_VERSION="\"\"" \
>>> -include
>>> /lib/modules/4.4.73-5-default/build/include/generated/autoconf.h \
>>> -include
>>> /lib/modules/4.4.73-5-default/source/include/linux/kconfig.h \
>>> -include /root/ofed/compat-rdma/include/linux/compat-2.6.h \
>>> \
>>> \
>>> \
>>> -I/root/ofed/compat-rdma/include \
>>> -I/root/ofed/compat-rdma/include/uapi \
>>> -I/root/ofed/compat-rdma/drivers/infiniband/debug \
>>> -I/usr/local/include/scst \
>>> -I/root/ofed/compat-rdma/drivers/infiniband/ulp/srpt \
>>> $(if
>>> $(CONFIG_XEN),-
>> D__XEN_INTERFACE_VERSION__=$(CONFIG_XEN_INTERFACE_VERSION))
>>> \
>>> $(if $(CONFIG_XEN),-I$(srctree)/arch/x86/include/mach-xen) \
>>> -I$(srctree)/arch/$(SRCARCH)/include \
>>> -Iarch/$(SRCARCH)/include/generated \
>>> -Iinclude \
>>> -I$(srctree)/arch/$(SRCARCH)/include/uapi \
>>> -Iarch/$(SRCARCH)/include/generated/uapi \
>>> -I$(srctree)/include \
>>> -I$(srctree)/include/uapi \
>>> -Iinclude/generated/uapi \
>>> $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
>>> -I$(srctree)/arch/$(SRCARCH)/include \
>>> -Iarch/$(SRCARCH)/include/generated \
>>> ' \
>>> modules
>>> make[1]: Entering directory '/usr/src/linux-4.4.73-5-obj/x86_64/default'
>>> /usr/src/linux-4.4.73-5/scripts/Makefile.build:44:
>>> /root/ofed/compat-rdma/drivers/infiniband/Makefile: No such file or
>>> directory
>>> make[5]: *** No rule to make target
>>> '/root/ofed/compat-rdma/drivers/infiniband/Makefile'. Stop.
>>> /usr/src/linux-4.4.73-5/scripts/Makefile.build:418: recipe for target
>>> '/root/ofed/compat-rdma/drivers/infiniband' failed
>>> make[4]: *** [/root/ofed/compat-rdma/drivers/infiniband] Error 2
>>> /usr/src/linux-4.4.73-5/Makefile:1428: recipe for target
>>> '_module_/root/ofed/compat-rdma' failed
>>> make[3]: *** [_module_/root/ofed/compat-rdma] Error 2
>>> Makefile:150: recipe for target 'sub-make' failed
>>> make[2]: *** [sub-make] Error 2
>>> Makefile:24: recipe for target '__sub-make' failed
>>> make[1]: *** [__sub-make] Error 2
>>> make[1]: Leaving directory '/usr/src/linux-4.4.73-5-obj/x86_64/default'
>>> makefile:70: recipe for target 'kernel' failed
>>> make: *** [kernel] Error 2
>>> sles12sp3:~/ofed/compat-rdma #
>>>
>>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>>
>>>
>> _______________________________________________
>> ewg mailing list
>> ewg at lists.openfabrics.org
>> https://lists.openfabrics.org/mailman/listinfo/ewg
More information about the ewg
mailing list