pulp-platform / pulp-sdk

Apache License 2.0
99 stars 73 forks source link

#include<filesystem> error #138

Open Xarlley opened 1 year ago

Xarlley commented 1 year ago

Dear Author, I use ubuntu18 which is required by README.md. Then I followed the steps. I executed: sudo apt-get install -y build-essential git libftdi-dev libftdi1 doxygen python3-pip libsdl2-dev curl cmake libusb-1.0-0-dev scons gtkwave libsndfile1-dev rsync autoconf automake texinfo libtool pkg-config libsdl2-ttf-dev pip install --user argcomplete pyelftools Then, PULP toolchain is correctly installed. Then, define the path export PULP_RISCV_GCC_TOOLCHAIN= Then, executed: cd pulp-sdk source configs/pulp-open.sh Then, in directory plup-sdk, executed: make build Things not work well. First, Ubuntu18's highest version of cmake is 3.10. But your project needs 3.16.3. So I went to cmake.org and manully upgrade the cmake to 3.16.3. Second, there are two errors which is caused by lack of python pip package. So I solved it: pip install prettytable pip install dataclasses Third, with environment as above, which is also the most standard environment as what you recomand, a error still appear: /root/pulp-sdk/tools/gvsoc/common/engine/src/vp.cpp:51:10: fatal error: filesystem: No such file or directory

include

      ^~~~~~~~~~~~

compilation terminated. tools/gvsoc/common/engine/CMakeFiles/gvsoc.dir/build.make:166: recipe for target 'tools/gvsoc/common/engine/CMakeFiles/gvsoc.dir/src/vp.cpp.o' failed make[3]: *** [tools/gvsoc/common/engine/CMakeFiles/gvsoc.dir/src/vp.cpp.o] Error 1 I tried searching it on stackoverflow. Then, as what I got from serching, I changed filesystem to experimental/filesystem, and changed std::filesystem to std::experimental::filesystem. It does not work. I found it should be the mistake of C++ version. C++17 has the feature called filesystem, but C++11, which is auto got by your recommand environment, does not have the feature. Cmake, gcc, and many environment is auto installed by your command. Can you provide a correct and precise operating environment? Obviously, you suggest using ubuntu18, but the highest version of cmake (3.10) provided by ubuntu18 does not meet the requirements of your project. I installed cmake (3.16.3) according to the error report (CmakeList.txt points out the version requirements of cmake ) also does not work properly. I don't know how to upgrade the c++ version to match your project requirements. Thank you so much.