ferrandi / PandA-bambu

PandA-bambu public repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install fail because of Icarus

AnouarITI opened this issue · comments

I am trying to install PandA-bambu on ubuntu 18.04 as intruced in the install.md. when i use make i get this error:

make[4]: Entering directory '/home/user/PandA-bambu/build/src'
  CXX      wrapper/simulation/icarus/lib_icaruswrapper_la-IcarusWrapper.lo
../../src/wrapper/simulation/icarus/IcarusWrapper.cpp: In member function ‘unsigned int IcarusWrapper::convert_to_xml(const string&, const string&, const string&)’:
../../src/wrapper/simulation/icarus/IcarusWrapper.cpp:125:69: error: ‘OPT_icarus_debug_level’ was not declared in this scope
    unsigned int icarus_debug_level = Param->getOption<unsigned int>(OPT_icarus_debug_level);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~
../../src/wrapper/simulation/icarus/IcarusWrapper.cpp:125:69: note: suggested alternative: ‘icarus_debug_level’
    unsigned int icarus_debug_level = Param->getOption<unsigned int>(OPT_icarus_debug_level);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~
                                                                     icarus_debug_level
../../src/wrapper/simulation/icarus/IcarusWrapper.cpp:154:42: error: cannot convert ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘bool’
    int err = PandaSystem(Param, command, output_file);
                                          ^~~~~~~~~~~
In file included from ../../src/wrapper/simulation/icarus/IcarusWrapper.cpp:76:
../../src/utility/fileIO.hpp:217:88: note:   initializing argument 3 of ‘int PandaSystem(ParameterConstRef, const string&, bool, const string&, unsigned int, bool, size_t)’
 int PandaSystem(const ParameterConstRef Param, const std::string& system_command, bool host_exec = true,
                                                                                   ~~~~~^~~~~~~~~~~~~~~~
../../src/wrapper/simulation/icarus/IcarusWrapper.cpp: In member function ‘unsigned int IcarusWrapper::compile_verilog(const string&)’:
../../src/wrapper/simulation/icarus/IcarusWrapper.cpp:187:42: error: cannot convert ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘bool’
    int err = PandaSystem(Param, command, output_file);
                                          ^~~~~~~~~~~
In file included from ../../src/wrapper/simulation/icarus/IcarusWrapper.cpp:76:
../../src/utility/fileIO.hpp:217:88: note:   initializing argument 3 of ‘int PandaSystem(ParameterConstRef, const string&, bool, const string&, unsigned int, bool, size_t)’
 int PandaSystem(const ParameterConstRef Param, const std::string& system_command, bool host_exec = true,
                                                                                   ~~~~~^~~~~~~~~~~~~~~~
Makefile:6505: recipe for target 'wrapper/simulation/icarus/lib_icaruswrapper_la-IcarusWrapper.lo' failed
make[4]: *** [wrapper/simulation/icarus/lib_icaruswrapper_la-IcarusWrapper.lo] Error 1
make[4]: Leaving directory '/home/user/PandA-bambu/build/src'
Makefile:7526: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/user/PandA-bambu/build/src'
Makefile:3716: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/user/PandA-bambu/build/src'
Makefile:716: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/PandA-bambu/build'
Makefile:648: recipe for target 'all' failed
make: *** [all] Error 2

I checked all the dependencies and they seems to be fine. How can i fix this issue?

This is my configuration:
../configure --prefix=$PWD --enable-glpk --enable-flopoco --disable-icarus --disable-release --enable-experimental --enable-opt --with-opt-level=2

I tried it also without disabling Icarus

Hi, Icarus support has been removed in later versions of PandA Bambu, thus, since you do not need that, I suggest you switch to the dev/panda branch where all related files have been removed.