OpenROAD-flow-scripts icon indicating copy to clipboard operation
OpenROAD-flow-scripts copied to clipboard

Unable to complete local installation with MacOS Air M1

Open vijayank88 opened this issue 2 years ago • 9 comments

Subject

[Build] for compilation-related issues.

Describe the bug

While trying install ORFS with --local failed during yosys installation.

Expected Behavior

Complete ORFS installation in MacOS Air M1

Environment

MacOS Air M1
chip Apple M1
Version 12.5

To Reproduce

git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts cd OpenROAD-flow-scripts cd tools/OpenROAD sudo ./etc/DependencyInstaller.sh -run sudo ./etc/DependencyInstaller.sh -dev ./build_openroad.sh --local

Relevant log output

[INFO FLW-0027] Saving logs to build_openroad.log
[INFO FLW-0028] ./build_openroad.sh --local
[INFO FLW-0002] Updating git submodules.
[INFO FLW-0001] Using local build method. This will create binaries at 'tools/install' unless overwritten.
[INFO FLW-0017] Compiling Yosys.
$BREW_PREFIX is [/usr/local/opt]
[100%] Building yosys
ld: warning: ignoring file /usr/local/opt/readline/lib/libreadline.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/Cellar/libffi/3.3_3/lib/libffi.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/Cellar/tcl-tk/8.6.13/lib/libtcl8.6.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/Cellar/tcl-tk/8.6.13/lib/libtclstub8.6.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_Tcl_CreateCommand", referenced from:
      Yosys::yosys_get_tcl_interp() in yosys.o
  "_Tcl_CreateInterp", referenced from:
      Yosys::yosys_get_tcl_interp() in yosys.o
  "_Tcl_DeleteInterp", referenced from:
      Yosys::yosys_shutdown() in yosys.o
  "_Tcl_Eval", referenced from:
      Yosys::tcl_yosys_cmd(void*, Tcl_Interp*, int, char const**) in yosys.o
  "_Tcl_EvalFile", referenced from:
      _main in driver.o
      Yosys::TclPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in yosys.o
  "_Tcl_Finalize", referenced from:
      Yosys::yosys_shutdown() in yosys.o
  "_Tcl_GetCommandInfo", referenced from:
      Yosys::tcl_yosys_cmd(void*, Tcl_Interp*, int, char const**) in yosys.o
  "_Tcl_GetStringResult", referenced from:
      _main in driver.o
      Yosys::TclPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in yosys.o
  "_Tcl_NewIntObj", referenced from:
      Yosys::TclPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in yosys.o
  "_Tcl_NewListObj", referenced from:
      Yosys::TclPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in yosys.o
  "_Tcl_NewStringObj", referenced from:
      Yosys::TclPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in yosys.o
  "_Tcl_ObjSetVar2", referenced from:
      Yosys::TclPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in yosys.o
  "_add_history", referenced from:
      Yosys::shell(Yosys::RTLIL::Design*) in yosys.o
  "_append_history", referenced from:
      yosys_atexit() in driver.o
  "_clear_history", referenced from:
      yosys_atexit() in driver.o
  "_ffi_call", referenced from:
      Yosys::AST::dpi_call(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::vector<Yosys::AST::AstNode*, std::__1::allocator<Yosys::AST::AstNode*> > const&) in dpicall.o
  "_ffi_prep_cif", referenced from:
      Yosys::AST::dpi_call(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::vector<Yosys::AST::AstNode*, std::__1::allocator<Yosys::AST::AstNode*> > const&) in dpicall.o
  "_ffi_type_double", referenced from:
      Yosys::AST::dpi_call(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::vector<Yosys::AST::AstNode*, std::__1::allocator<Yosys::AST::AstNode*> > const&) in dpicall.o
  "_ffi_type_float", referenced from:
      Yosys::AST::dpi_call(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::vector<Yosys::AST::AstNode*, std::__1::allocator<Yosys::AST::AstNode*> > const&) in dpicall.o
  "_ffi_type_pointer", referenced from:
      Yosys::AST::dpi_call(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::vector<Yosys::AST::AstNode*, std::__1::allocator<Yosys::AST::AstNode*> > const&) in dpicall.o
  "_ffi_type_sint32", referenced from:
      Yosys::AST::dpi_call(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::vector<Yosys::AST::AstNode*, std::__1::allocator<Yosys::AST::AstNode*> > const&) in dpicall.o
  "_ffi_type_sint64", referenced from:
      Yosys::AST::dpi_call(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::vector<Yosys::AST::AstNode*, std::__1::allocator<Yosys::AST::AstNode*> > const&) in dpicall.o
  "_history_list", referenced from:
      yosys_atexit() in driver.o
      Yosys::HistoryPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in yosys.o
  "_history_truncate_file", referenced from:
      yosys_atexit() in driver.o
  "_read_history", referenced from:
      _main in driver.o
  "_readline", referenced from:
      Yosys::shell(Yosys::RTLIL::Design*) in yosys.o
      (anonymous namespace)::ShowPass::execute(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, Yosys::RTLIL::Design*) in show.o
  "_rl_attempted_completion_function", referenced from:
      Yosys::shell(Yosys::RTLIL::Design*) in yosys.o
  "_rl_basic_word_break_characters", referenced from:
      Yosys::shell(Yosys::RTLIL::Design*) in yosys.o
  "_rl_completion_matches", referenced from:
      Yosys::readline_completion(char const*, int, int) in yosys.o
  "_rl_line_buffer", referenced from:
      Yosys::readline_completion(char const*, int, int) in yosys.o
  "_rl_readline_name", referenced from:
      Yosys::shell(Yosys::RTLIL::Design*) in yosys.o
  "_where_history", referenced from:
      yosys_atexit() in driver.o
      _main in driver.o
  "_write_history", referenced from:
      yosys_atexit() in driver.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [yosys] Error 1

Screenshots

No response

Additional Context

No response

vijayank88 avatar Jan 11 '23 17:01 vijayank88