Git Product home page Git Product logo

mctpd's People

Contributors

aambroze avatar archana-kakani avatar arun-pm avatar cw-sabarish avatar gade-rajasekharreddy avatar gokulsvg avatar iklimasz avatar jiaqingz-intel avatar jpawla avatar kwachows avatar mgleba avatar moleszki avatar msnidhin avatar nitin-wankhade avatar njaincs avatar phawryle avatar sumbhat90 avatar sunitakx avatar tigrux avatar zhikuiren avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mctpd's Issues

Fatal error : No such file or directory when "make"

When I follow the steps to build in mctpd/:

  1. mkdir build
  2. cd build
  3. cmake -DBUILD_STANDALONE=ON -DMCTPD_BUILD_UT=ON ../
  4. make

But there is error message in step 4 :

[ 3%] Building CXX object CMakeFiles/mctpd.dir/src/main.cpp.o
In file included from /home/xconn-tw1/TEST/mctpd/include/mctp_device.hpp:19,
from /home/xconn-tw1/TEST/mctpd/include/mctp_endpoint.hpp:19,
from /home/xconn-tw1/TEST/mctpd/include/mctp_bridge.hpp:19,
from /home/xconn-tw1/TEST/mctpd/include/MCTPBinding.hpp:3,
from /home/xconn-tw1/TEST/mctpd/src/main.cpp:1:
/home/xconn-tw1/TEST/mctpd/include/mctp_dbus_interfaces.hpp:26:10: fatal error: xyz/openbmc_project/Inventory/Decorator/LocationCode/server.hpp: No such file or directory
26 | #include <xyz/openbmc_project/Inventory/Decorator/LocationCode/server.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mctpd.dir/build.make:82: CMakeFiles/mctpd.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:260: CMakeFiles/mctpd.dir/all] Error 2
make: *** [Makefile:160: all] Error 2

(1) I can't find any directory named "LocationCode" ?

(2) I try to remove "smbus" part in configuration/mctp_config.json, recreate "build" directory, cmake and make. But the question still appears. What should I do if I only need PCIe interface or SMBus ?

Thanks !!

How to configure %i in [email protected]

I want to start a mctpd daemon in my BMC. But mctpd can not be boot up by systemd, because the parameter after "-b" is lost. I make a command "systemctl start xyz.openbmc_project.mctpd@pcie", the mctpd daemon can boot up. So how to configure %i in [email protected] file? I want to start a pcie binding mctpd daemon.

CMake Error

I took the following steps trying to build the mctpd package:

mkdir build
cd build
cmake -DBUILD_STANDALONE=ON -DMCTPD_BUILD_UT=ON ../
make

But it failed with the following messages:

gmake[2]: *** [CMakeFiles/Boost.dir/build.make:86: Boost-prefix/src/Boost-stamp/Boost-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/Boost.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
-- Found Boost: /home/aie/SK/Intel-BMC/mctpd/build/libs/boost/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.71")  
CMake Error at CMakeLists.txt:159 (find_package):
  Could not find a package configuration file provided by "GTest" with any of
  the following names:

    GTestConfig.cmake
    gtest-config.cmake

  Add the installation prefix of "GTest" to CMAKE_PREFIX_PATH or set
  "GTest_DIR" to a directory containing one of the above files.  If "GTest"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/aie/SK/Intel-BMC/mctpd/build/CMakeFiles/CMakeOutput.log".

What is missing? How to fix it? Please advise! Thanks.

mctpd discuss

Compile mctpd miss dependency,this open source depends the third library phosphor-dbus-interfaces,such as:

  1. #include <xyz/openbmc_project/MCTP/Base/server.hpp>
  2. #include <xyz/openbmc_project/MCTP/SupportedMessageTypes/server.hpp>
    But I did't find the corresponding file from phosphor-dbus-interfaces,Where can i get the dependent files?

Am i looking for the right one?Not uploaded to openbmc GitHub?

I want to integrate this to BMC. How should I integrate mctpd to bmc?

About the mechanics of mctpd ——receive Message

Hello, I have the following questions:
When an entity replies two messages to the BMC in a row, I use busctl tool to test or write my own test code and find that if the Msg Tag of the two messages is the same, but the Tag Owner of the second message is 1, the reply I receive is always only the first message, the second message seems to be lost in some process?
I was wondering if the current code framework doesn't seem to support this kind of application scenario?
In addition, the second message cannot implement the operation of ioc post. Is this the reason why I cannot receive the message?

compile error in sdbusplus source

when I use "cmake -DBUILD_STANDALONE=ON -DMCTPD_BUILD_UT=ON ../" to build the repo, I find some compile errors in sdbusplus project.

Gcc infomation:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu120.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1
20.04.1)

error information:
Making install in example
CXX calculator_server-calculator-server.o
calculator-server.cpp:9:61: error: ‘server’ is not a member of ‘sdbusplus::net::poettering’; did you mean ‘sdbusplus::server’?
9 | sdbusplus::server::object_tsdbusplus::net::poettering::server::Calculator;
| ^~~~~~
In file included from ../sdbusplus/server.hpp:3,
from calculator-server.cpp:5:
../sdbusplus/bus.hpp:20:11: note: ‘sdbusplus::server’ declared here
20 | namespace server
| ^~~~~~
calculator-server.cpp:9:79: error: template argument 1 is invalid
9 | sdbusplus::server::object_tsdbusplus::net::poettering::server::Calculator;
| ^
calculator-server.cpp:13:1: error: expected class-name before ‘{’ token
13 | {
| ^
calculator-server.cpp:21:13: error: ‘int64_t Calculator::multiply(int64_t, int64_t)’ marked ‘override’, but does not override
21 | int64_t multiply(int64_t x, int64_t y) override
| ^~~~~~~~
calculator-server.cpp:30:13: error: ‘int64_t Calculator::divide(int64_t, int64_t)’ marked ‘override’, but does not override
30 | int64_t divide(int64_t x, int64_t y) override
| ^~~~~~
calculator-server.cpp:43:10: error: ‘void Calculator::clear()’ marked ‘override’, but does not override
43 | void clear() override
| ^~~~~
calculator-server.cpp: In constructor ‘Calculator::Calculator(sdbusplus::bus::bus&, const char*)’:
calculator-server.cpp:16:9: error: class ‘Calculator’ does not have any field named ‘Calculator_inherit’
16 | Calculator_inherit(bus, path)
| ^~~~~~~~~~~~~~~~~~
calculator-server.cpp: In member function ‘int64_t Calculator::multiply(int64_t, int64_t)’:
calculator-server.cpp:23:16: error: ‘lastResult’ was not declared in this scope
23 | return lastResult(x * y);
| ^~~~~~~~~~
calculator-server.cpp: In member function ‘int64_t Calculator::divide(int64_t, int64_t)’:
calculator-server.cpp:35:20: error: ‘State’ has not been declared
35 | status(State::Error);
| ^~~~~
calculator-server.cpp:35:13: error: ‘status’ was not declared in this scope; did you mean ‘static’?
35 | status(State::Error);
| ^~~~~~
| static
calculator-server.cpp:39:16: error: ‘lastResult’ was not declared in this scope
39 | return lastResult(x / y);
| ^~~~~~~~~~
calculator-server.cpp: In member function ‘void Calculator::clear()’:
calculator-server.cpp:45:18: error: ‘lastResult’ was not declared in this scope
45 | auto v = lastResult();
| ^~~~~~~~~~
calculator-server.cpp:47:9: error: ‘cleared’ was not declared in this scope; did you mean ‘clear’?
47 | cleared(v);
| ^~~~~~~
| clear
calculator-server.cpp: In function ‘int main()’:
calculator-server.cpp:60:38: error: ‘interface’ is not a member of ‘Calculator’
60 | std::string_view(Calculator::interface));
| ^~~~~~~~~
make[5]: *** [Makefile:580: calculator_server-calculator-server.o] Error 1
make[4]: *** [Makefile:737: install] Error 2
make[3]: *** [Makefile:819: install-recursive] Error 1
make[2]: *** [CMakeFiles/sdbusplus-project.dir/build.make:103: sdbusplus-project-prefix/src/sdbusplus-project-stamp/sdbusplus-project-install] Error 2
make[1]: *** [CMakeFiles/Makefile2:123: CMakeFiles/sdbusplus-project.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
CMake Error at CMakeLists.txt:159 (find_package):
Could not find a package configuration file provided by "GTest" with any of
the following names:

GTestConfig.cmake
gtest-config.cmake

Add the installation prefix of "GTest" to CMAKE_PREFIX_PATH or set
"GTest_DIR" to a directory containing one of the above files. If "GTest"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!

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.