Skip to content

Compilation problem #127

Closed
Closed

Description

@shamisp

SLES10:

make[2]: Entering directory `/autofs/na3_home1/buildbot/buildbot/pod10/ucx-sles10-x86_64/build/src/uct'
  CC     tl/libuct_la-context.lo
  CC     tl/libuct_la-tl_base.lo
  CC     ib/ud/libuct_la-ud_verbs.lo
  CC     ib/ud/libuct_la-ud_iface.lo
  CC     ib/ud/libuct_la-ud_ep.lo
  CC     ib/base/libuct_la-ib_context.lo
  CC     ib/base/libuct_la-ib_device.lo
  CC     ib/base/libuct_la-ib_iface.lo
cc1: warnings being treated as errors
ib/ud/ud_verbs.c: In function 'uct_ud_verbs_iface_poll_tx':
ib/ud/ud_verbs.c:140: warning: implicit declaration of function 'ibv_wc_status_str'
ib/ud/ud_verbs.c:140: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
ib/ud/ud_verbs.c: In function 'uct_ud_verbs_iface_poll_rx':
ib/ud/ud_verbs.c:165: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
make[2]: *** [ib/ud/libuct_la-ud_verbs.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: warnings being treated as errors
ib/base/ib_device.c: In function 'uct_ib_async_event_handler':
ib/base/ib_device.c:181: warning: implicit declaration of function 'ibv_event_type_str'
ib/base/ib_device.c:181: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:181: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:191: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:191: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:200: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:200: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:213: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:213: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:225: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c:225: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
ib/base/ib_device.c: In function 'uct_ib_device_create':
ib/base/ib_device.c:331: warning: implicit declaration of function 'ibv_node_type_str'
ib/base/ib_device.c:331: warning: format '%s' expects type 'char *', but argument 7 has type 'int'
make[2]: *** [ib/base/libuct_la-ib_device.lo] Error 1
make[2]: Leaving directory `/autofs/na3_home1/buildbot/buildbot/pod10/ucx-sles10-x86_64/build/src/uct'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/autofs/na3_home1/buildbot/buildbot/pod10/ucx-sles10-x86_64/build'
make: *** [all] Error 2
program finished with exit code 2

Activity

  1. yosefe commented on Feb 19, 2015

    @yosefe
    Member

    missing functions:
    ibv_wc_status_str
    ibv_event_type_str

  2. shamisp commented on Feb 19, 2015

    @shamisp
    ContributorAuthor
    [pod10:~:1003]$ rpm -qi libibverbs
    Name        : libibverbs                   Relocations: (not relocatable)
    Version     : 1.1.1                             Vendor: (none)
    Release     : 1.ofed1.3.1                   Build Date: Thu 30 Sep 2010 03:10:17 PM EDT
    Install Date: Wed 28 Mar 2012 05:56:07 PM EDT      Build Host: jaguar-ext4.ccs.ornl.gov
    Group       : System Environment/Libraries   Source RPM: libibverbs-1.1.1-1.ofed1.3.1.src.rpm
    Size        : 283218                           License: GPLv2 or BSD
    Signature   : DSA/SHA1, Fri 01 Oct 2010 10:03:30 AM EDT, Key ID 2e5b3d940070e0c4
    URL         : http://openfabrics.org/
    Summary     : A library for direct userspace use of InfiniBand hardware
    Description :
    libibverbs is a library that allows userspace processes to use
    InfiniBand "verbs" as described in the InfiniBand Architecture
    Specification.  This includes direct hardware access for fast path
    operations.
    
    For this library to be useful, a device-specific plug-in module should
    also be installed.
    Distribution: (none)
    
  3. shamisp commented on Feb 20, 2015

    @shamisp
    ContributorAuthor

    probably we can borrow these two from VERBs

  4. yosefe commented on Feb 22, 2015

    @yosefe
    Member

    Looks like this system has OFED 1.3.1. I don't think we should support such old version.
    I'll add a check to make sure these functions exist, but i don't want to support it.

  5. shamisp commented on Feb 22, 2015

    @shamisp
    ContributorAuthor

    This is 5 years old driver and might be reasonable to drop support for this version. Nevertheless, the configuration script should instruct users to update the driver to a certain version. The minimum driver requirements must be clearly defined. IMHO reporting missing function declaration is not enough.

  6. yosefe commented on Feb 22, 2015

    @yosefe
    Member

    AFAIK there is no better way to check for OFED version during ./configure. Besides, the libiverbs could be "inbox", i.e part of the distro. I know this is not ideal...
    How do you think we should do it? Maybe check version of libibverbs-devel rpm?

  7. shamisp commented on Feb 22, 2015

    @shamisp
    ContributorAuthor

    I think the way you check today is fine. There is no better way of doing this for verbs
    I would enhance the error message, something like:

    OFED version 1.X and above is required for the UCX build process with Mellanox InfiniBand/ROCEE support.
    The latest version of OFED can be found here: YYY

    From: Yossi Itigin [mailto:notifications@github.com]
    Sent: Sunday, February 22, 2015 10:31 AM
    To: uccs/ucx
    Cc: Shamis, Pavel
    Subject: Re: [ucx] Compilation problem (#127)

    AFAIK there is no better way to check for OFED version during ./configure. Besides, the libiverbs could be "inbox", i.e part of the distro. I know this is not ideal...
    How do you think we should do it? Maybe check version of libibverbs-devel rpm?

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/127#issuecomment-75440496.

  8. shamisp commented on Feb 22, 2015

    @shamisp
    ContributorAuthor

    Fixed in #134

  9. added a commit that references this issue on May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions