Coder Social home page Coder Social logo

dali's People

Contributors

olerichter avatar rmanohar avatar yang-yihang avatar yihang-yang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dali's Issues

cmake unit tests fail with FATAL ERROR: Nonzero origin is not supported, macro: pllclk

while i was enabling all tests for the automated builds in act flow i stumbled on failing tests in dali:

when running make test 2 out of 3 unit tests fail with FATAL ERROR: Nonzero origin is not supported, macro: pllclk

for build instructions see CI PR #4

Running tests...
Test project /root/project/Dali/build
    Start 1: ioplacer_benchmark_preparation
1/3 Test #1: ioplacer_benchmark_preparation ...   Passed    0.01 sec
    Start 2: all_iopin_use_same_metal_layer
2/3 Test #2: all_iopin_use_same_metal_layer ...***Failed    0.05 sec
FATAL ERROR:
    Nonzero origin is not supported, macro: pllclk
/root/project/phyDB/phydb/lefdefparser.cpp : 82 : getLefMacros

    Start 3: add_and_place_io_pins
3/3 Test #3: add_and_place_io_pins ............***Failed    0.06 sec
FATAL ERROR:
    Nonzero origin is not supported, macro: pllclk
/root/project/phyDB/phydb/lefdefparser.cpp : 82 : getLefMacros


33% tests passed, 2 tests failed out of 3

Total Test time (real) =   0.12 sec

The following tests FAILED:
	  2 - all_iopin_use_same_metal_layer (Failed)
	  3 - add_and_place_io_pins (Failed)
Errors while running CTest
make: *** [Makefile:71: test] Error 8

Build error with centos 7

I am trying to build dali with gcc11 (C++11/C++14/C++17/C++20 - on centos7),
but it fails on

  if (has_rgb) {
    ost << "\t" << r
        << "\t" << g
        << "\t" << b;
  }

in line 91 of dali/common/helper.h, from a first glance i see nothing wrong but i have no experience with templates

it fails with:

In file included from /root/project/src/yale-asyncvlsi-dali/dali/circuit/block.cc:23:
/root/project/src/yale-asyncvlsi-dali/dali/common/helper.h: In function 'void dali::SaveMatlabPatchRect(std::ofstream&, T, T, T, T, bool, double, double, double)':
/root/project/src/yale-asyncvlsi-dali/dali/common/helper.h:91:9: error: no match for 'operator<<' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'const char [2]')
   91 |     ost << "\t" << r
      |     ~~~ ^~ ~~~~
      |     |      |
      |     |      const char [2]
      |     std::ofstream {aka std::basic_ofstream<char>}
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/iostream:39,
                 from /root/project/src/yale-asyncvlsi-dali/dali/circuit/block.h:24,
                 from /root/project/src/yale-asyncvlsi-dali/dali/circuit/block.cc:21:
/opt/rh/devtoolset-11/root/usr/include/c++/11/ostream:747:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
  747 |     operator<<(_Ostream&& __os, const _Tp& __x)
      |     ^~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/ostream:747:5: note:   template argument deduction/substitution failed:
/opt/rh/devtoolset-11/root/usr/include/c++/11/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_ofstream<char>&; _Tp = char [2]]':
/root/project/src/yale-asyncvlsi-dali/dali/common/helper.h:91:12:   required from here
/opt/rh/devtoolset-11/root/usr/include/c++/11/ostream:747:5: error: no type named 'type' in 'struct std::enable_if<false, void>'

cmake:

#############################
# dali
-- Detecting environment variable ACT_HOME...
-- Environment variable ACT_HOME detected: /root/project/act
-- Found libact.a: /root/project/act/lib/libact.a
-- Found libvlsilib.a: /root/project/act/lib/libvlsilib.a
-- Found libphydb.a: /root/project/act/lib/libphydb.a
-- Found liblef.a: /root/project/act/lib/liblef.a
-- Found libdef.a: /root/project/act/lib/libdef.a
-- Detecting Galois libraries...
-- Cannot find libgalois_eda.a
-- Found libgalois_shmem.a: /root/project/act/lib64/libgalois_shmem.a
-- Found libnuma: /root/project/act/lib/libnuma.so
-- Found Boost: /root/project/act/lib/cmake/Boost-1.79.0/BoostConfig.cmake (found suitable version "1.79.0", minimum required is "1.71.0") found components: log_setup log filesystem 
-- Boost library path: /root/project/act/lib
-- Boost include path: /root/project/act/include
-- Boost libs: Boost::log_setup;Boost::log;Boost::filesystem
-- Environment variable CPLEX_INC not found
-- Environment variable CPLEX_LIB not found
-- Environment variable CONCERT_INC not found
-- Environment variable CONCERT_LIB not found
-- RELEASE build type
-- Found Boost: /root/project/act/lib/cmake/Boost-1.79.0/BoostConfig.cmake (found version "1.79.0") found components: unit_test_framework 
-- Current installation directory: /root/project/act
-- Configuring done
-- Generating done
-- Build files have been written to: /root/project/src/yale-asyncvlsi-dali/build

build commands (not super relevant)

cd $EDA_SRCDIR/yale-asyncvlsi-dali/build
cmake \
-D CMAKE_INSTALL_PREFIX=$ACT_HOME \
-D CMAKE_LIBRARY_PATH=$ACT_HOME/lib \
-D CMAKE_INCLUDE_PATH=$ACT_HOME/include \
-D CMAKE_INSTALL_RPATH="\$ORIGIN/../lib,$ACT_HOME/lib" \
-D CMAKE_BUILD_TYPE=Release \
.. || exit 1
make 2> install.log || exit 1
make install || exit 1

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.