Git Product home page Git Product logo

Comments (4)

jswaro avatar jswaro commented on July 24, 2024

The problem lies in the two header files, not the provider.

To work-around this problem, use the following patch applied to the prov/cxi/configure.m4

diff --git a/prov/cxi/configure.m4 b/prov/cxi/configure.m4
index ec50e18f3..a73e86e31 100644
--- a/prov/cxi/configure.m4
+++ b/prov/cxi/configure.m4
@@ -46,11 +46,18 @@ AC_DEFUN([FI_CXI_CONFIGURE],[
                [
                        AC_CHECK_HEADER(cxi_prov_hw.h,
                                [],
-                               [cxi_happy=0])
+                               [cxi_happy=0],
+                               [AC_INCLUDES_DEFAULT
+                               #include <errno.h>])

                        AC_CHECK_HEADER(uapi/misc/cxi.h,
                                [],
-                               [cxi_happy=0])
+                               [cxi_happy=0],
+                               [AC_INCLUDES_DEFAULT
+                               #include <stdbool.h>
+                               #ifndef __user
+                               #define __user
+                               #endif])

In an upcoming release of the software, SHS 2.2.0, the compilation problem reported in this ticket will be fixed.

from libfabric.

thomasgillis avatar thomasgillis commented on July 24, 2024

the diff provided has been implemented successfully and is available at: https://github.com/thomasgillis/libfabric/tree/dev-cxi

from libfabric.

jain-jainendra avatar jain-jainendra commented on July 24, 2024

The problem lies in the two header files, not the provider.

To work-around this problem, use the following patch applied to the prov/cxi/configure.m4

diff --git a/prov/cxi/configure.m4 b/prov/cxi/configure.m4
index ec50e18f3..a73e86e31 100644
--- a/prov/cxi/configure.m4
+++ b/prov/cxi/configure.m4
@@ -46,11 +46,18 @@ AC_DEFUN([FI_CXI_CONFIGURE],[
                [
                        AC_CHECK_HEADER(cxi_prov_hw.h,
                                [],
-                               [cxi_happy=0])
+                               [cxi_happy=0],
+                               [AC_INCLUDES_DEFAULT
+                               #include <errno.h>])

                        AC_CHECK_HEADER(uapi/misc/cxi.h,
                                [],
-                               [cxi_happy=0])
+                               [cxi_happy=0],
+                               [AC_INCLUDES_DEFAULT
+                               #include <stdbool.h>
+                               #ifndef __user
+                               #define __user
+                               #endif])

In an upcoming release of the software, SHS 2.2.0, the compilation problem reported in this ticket will be fixed.

The main code still does not have this changes. If added manually it fails to build. Any solution for this?

from libfabric.

thomasgillis avatar thomasgillis commented on July 24, 2024

The full patch should be available here: https://github.com/thomasgillis/libfabric/tree/dev-cxi

Let me know if it doesn't work

from libfabric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.