Failed to build perftest 4.4 RPM on RHEL8, many of "undefined reference" issues reported in the log

I’m trying to build Mellanox OFED from the source code on a RHEL8 host. (MLNX_OFED_SRC-5.0-2.1.8.0.tgz)

By running the install.pl and select “3) All packages (all of Basic, HPC)” to start the installation

and it finally errors out with the message “collect2: error: ld returned 1 exit status” but before that many of “undefined reference” issues reported in the rpmbuild log.

Do anyone knows the reasons?

Build perftest 4.4 RPM

Running rpmbuild --rebuild --define ‘_topdir /var/tmp/OFED_topdir’ --define ‘_sourcedir %{_topdir}/SOURCES’ --define ‘_specdir %{_topdir}/SPECS’ --define ‘_srcrpmdir %{_topdir}/SRPMS’ --define ‘_rpmdir %{_topdir}/RPMS’ --define ‘dist %{nil}’ --target s390x --define ‘_prefix /usr’ --define ‘_exec_prefix /usr’ --define ‘_sysconfdir /etc’ --define ‘_usr /usr’ /root/ofed/MLNX_OFED_SRC-5.0-2.1.8.0/SRPMS/perftest-4.4-0.23.g89e176a.50218.src.rpm

Failed to build perftest 4.4 RPM

Collecting debug info…

See /tmp/OFED.14471.logs/perftest-4.4.rpmbuild.log

[root@lpar84f MLNX_OFED_SRC-5.0-2.1.8.0]#


  • /usr/bin/make

/usr/bin/make all-am

make[1]: Entering directory ‘/var/tmp/OFED_topdir/BUILD/perftest-4.4’

CC src/get_clock.o

In file included from /usr/include/sys/time.h:21,

from src/get_clock.c:43:

/usr/include/features.h:184:3: warning: #warning “_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE” [-Wcpp]

warning “_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE”

^~~~~~~

CC src/perftest_communication.o

CC src/perftest_parameters.o

CC src/perftest_resources.o

CC src/perftest_counters.o

CC src/raw_ethernet_resources.o

AR libperftest.a

CC src/send_bw.o

CC src/multicast_resources.o

CCLD ib_send_bw

/usr/lib/gcc/s390x-redhat-linux/8/…/…/…/…/lib64/libmlx5.a(verbs.c.o): In function `create_cq’:

(.text+0x860): undefined reference to `rdmacore28_0_ibv_cmd_create_cq’

(.text+0x912): undefined reference to `rdmacore28_0_ibv_cmd_create_cq_ex’

/usr/lib/gcc/s390x-redhat-linux/8/…/…/…/…/lib64/libmlx5.a(verbs.c.o): In function `_mlx5_create_flow_action_esp’:

(.text+0x9ba): undefined reference to `rdmacore28_0_ibv_cmd_create_flow_action_esp’

/usr/lib/gcc/s390x-redhat-linux/8/…/…/…/…/lib64/libmlx5.a(verbs.c.o): In function `create_wq’:

(.text+0xe92): undefined reference to `rdmacore28_0_ibv_cmd_create_wq’

/usr/lib/gcc/s390x-redhat-linux/8/…/…/…/…/lib64/libmlx5.a(verbs.c.o): In function `create_qp’:

(.text+0x144a): undefined reference to `rdmacore28_0_ibv_cmd_create_qp_ex2’

(.text+0x199a): undefined reference to `rdmacore28_0_ibv_cmd_create_qp_ex2’

(.text+0x1bd8): undefined reference to `rdmacore28_0_ibv_cmd_create_qp_ex’

(.text+0x1c18): undefined reference to `rdmacore28_0_ibv_cmd_destroy_qp’

(.text+0x1f2c): undefined reference to `rdmacore28_0_ibv_cmd_create_qp_ex’

… omitted

(.text+0xd58): undefined reference to `rdmacore28_0__verbs_init_and_alloc_context’

(.text+0xf4a): undefined reference to `rdmacore28_0_ibv_cmd_get_context’

(.text+0x13b8): undefined reference to `rdmacore28_0_ibv_cmd_get_context’

(.text+0x13d4): undefined reference to `rdmacore28_0_ibv_cmd_get_context’

(.text+0x1456): undefined reference to `rdmacore28_0_verbs_uninit_context’

(.text+0x192a): undefined reference to `rdmacore28_0_verbs_set_ops’

(.text+0x194a): undefined reference to `rdmacore28_0_verbs_set_ops’

/usr/lib/gcc/s390x-redhat-linux/8/…/…/…/…/lib64/libmlx5.a(mlx5.c.o): In function `mlx5dv_open_device’:

(.text+0x1f72): undefined reference to `rdmacore28_0_verbs_open_device’

/usr/lib/gcc/s390x-redhat-linux/8/…/…/…/…/lib64/libmlx5.a(mlx5.c.o): In function `drv__register_driver’:

(.text.startup[.text.startup.group]+0x8): undefined reference to `rdmacore28_0_verbs_register_driver_25’

collect2: error: ld returned 1 exit status

make[1]: *** [Makefile:711: ib_send_bw] Error 1

make[1]: Leaving directory ‘/var/tmp/OFED_topdir/BUILD/perftest-4.4’

make: *** [Makefile:552: all] Error 2

error: Bad exit status from /var/tmp/rpm-tmp.SFtR26 (%build)

Regards

FuLong

perftest-4.4.rpmbuild.log (81.3 KB)

Hello FuLong,

Thank you for posting your inquiry to the Mellanox Community.

Unfortunately, we can not provide support for installation of Mellanox OFED on the s390x architecture. We only support x86_64, ppc64le and aarch64.

Since IBM Z System is developed and maintained by IBM, they will need to provide drivers that are suitable for our HCAs.

Best,

Mellanox Technical Support