Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on MacOS #2421

Open
gussmith23 opened this issue Apr 18, 2024 · 1 comment
Open

Build error on MacOS #2421

gussmith23 opened this issue Apr 18, 2024 · 1 comment

Comments

@gussmith23
Copy link

$ make -f cmake-makefile
cmake -DCMAKE_BUILD_TYPE=Release -DCPU_CORES=12 -DYOSYS_CONFIG= \
              -DYOSYS_PATH= -DCMAKE_INSTALL_PREFIX=/usr/local \
              -DCMAKE_RULE_MESSAGES=on -S . -B build
Using Vendored YOSYS
YOSYS_CONFIG: /Users/gus/synlig/third_party/yosys/yosys-config
YOSYS_INCLUDE_DIR: /Users/gus/synlig/third_party/yosys
Building Synlig version v1.82 []
Building Surelog version v1.82 [37ce1bbf98ca26ba2e18603a271b55ac05e121d5]
CMake Error at third_party/surelog/CMakeLists.txt:101 (add_subdirectory):
  add_subdirectory given source "third_party/antlr4/runtime/Cpp" which is not
  an existing directory.


CMake Error at third_party/surelog/CMakeLists.txt:114 (add_subdirectory):
  The source directory

    /Users/gus/synlig/third_party/surelog/third_party/UHDM

  does not contain a CMakeLists.txt file.


CMake Error at third_party/surelog/CMakeLists.txt:116 (get_target_property):
  get_target_property() called with non-existent target "uhdm".


CMake Error at third_party/surelog/CMakeLists.txt:143 (add_subdirectory):
  The source directory

    /Users/gus/synlig/third_party/surelog/third_party/json

  does not contain a CMakeLists.txt file.


-- Python3_EXECUTABLE = /Users/gus/churchroad/.venv/bin/python3.10
CMake Warning at third_party/surelog/CMakeLists.txt:193 (message):
  Using tcmalloc; if this creates runtime issues, configure with
  -DSURELOG_WITH_TCMALLOC=Off


-- Found tcmalloc: /usr/local/lib/libtcmalloc.dylib
-- Found zlib: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/libz.tbd
-- Java_JAVA_EXECUTABLE = /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/java
CMake Error at third_party/surelog/CMakeLists.txt:827 (install):
  install TARGETS given target "antlr4_static" which does not exist.


CMake Error at third_party/surelog/CMakeLists.txt:840 (install):
  install TARGETS given target "capnp" which does not exist.


CMake Error at third_party/surelog/CMakeLists.txt:846 (install):
  install TARGETS given target "uhdm" which does not exist.


CMake Error at CMakeLists.txt:145 (get_target_property):
  get_target_property() called with non-existent target "uhdm".


CMake Error at CMakeLists.txt:152 (add_subdirectory):
  The source directory

    /Users/gus/synlig/third_party/surelog/third_party/googletest

  does not contain a CMakeLists.txt file.


CMake Warning at CMakeLists.txt:190 (message):
  Using tcmalloc; if this creates runtime issues, configure with
  -DSYNLIG_WITH_TCMALLOC=Off


-- Found tcmalloc: /usr/local/lib/libtcmalloc.dylib
SYNLIG CMAKE_CXX_FLAGS:  -D_YOSYS_ -Wno-unused-parameter -std=c++17 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free 
SYNLIG CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -Wno-unused-parameter -O3  -DNDEBUG  
SYNLIG CMAKE_CXX_FLAGS_DEBUG: -g -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -Wno-unused-parameter -O0 -g   
CMake Error at CMakeLists.txt:280 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "antlr4_static".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.


CMake Error at CMakeLists.txt:281 (add_dependencies):
  Cannot add target-level dependencies to non-existent target "capnp".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.


-- Configuring incomplete, errors occurred!
make: *** [run-cmake-release] Error 1
@zaun
Copy link

zaun commented Apr 27, 2024

Did you get the sub-modules?

git submodule sync
git submodule update --init --recursive third_party/{surelog,yosys}

I also needed to install 2 libs.

pip3 install orderedmultidict --break-system-packages
brew install libffi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants