intel-bmc / mctpd Goto Github PK
View Code? Open in Web Editor NEWMulti-instance MCTP daemon application.
License: Apache License 2.0
Multi-instance MCTP daemon application.
License: Apache License 2.0
When I follow the steps to build in mctpd/:
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 !!
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.
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.
I want to integrate mctpd to my BMC. Where can we find the bb file of mctpd?
Compile mctpd miss dependency,this open source depends the third library phosphor-dbus-interfaces,such as:
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?
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?
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-gnu20.04.1)
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.