[LU-7328] lustre 2.5.3 in b2_5 FE failed to configure with Mellanox OFED 3.1 (rhel 6.6) Created: 22/Oct/15  Updated: 20/Dec/23  Resolved: 22/Oct/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.5.3
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Jay Lan (Inactive) Assignee: Andreas Dilger
Resolution: Not a Bug Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

I was able to build lustre 2.5.3 in b2_5 FE under rhel6.6 and Mellanox 3.0.

To resolve a production system issue we were asked to upgrade HCA firmware which requires Mellanox OFED 3.1.

The configuration failed with Mellanox 3.1:

configure:15719: checking whether to use Compat RDMA
configure:15785: result: yes
configure:15818: checking whether to use any OFED backport headers
configure:15826: result: no
configure:15830: checking whether to enable OpenIB gen2 support
configure:15875: cp conftest.c build && make -d modules LD=/usr/bin/ld -m elf_x86_64 CC=gcc -f /tmp.chroot/nas-2.5.3-fe/build/Makefile LUSTRE_LINUX_CONFIG=/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/.config LINUXINCLUDE= -DCONFIG_COMPAT_RHEL_6_4 -DCONFIG_COMPAT_RHEL_6_5 -DCONFIG_COMPAT_RHEL_6_6 -I/usr/src/ofa_kernel/nasa/include -I/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/arch/x86/include -I/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/arch/x86/include/generated -Iinclude -I/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/include -Iinclude2 -I/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/include/uapi -I/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/include/generated -I/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa/include/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -o tmp_include_depends -o scripts -o include/config/MARKER -C /usr/src/kernels/2.6.32-504.30.3.el6.20151008.x86_64.nasa EXTRA_CFLAGS=-Werror-implicit-function-declaration -g -I/tmp.chroot/nas-2.5.3-fe/libcfs/include -I/tmp.chroot/nas-2.5.3-fe/lnet/include -I/tmp.chroot/nas-2.5.3-fe/lustre/include M=/tmp.chroot/nas-2.5.3-fe/build
In file included from /usr/src/ofa_kernel/nasa/include/linux/compat-2.6.h:68,
from /usr/src/ofa_kernel/nasa/include/linux/pci.h:5,
from /tmp.chroot/nas-2.5.3-fe/build/conftest.c:41:
/usr/src/ofa_kernel/nasa/include/linux/compat-3.3.h:36: error: conflicting types for 'netdev_features_t'
include/linux/netdevice.h:990: note: previous declaration of 'netdev_features_t' was here
In file included from /usr/src/ofa_kernel/nasa/include/linux/compat-2.6.h:70,
from /usr/src/ofa_kernel/nasa/include/linux/pci.h:5,
from /tmp.chroot/nas-2.5.3-fe/build/conftest.c:41:
/usr/src/ofa_kernel/nasa/include/linux/compat-3.5.h:141: error: redefinition of 'struct ieee_maxrate'
In file included from /usr/src/ofa_kernel/nasa/include/linux/compat-2.6.h:76,
from /usr/src/ofa_kernel/nasa/include/linux/pci.h:5,
from /tmp.chroot/nas-2.5.3-fe/build/conftest.c:41:
/usr/src/ofa_kernel/nasa/include/linux/compat-3.11.h:22: error: redeclaration of enumerator 'IFLA_VF_LINK_STATE_AUTO'
include/linux/if_link.h:353: note: previous definition of 'IFLA_VF_LINK_STATE_AUTO' was here
/usr/src/ofa_kernel/nasa/include/linux/compat-3.11.h:23: error: redeclaration of enumerator 'IFLA_VF_LINK_STATE_ENABLE'
include/linux/if_link.h:354: note: previous definition of 'IFLA_VF_LINK_STATE_ENABLE' was here
/usr/src/ofa_kernel/nasa/include/linux/compat-3.11.h:24: error: redeclaration of enumerator 'IFLA_VF_LINK_STATE_DISABLE'
include/linux/if_link.h:355: note: previous definition of 'IFLA_VF_LINK_STATE_DISABLE' was here
/usr/src/ofa_kernel/nasa/include/linux/compat-3.11.h:25: error: redeclaration of enumerator '__IFLA_VF_LINK_STATE_MAX'
include/linux/if_link.h:356: note: previous definition of '__IFLA_VF_LINK_STATE_MAX' was here
In file included from /usr/src/ofa_kernel/nasa/include/linux/compat-2.6.h:77,
from /usr/src/ofa_kernel/nasa/include/linux/pci.h:5,
from /tmp.chroot/nas-2.5.3-fe/build/conftest.c:41:
/usr/src/ofa_kernel/nasa/include/linux/compat-3.12.h:56: warning: 'enum pci_bus_speed' declared inside parameter list
/usr/src/ofa_kernel/nasa/include/linux/compat-3.12.h:56: warning: its scope is only this definition or declaration, which is probably not what you want
make[1]: *** [/tmp.chroot/nas-2.5.3-fe/build/conftest.o] Error 1
make: *** [_module_/tmp.chroot/nas-2.5.3-fe/build] Error 2



 Comments   
Comment by Jay Lan (Inactive) [ 22/Oct/15 ]

My mistake. Please reject this.

Comment by John Fuchs-Chesney (Inactive) [ 22/Oct/15 ]

Thanks Jay.
~ jfc.

Comment by Gerrit Updater [ 30/Nov/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53304
Subject: LU-7328 misc: no non-ASCII characters in commit messages
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2c9b04d790599729ff2904e496ccc7753ce47536

Comment by Gerrit Updater [ 20/Dec/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/53304/
Subject: LU-7328 misc: no non-ASCII characters in commit messages
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f76d6ecc788a522916469f202f2e7f0d7cee1b77

Generated at Sat Feb 10 02:07:56 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.