Project

General

Profile

Bug #44012

shaman build error: (bionic+crimson): infiniband: error: aggregate 'main()::ibv_exp_gid_attr gid_attr' has incomplete type and cannot be defined

Added by Sebastian Wagner 9 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

https://shaman.ceph.com/builds/ceph/wip-swagner-testing/3f9622d20ae8c91019b8fb97e46196113164006a/crimson/188435/
https://jenkins.ceph.com/job/ceph-dev-new-build/ARCH=x86_64,AVAILABLE_ARCH=x86_64,AVAILABLE_DIST=bionic,DIST=bionic,MACHINE_SIZE=huge/36282//consoleFull

Run Build Command:"/usr/bin/make" "cmTC_1399f/fast" 
make[2]: Entering directory '/build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_1399f.dir/build.make CMakeFiles/cmTC_1399f.dir/build
make[3]: Entering directory '/build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_1399f.dir/src.cxx.o
/usr/bin/c++    -g -O2 -fdebug-prefix-map=/build/ceph-15.1.0-264-g3f9622d=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_IBV_EXP -fPIE   -o CMakeFiles/cmTC_1399f.dir/src.cxx.o -c /build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.cxx
/build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.cxx: In function 'int main()':
/build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.cxx:5:31: error: aggregate 'main()::ibv_exp_gid_attr gid_attr' has incomplete type and cannot be defined
    5 |       struct ibv_exp_gid_attr gid_attr;
      |                               ^~~~~~~~
/build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.cxx:6:7: error: 'ibv_exp_query_gid_attr' was not declared in this scope; did you mean 'ibv_exp_gid_attr'?
    6 |       ibv_exp_query_gid_attr(ctxt, 1, 0, &gid_attr);
      |       ^~~~~~~~~~~~~~~~~~~~~~
      |       ibv_exp_gid_attr
CMakeFiles/cmTC_1399f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_1399f.dir/src.cxx.o' failed
make[3]: *** [CMakeFiles/cmTC_1399f.dir/src.cxx.o] Error 1
make[3]: Leaving directory '/build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_1399f/fast' failed
make[2]: *** [cmTC_1399f/fast] Error 2
make[2]: Leaving directory '/build/ceph-15.1.0-264-g3f9622d/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'

Source file was:

    #include <infiniband/verbs.h>
    int main() {
      struct ibv_context* ctxt;
      struct ibv_exp_gid_attr gid_attr;
      ibv_exp_query_gid_attr(ctxt, 1, 0, &gid_attr);
      return 0;
    } 
dh_auto_configure: cd obj-x86_64-linux-gnu && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF -DWITH_PYTHON3=3 -DWITH_CEPHFS_JAVA=ON -DWITH_CEPHFS_SHELL=ON -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=/lib/systemd/system -DBOOST_J=8 -DWITH_BOOST_CONTEXT=ON -DWITH_SEASTAR=ON -DWITH_STATIC_LIBSTDCXX=OFF returned exit code 1
debian/rules:47: recipe for target 'override_dh_auto_configure' failed
make[1]: *** [override_dh_auto_configure] Error 2
make[1]: Leaving directory '/build/ceph-15.1.0-264-g3f9622d'
debian/rules:44: recipe for target 'build' failed
make: *** [build] Error 2

History

#1 Updated by Deepika Upadhyay 5 months ago

faced the same issue locally, turns out libcurl.so was not found, added it manually, seems to work.

Also available in: Atom PDF