CGRAME / CGRA-ME-ISSUES

CGRA-ME is an open-source framework for modelling and exploring coarse grain reconfigurable architectures and CAD.
3 stars 0 forks source link

[Debian Build Error] ‘ConstraintCache’ does not name a type #2

Open jiayi-wang98 opened 9 months ago

jiayi-wang98 commented 9 months ago

Hi there,

I'm trying to build CGRA-ME on debian12. But I got some errors when building the CGRA. Here's log.

debian@debian12:~/cgra_ws/cgra-me$ make --jobs $(nproc) Running CMake with arguments -DCMAKE_BUILD_TYPE=release -DBUILD_LLVM_PASSES=ON -DCGRAME_CXX_FLAGS= -DCMAKE_BUILD_TYPE=release -DBUILD_LLVM_PASSES=ON -DCGRAME_CXX_FLAGS= -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- GUROBI_HOME environment variable not defined, searching for gurobi in /home/debian/cgra_ws/cgra-me/../ -- Using GUROBI_HOME=/home/debian/cgra_ws/gurobi1100 -- Could NOT find Gurobi (missing: GUROBI_CXXLIB) -- Found BISON: /usr/bin/bison (found version "3.8.2") -- Found FLEX: /usr/bin/flex (found version "2.6.4") -- Performing Test HAVE_FFI_CALL -- Performing Test HAVE_FFI_CALL - Success -- Found FFI: /usr/lib/x86_64-linux-gnu/libffi.so
-- Performing Test Terminfo_LINKABLE -- Performing Test Terminfo_LINKABLE - Success -- Found Terminfo: /usr/lib/x86_64-linux-gnu/libtinfo.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.13") -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.14") -- Using LLVM config at /usr/lib/llvm-14/cmake/LLVMConfig.cmake -- Linker detection: GNU ld -- Registering llvm-pass-dfggen as a pass plugin (static build: OFF) -- Configuring done -- Generating done -- Build files have been written to: /home/debian/cgra_ws/cgra-me/build Running build all... [ 1%] Generating ../bin/coreir fileReader.cpp: In function ‘CoreIR::ValueType CoreIR::json2ValueType(Context, json)’: fileReader.cpp:376:1: warning: control reaches end of non-void function [-Wreturn-type] 376 | } | ^ fileReader.cpp: In function ‘CoreIR::Value CoreIR::json2Value(Context, json, Module*)’: fileReader.cpp:424:1: warning: control reaches end of non-void function [-Wreturn-type] 424 | } | ^ [ 1%] Built target coreir-build [ 3%] Building CXX object src/modules/CMakeFiles/modules.dir/AdresPE.cpp.o [ 5%] Building CXX object src/archs/CMakeFiles/archs.dir/AdresArch.cpp.o /home/debian/cgra_ws/cgra-me/src/archs/AdresArch.cpp: In static member function ‘static std::unique_ptr UserArchs::createAdresArch(const ConfigStore&)’: /home/debian/cgra_ws/cgra-me/src/archs/AdresArch.cpp:202:30: warning: narrowing conversion of ‘(((int)cols) + 1)’ from ‘int’ to ‘unsigned int’ [-Wnarrowing] 202 | Location loc = {cols + 1, i + 1}; | ~^~~ [ 7%] Building CXX object src/modules/CMakeFiles/modules.dir/HyCUBEPE.cpp.o [ 9%] Building CXX object src/modules/CMakeFiles/modules.dir/RIKENPE_Elastic.cpp.o [ 11%] Building CXX object src/archs/CMakeFiles/archs.dir/ElasticRIKEN.cpp.o [ 11%] Built target modules [ 13%] Building CXX object src/core/CMakeFiles/core.dir/BitSetting.cpp.o [ 15%] Building CXX object src/core/CMakeFiles/core.dir/BitStream.cpp.o [ 17%] Building CXX object src/archs/CMakeFiles/archs.dir/HyCUBE.cpp.o [ 19%] Building CXX object src/core/CMakeFiles/core.dir/CGRA.cpp.o [ 19%] Built target archs [ 21%] Building CXX object src/core/CMakeFiles/core.dir/CompositeMappers.cpp.o [ 23%] Building CXX object src/dotparser/CMakeFiles/dotparser.dir/generated/dot.tab.cc.o [ 25%] Building CXX object src/dotparser/CMakeFiles/dotparser.dir/generated/dot.y.cc.o [ 27%] Building CXX object src/core/CMakeFiles/core.dir/ConstraintSet.cpp.o /home/debian/cgra_ws/cgra-me/src/core/ConstraintSet.cpp:13:1: error: ‘ConstraintCache’ does not name a type 13 | ConstraintCache addConstraintsImpl( | ^~~~~~~ [ 31%] Built target dotparser [ 33%] Building CXX object src/dotparser/CMakeFiles/dotparser_tests.dir/dotparser_tests.cpp.o make[3]: [src/core/CMakeFiles/core.dir/build.make:132: src/core/CMakeFiles/core.dir/ConstraintSet.cpp.o] Error 1 make[2]: [CMakeFiles/Makefile2:382: src/core/CMakeFiles/core.dir/all] Error 2 make[2]: Waiting for unfinished jobs.... [ 33%] Built target dotparser_tests make[1]: [Makefile:136: all] Error 2 make: *** [Makefile:35: all] Error 2

I'm using Debian12, gcc version 12.2.0 (Debian 12.2.0-14), llvm-config --version14.0.6, Debian clang version 14.0.6, cmake version 3.25.1, Gurobi11.0.

I appreciate any help on this. Thank you, Jiayi

Did I miss anything here?

KelvinChung2000 commented 8 months ago

This may be because -- Could NOT find Gurobi (missing: GUROBI_CXXLIB). You can try going into cmake/FindGurobi.cmake and setting the variable yourself.