Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#include<filesystem> error #138

Open
Xarlley opened this issue Apr 29, 2023 · 0 comments
Open

#include<filesystem> error #138

Xarlley opened this issue Apr 29, 2023 · 0 comments

Comments

@Xarlley
Copy link

Xarlley commented Apr 29, 2023

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=<INSTALL_DIR>
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.

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

No branches or pull requests

1 participant