Closed yathAg closed 4 months ago
This can happen if boost libraries are not linked in properly. Can you attach the output of make VERBOSE=1
?
c/home/yatharth/.local/lib/python3.9/site-packages/cmake/data/bin/cmake -S/home/yatharth/project_vsdsquadronFM/nextpnr -B/home/yatharth/project_vsdsquadronFM/nextpnr --check-build-system CMakeFiles/Makefile.cmake 0
/home/yatharth/.local/lib/python3.9/site-packages/cmake/data/bin/cmake -E cmake_progress_start /home/yatharth/project_vsdsquadronFM/nextpnr/CMakeFiles /home/yatharth/project_vsdsquadronFM/nextpnr//CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/yatharth/project_vsdsquadronFM/nextpnr'
make -f bba/CMakeFiles/bbasm.dir/build.make bba/CMakeFiles/bbasm.dir/depend
make[2]: Entering directory '/home/yatharth/project_vsdsquadronFM/nextpnr'
cd /home/yatharth/project_vsdsquadronFM/nextpnr && /home/yatharth/.local/lib/python3.9/site-packages/cmake/data/bin/cmake -E cmake_depends "Unix Makefiles" /home/yatharth/project_vsdsquadronFM/nextpnr /home/yatharth/project_vsdsquadronFM/nextpnr/bba /home/yatharth/project_vsdsquadronFM/nextpnr /home/yatharth/project_vsdsquadronFM/nextpnr/bba /home/yatharth/project_vsdsquadronFM/nextpnr/bba/CMakeFiles/bbasm.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/yatharth/project_vsdsquadronFM/nextpnr'
make -f bba/CMakeFiles/bbasm.dir/build.make bba/CMakeFiles/bbasm.dir/build
make[2]: Entering directory '/home/yatharth/project_vsdsquadronFM/nextpnr'
[ 9%] Building CXX object bba/CMakeFiles/bbasm.dir/main.cc.o
cd /home/yatharth/project_vsdsquadronFM/nextpnr/bba && /usr/bin/c++ -DNO_GUI -I/home/yatharth/project_vsdsquadronFM/nextpnr/common/kernel -I/home/yatharth/project_vsdsquadronFM/nextpnr/common/place -I/home/yatharth/project_vsdsquadronFM/nextpnr/common/route -I/home/yatharth/project_vsdsquadronFM/nextpnr/json -I/home/yatharth/project_vsdsquadronFM/nextpnr/frontend -I/home/yatharth/project_vsdsquadronFM/nextpnr/3rdparty/json11 -I/home/yatharth/project_vsdsquadronFM/nextpnr/3rdparty/oourafft -I/home/yatharth/project_vsdsquadronFM/nextpnr/3rdparty/pybind11/include -I/usr/include/python3.8 -isystem /usr/local/include/eigen3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -Wno-format-truncation -fPIC -O3 -g -pipe -std=gnu++17 -MD -MT bba/CMakeFiles/bbasm.dir/main.cc.o -MF CMakeFiles/bbasm.dir/main.cc.o.d -o CMakeFiles/bbasm.dir/main.cc.o -c /home/yatharth/project_vsdsquadronFM/nextpnr/bba/main.cc
[ 9%] Linking CXX executable bbasm
cd /home/yatharth/project_vsdsquadronFM/nextpnr/bba && /home/yatharth/.local/lib/python3.9/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/bbasm.dir/link.txt --verbose=1
/usr/bin/c++ -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -Wno-format-truncation -fPIC -O3 -g -pipe CMakeFiles/bbasm.dir/main.cc.o -o bbasm /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/x86_64-linux-gnu/libboost_filesystem.so /usr/lib/x86_64-linux-gnu/libboost_system.so
/usr/bin/ld: CMakeFiles/bbasm.dir/main.cc.o: in function `boost::filesystem::path::stem() const':
/usr/local/include/boost/filesystem/path.hpp:845: undefined reference to `boost::filesystem::path::stem_v3() const'
collect2: error: ld returned 1 exit status
make[2]: *** [bba/CMakeFiles/bbasm.dir/build.make:100: bba/bbasm] Error 1
make[2]: Leaving directory '/home/yatharth/project_vsdsquadronFM/nextpnr'
make[1]: *** [CMakeFiles/Makefile2:229: bba/CMakeFiles/bbasm.dir/all] Error 2
make[1]: Leaving directory '/home/yatharth/project_vsdsquadronFM/nextpnr'
make: *** [Makefile:136: all] Error 2
Yep, it was an issue with my boost version and the way the path was linked. I built boost from source and updated the CMake cache. It works now!
I bused the following cmake command
cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local .
which resulted in
followed by
make -j$(nproc)
which throws the error
Any idea what the issue cloud be? Thanks for the help!