Coder Social home page Coder Social logo

caesar.sdd's People

Contributors

ahamez avatar tic-toc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

tic-toc yanntm

caesar.sdd's Issues

Missing install with cmake

After doing:

mkdir -p caesar.sdd/_build
cd caesar.sdd/_build
cmake ..

i get:

$ make install
make: *** No rule to make target `install'.  Stop.

Caesar.sdd aborts with correct NUPNs.

When using the NUPN file available here: BuggyConcUnits.nupn.gz, caesar.sdd --concurrent-units aborts and gives this error:

caesar.sdd: [...]/caesar.sdd/src/mc/units/concurrent_units.cc:70: pnmc::mc::units::{anonymous}::query_visitor::result_type pnmc::mc::units::{anonymous}::query_visitor::operator()(const sdd::one_terminalpnmc::mc::units::sdd_conf&, const order&, InputIterator, InputIterator, bool, bool) const [with InputIterator = __gnu_cxx::__normal_iterator<const unsigned int*, std::vector >; pnmc::mc::units::{anonymous}::query_visitor::result_type = pnmc::mc::units::{anonymous}::active; pnmc::mc::units::order = sdd::orderpnmc::mc::units::sdd_conf]: Assertion `false && "|1|"' failed.
Aborted

This bug is only triggered by the --concurrent-units option and happen during the exploration of the SDD.

Before the crash, the following output is provided:

0
00
0

The first call of the query method goes wrong, with units (i, j) = (2, 1).

The default SDD order is:

0 (3)
3 (2)
2 (1)
1 (0)

Cmake warning

With cmake (version 3.9.5), i get the following warning:

$ cmake ..
-- The C compiler identification is AppleClang 9.0.0.9000038
-- The CXX compiler identification is AppleClang 9.0.0.9000038
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   program_options
--   coroutine
--   context
--   system
--   thread
--   chrono
--   date_time
--   atomic
-- Boost Include: /usr/local/include
-- Boost Libraries: /usr/local/lib
-- Configuring done
CMake Warning (dev) in src/CMakeLists.txt:
  Policy CMP0021 is not set: Fatal error on relative paths in
  INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy CMP0021" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  Found relative path while evaluating include directories of "caesar.sdd":

    "OFF"

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in src/CMakeLists.txt:
  Policy CMP0021 is not set: Fatal error on relative paths in
  INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy CMP0021" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  Found relative path while evaluating include directories of "caesar.sdd":

    "OFF"

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in src/CMakeLists.txt:
  Policy CMP0021 is not set: Fatal error on relative paths in
  INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy CMP0021" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  Found relative path while evaluating include directories of "caesar.sdd":

    "OFF"

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/alinard/Temporary/caesar.sdd/_build

Compilation problem

When compiling in alpine with the gcc compiler, or under macos with clang, i get the following error:

/caesar.sdd/src/mc/units/worker.cc: In function 'pnmc::mc::units::order pnmc::mc::units::mk_order(const pnmc::conf::pnmc_configuration&, const pnmc::pn::net&)':
/caesar.sdd/src/mc/units/worker.cc:104:18: error: no match for call to '(sdd::force::worker<pnmc::mc::units::sdd_conf>) ()'
     return force();

The full docker file is:

FROM alpine

RUN true \
 && apk add --no-cache --virtual .build-deps \
        build-base \
        boost-dev \
        cmake \
        git \
 && apk add --no-cache \
        bash \
        libstdc++ \
 && git clone https://github.com/ahamez/libsdd.git \
    && cd libsdd \
    && cmake . \
    && make \
    && make install \
    && cd .. \
    && rm -rf libsdd \
 && git clone https://github.com/ahamez/caesar.sdd.git \
    && cd caesar.sdd \
    && cmake . \
    && make \
    && make install \
    && cd .. \
    && rm -rf caesar.sdd \
 && apk del .build-deps \
 && true

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.