About the building problem of verilog-to-routing(VTR) project

18 views
Skip to first unread message

甘才军

unread,
Mar 15, 2024, 11:30:41 PM3/15/24
to vtr-users
Dear sir:
   I am very interested in the VTR project, so I want to build it from the source code in my deep for Linux system. I followed the instructions in README.md and followed the necessary components, and then used cmake and gnu make to build it. However, when using the make command to build to 83% progress, the following error message appeared:

/usr/bin/ld: /tmp/cccW0Vqy.ltrans0.ltrans.o: in function `std::filesystem::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::filesystem::__cxx11::path>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::filesystem::__cxx11::path::format) [clone .constprop.11]':
<artificial>:(.text+0x3398): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /tmp/cccW0Vqy.ltrans0.ltrans.o: in function `vtr::check_file_name_extension(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
...
make[2]: *** [libs/libarchfpga/CMakeFiles/read_arch.dir/build.make:105:libs/libarchfpga/read_arch] error 1
make[1]: *** [CMakeFiles/Makefile2:1850:libs/libarchfpga/CMakeFiles/read_arch.dir/all] error 2
make: *** [Makefile:146:all] error 2

The above error seems to suggest an issue with my c++library libstd++fs. Therefore, I checked my gcc and g++, version 8.3.0, which should support the C++17 language standard. In addition, I created a separate main.cpp file that called a function in the namespace "filesystem" and used the command "g++- stdc++=c++17 main.cpp - lstdc++fs" to build it, and the result was successful. This indicates that my system should meet the conditions for the successful construction of the VTR project, but why did the above problem occur? How to solve it?
             
                           Yours sincerely,


vaugh...@gmail.com

unread,
Mar 17, 2024, 11:52:29 AM3/17/24
to 甘才军, Soheil Shahrouz, vtr-users
I believe Soheil just fixed this so if you pull it should work. We don’t have CI tests with gcc versions that old so you might also want to consider updating yours.

Vaughn

On Mar 15, 2024, at 11:30 PM, '甘才军' via VTR-Users <vtr-...@googlegroups.com> wrote:


--
You received this message because you are subscribed to the Google Groups "VTR-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vtr-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vtr-users/tencent_59593F5E897BB8E95D4E761A162987857608%40qq.com.
Reply all
Reply to author
Forward
0 new messages