Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

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

Open
twingo0093 opened this issue Nov 17, 2023 · 1 comment
Open

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

twingo0093 opened this issue Nov 17, 2023 · 1 comment

Comments

@twingo0093
Copy link

twingo0093 commented Nov 17, 2023

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 !!

@Kendidi
Copy link

Kendidi commented Dec 5, 2023

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants