Fatal error : No such file or directory when "make"
Opened this issue · 1 comments
When I follow the steps to build in mctpd/:
- mkdir build
- cd build
- cmake -DBUILD_STANDALONE=ON -DMCTPD_BUILD_UT=ON ../
- 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 !!
@twingo0093 Are you able to build the package now/
I am have problem at build step #3:
...failed updating 4 targets...
...skipped 20 targets...
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
-- Configuring done
CMake Error at CMakeLists.txt:155 (add_executable):
Target "test-mctpd" links to target "GTest::gmock" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.