Coder Social home page Coder Social logo

make error about lsoracle HOT 7 CLOSED

lnis-uofu avatar lnis-uofu commented on July 29, 2024
make error

from lsoracle.

Comments (7)

yashton avatar yashton commented on July 29, 2024

The issue is that our new code has a build flag ENABLE_ABC and ENABLE_STA which isolates the integration for ABC and OpenSTA. If these were set to OFF, parts of the code are turned off that shouldn't. I've fixed this in #81 .

from lsoracle.

mayank-kabra2001 avatar mayank-kabra2001 commented on July 29, 2024

After doing this, I am facing another issue of tcl.h .. I have installed that also but still showing the same error.
image

Any ideas ?? Thanks.

from lsoracle.

yashton avatar yashton commented on July 29, 2024

@mayank-kabra2001 you need to have TCL installed on your machine, this is not a dependency we ship with the tool.

from lsoracle.

intheRain07 avatar intheRain07 commented on July 29, 2024

I solve the issue of tcl by:

  1. sudo apt-get install tcl8.6-dev
  2. change #include <tcl.h> to #include <tcl8.6/tcl.h>

But another issue comes:

Scanning dependencies of target yosys-plugin
[ 96%] Building CXX object yosys-plugin/CMakeFiles/yosys-plugin.dir/oracle.cc.o
/home/rain/LSOracle/yosys-plugin/oracle.cc:54:10: fatal error: kernel/register.h: No such file or directory
   54 | #include "kernel/register.h"
      |          ^~~~~~~~~~~~~~~~~~~
compilation `terminated.

Any ideas on this problem?

Thanks.

from lsoracle.

yashton avatar yashton commented on July 29, 2024

If you are trying to compile the yosys plugin, you need to specify the location of yosys using the YOSYS_INCLUDE_DIR cmake variable.

from lsoracle.

CL-liao avatar CL-liao commented on July 29, 2024

你好

在发出命令时得到以下错误:

[ 75%]构建目标 kahypar [ 89%] 构建目标 unit_tests [ 89%] 构建 CXX 对象核心/CMakeFiles/lsoracle.dir/lsoracle.cpp.o 在包含的文件中 /home/ratul619/LSoracle/LSOracle/LSOracle/core/lsoracle.cpp:145: /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp: In member function 'void alice::optimize_command:::synth(std::string)': /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:76:27: 错误: 'optimize_resynthesis' 不是 'oracle' 的成员 76 |ntk_result = oracle::optimize_resynthesismockturtle::aig_network(partitions_jr, abc_exec); |^~~~~~~~~~~~~~~~~~~~~~~~~~| >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ntk_result = oracle::optimize_resynthesismockturtle::aig_network(partitions_jr, abc_exec); |^ /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:78:14: error: 'optimization_strategy' 不是 'oracle' 的成员;你是说“optimization_test”吗? 78 |预言机::optimization_strategy策略; | |optimization_test /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:80:3:错误:“策略”未在此范围内声明 80 |策略 = 预言机::optimization_strategy::d深度; |^~~~~~~~ /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:80:22: error: 'oracle::optimization_strategy' 尚未声明 80 |策略 = 预言机::optimization_strategy::d深度; |^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~策略 = 预言机::optimization_strategy::大小; |^~~~~~~~ /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:82:22: error: 'oracle::optimization_strategy' 尚未声明 82 |策略 = 预言机::optimization_strategy::大小; |^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~策略 = 预言机::optimization_strategy::平衡; |^~~~~~~~ /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:84:22: error: 'oracle::optimization_strategy' 尚未声明 84 |策略 = 预言机::optimization_strategy::平衡; |^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| optimize_basic~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ntk_result = oracle::optimize_basic(partitions_jr, abc_exec, strategy); |^~~~~~~~~~~~~~ /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:87:56: 错误:在“>”标记 87 |之前的预期主表达式ntk_result = oracle::optimize_basic(partitions_jr, abc_exec, strategy); |^ /home/ratul619/LSoracle/LSOracle/core/commands/optimization/optimize.hpp:87:83: error: 'strategy' 未在此作用域 87 |ntk_result = oracle::optimize_basic(partitions_jr, abc_exec, strategy); |^~~~~~~~

In file included from /home/ratul619/LSoracle/LSOracle/core/lsoracle.cpp:63: /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp: In function ‘std::string oracle::abc_stats_commmands(int, int, int)’: /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp:380:1: warning: control reaches end of non-void function [-Wreturn-type] 380 | } | ^ /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp: In function ‘float oracle::get_results_universe(std::string, int)’: /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp:699:1: warning: control reaches end of non-void function [-Wreturn-type] 699 | } | ^ /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp: In function ‘std::vector oracle::sample(int, int, int, std::vector<std::__cxx11::basic_string >, std::string, std::string, std::vector<std::vector >&, std::vector<std::vector >&, std::vector<std::__cxx11::basic_string >&, int, int, int, int, std::string)’: /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp:1173:15: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result] 1173 | system(commands_vec[i].c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp: In function ‘void oracle::bayes_flow_tune(const char*, int, int, int, int, int, int, int)’: /home/ratul619/LSoracle/LSOracle/core/algorithms/optimization/mab.hpp:1277:52: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result] 1277 | string remove_log = "rm "+design+".log"; system(remove_log.c_str()); //remove log file if exists | ~~~~~~^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: warning: unrecognized command line option ‘-Wno-unneeded-internal-declaration’ make[2]: *** [core/CMakeFiles/lsoracle.dir/build.make:67: core/CMakeFiles/lsoracle.dir/lsoracle.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:4282: core/CMakeFiles/lsoracle.dir/all] Error 2

Any ideas ?? I tried to search , but didnt get any concrete solution

Thanks

Hello, how did you solve this problem, I re-cloned a copy of the branch of the person who answered this question and tried to compile it, it still failed.What method did you use?

from lsoracle.

NormandAlexandre avatar NormandAlexandre commented on July 29, 2024

You might want to cmake like this :
cmake -B build . -DCMAKE_BUILD_TYPE=RELEASE -D ENABLE_OPENSTA=ON -DENABLE_ABC=ON
It should work !

from lsoracle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.