Error trying to install SCRAM

80 views
Skip to first unread message

Svensson Johan

unread,
Feb 5, 2015, 11:15:27 AM2/5/15
to scra...@googlegroups.com

Hi,

 

I’m getting the following error trying to install SCRAM on ubuntu running on an virtualbox under windows. Unfortunately I can’t figure out what is wrong..

 

python scram-develop/install.py --clean-build

/usr/bin/cmake

-- The C compiler identification is GNU 4.8.2

-- The CXX compiler identification is GNU 4.8.2

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.1")

-- checking for module 'glib-2.0'

--   found glib-2.0, version 2.40.2

-- Found glib-2.0: /usr/include/glib-2.0, /usr/lib/x86_64-linux-gnu/libglib-2.0.so

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")

-- checking for module 'sigc++-2.0'

--   found sigc++-2.0, version 2.2.10

-- Found SigC++

-- checking for module 'glibmm-2.4'

--   found glibmm-2.4, version 2.39.93

-- Found Glibmm

-- checking for module 'libxml++-2.6'

--   found libxml++-2.6, version 2.36.0

-- Found LibXML++

/usr/lib/x86_64-linux-gnu/libxml2.so/usr/lib/libxml++-2.6.so/usr/lib/x86_64-linux-gnu/libxml2.so/usr/lib/x86_64-linux-gnu/libglibmm-2.4.so/usr/lib/x86_64-linux-gnu/libglib-2.0.so/usr/lib/x86_64-linux-gnu/libsigc-2.0.so

-- Boost version: 1.54.0

-- Found the following Boost libraries:

--   program_options

--   filesystem

--   system

--   random

-- Linking against boost dynamic libraries

--    Boost Root:

--    Boost Include directory: /usr/include

--    Boost Library directories: /usr/lib/x86_64-linux-gnu

--    Boost Program Options location: /usr/lib/x86_64-linux-gnu/libboost_program_options.so

--    Boost System location: /usr/lib/x86_64-linux-gnu/libboost_system.so

--    Boost Filesystem location: /usr/lib/x86_64-linux-gnu/libboost_filesystem.so

-- Found PythonInterp: /usr/bin/python (found version "2.7.6")

-- Looking for include file pthread.h

-- Looking for include file pthread.h - found

-- Looking for pthread_create

-- Looking for pthread_create - not found

-- Looking for pthread_create in pthreads

-- Looking for pthread_create in pthreads - not found

-- Looking for pthread_create in pthread

-- Looking for pthread_create in pthread - found

-- Found Threads: TRUE 

-- Configuring done

-- Generating done

-- Build files have been written to: /home/johan/scram/build

Scanning dependencies of target scramcore

[  1%] Building CXX object src/CMakeFiles/scramcore.dir/env.cc.o

[  3%] Building CXX object src/CMakeFiles/scramcore.dir/version.cc.o

[  5%] Building CXX object src/CMakeFiles/scramcore.dir/error.cc.o

[  7%] Building CXX object src/CMakeFiles/scramcore.dir/settings.cc.o

[  9%] Building CXX object src/CMakeFiles/scramcore.dir/element.cc.o

[ 10%] Building CXX object src/CMakeFiles/scramcore.dir/expression.cc.o

[ 12%] Building CXX object src/CMakeFiles/scramcore.dir/event.cc.o

[ 14%] Building CXX object src/CMakeFiles/scramcore.dir/ccf_group.cc.o

[ 16%] Building CXX object src/CMakeFiles/scramcore.dir/fault_tree.cc.o

[ 18%] Building CXX object src/CMakeFiles/scramcore.dir/indexed_gate.cc.o

[ 20%] Building CXX object src/CMakeFiles/scramcore.dir/indexed_fault_tree.cc.o

[ 21%] Building CXX object src/CMakeFiles/scramcore.dir/random.cc.o

[ 23%] Building CXX object src/CMakeFiles/scramcore.dir/fault_tree_analysis.cc.o

[ 25%] Building CXX object src/CMakeFiles/scramcore.dir/probability_analysis.cc.o

/home/johan/scram/scram-develop/src/probability_analysis.cc: In member function ‘void scram::ProbabilityAnalysis::CombineElAndSet(const boost::container::flat_set<int>&, const std::set<boost::container::flat_set<int> >&, std::set<boost::container::flat_set<int> >*)’:

/home/johan/scram/scram-develop/src/probability_analysis.cc:276:45: error: call of overloaded ‘insert(boost::container::flat_set<int>::const_iterator, boost::container::flat_set<int>::const_iterator)’ is ambiguous

       member_set.insert(el.begin(), el.end());

                                             ^

/home/johan/scram/scram-develop/src/probability_analysis.cc:276:45: note: candidates are:

In file included from /usr/include/boost/container/vector.hpp:46:0,

                 from /usr/include/boost/container/detail/flat_tree.hpp:32,

                 from /usr/include/boost/container/flat_set.hpp:25,

                 from /home/johan/scram/scram-develop/src/probability_analysis.h:12,

                 from /home/johan/scram/scram-develop/src/probability_analysis.cc:4:

/usr/include/boost/container/flat_set.hpp:508:4: note: typename boost::enable_if_c<(((! boost::is_class<BOOST_MOVE_TEMPL_PARAM>::value) || (! boost::move_detail::is_rv<BOOST_MOVE_TEMPL_PARAM>::value)) && (! boost::is_same<T, BOOST_MOVE_TEMPL_PARAM>::value)), typename boost::container::container_detail::flat_tree<Key, Key, boost::container::container_detail::identity<Key>, Compare, Allocator>::iterator>::type boost::container::flat_set<Key, Compare, Allocator>::insert(boost::container::flat_set<Key, Compare, Allocator>::const_iterator, const BOOST_MOVE_TEMPL_PARAM&) [with BOOST_MOVE_TEMPL_PARAM = boost::container::container_detail::vector_const_iterator<int*>; Key = int; Compare = std::less<int>; Allocator = std::allocator<int>; typename boost::enable_if_c<(((! boost::is_class<BOOST_MOVE_TEMPL_PARAM>::value) || (! boost::move_detail::is_rv<BOOST_MOVE_TEMPL_PARAM>::value)) && (! boost::is_same<T, BOOST_MOVE_TEMPL_PARAM>::value)), typename boost::container::container_detail::flat_tree<Key, Key, boost::container::container_detail::identity<Key>, Compare, Allocator>::iterator>::type = boost::container::container_detail::vector_iterator<int*>; boost::container::flat_set<Key, Compare, Allocator>::const_iterator = boost::container::container_detail::vector_const_iterator<int*>]

    BOOST_MOVE_CONVERSION_AWARE_CATCH_1ARG(insert, value_type, iterator, this->priv_insert, const_iterator)

    ^

In file included from /home/johan/scram/scram-develop/src/probability_analysis.h:12:0,

                 from /home/johan/scram/scram-develop/src/probability_analysis.cc:4:

/usr/include/boost/container/flat_set.hpp:521:9: note: void boost::container::flat_set<Key, Compare, Allocator>::insert(InputIterator, InputIterator) [with InputIterator = boost::container::container_detail::vector_const_iterator<int*>; Key = int; Compare = std::less<int>; Allocator = std::allocator<int>]

    void insert(InputIterator first, InputIterator last)

         ^

make[2]: *** [src/CMakeFiles/scramcore.dir/probability_analysis.cc.o] Error 1

make[1]: *** [src/CMakeFiles/scramcore.dir/all] Error 2

make: *** [all] Error 2

Traceback (most recent call last):

  File "scram-develop/install.py", line 119, in <module>

    main()

  File "scram-develop/install.py", line 116, in main

    install_scram(args)

  File "scram-develop/install.py", line 50, in install_scram

    shell=(os.name == "nt"))

  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2

 

Would be very grateful if you could help me out!

 

Regards,

Johan Svensson
Branningeniør
Dir: +47 67571583 | Mob: +47 45401583
johan.s...@norconsult.com

Norconsult AS, Postboks 626, NO-1303 Sandvika
Vestfjordgaten 4, NO-1338 Sandvika
Tel: +47 67 57 10 00 | Fax: +47 67 54 45 76
www.norconsult.no


CONFIDENTIALITY AND DISCLAIMER NOTICE: This message is for the sole use of the intended recipients and may contain confidential information. If you are not an intended recipient, you are requested to notify the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure or distribution is prohibited. While the sender has taken reasonable precautions to minimize the risk of viruses, we cannot warrant the absence of, or accept liability for, any such viruses in this message or any attachment.

 

ol.ra...@gmail.com

unread,
Feb 8, 2015, 6:06:09 AM2/8/15
to scra...@googlegroups.com, johan.s...@norconsult.com
Hi,
I believe I had some issues on Ubuntu 14.04 with Boost 1.54. Could you try with Boost 1.55?

Let me know if it works.

You can also get the vm image from sourcefoge directly.

May I know for what purposes you want to use/test the code?

Andrianarivo Tantelitiana RAKOTOARIJAONA

unread,
Jul 5, 2017, 9:47:14 AM7/5/17
to SCRAM Support and User Discussions, scra...@googlegroups.com, Johan.S...@norconsult.com

Hi .
I also try to install scram with the same way by doing:
python install.py --clean-build
and after i try
python install.py --release
For each comand , after runing, i got as result:
/usr/bin/cmake
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2

-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test COMPILER_SUPPORTS_CXX14
-- Performing Test COMPILER_SUPPORTS_CXX14 - Success
-- Not Found Tcmalloc: Tcmalloc_LIBRARY-NOTFOUND
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Could NOT find JeMalloc (missing:  JEMALLOC_LIBRARY JEMALLOC_INCLUDE_DIR)
-- The memory allocator: System Malloc

-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.1")
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.42.1

-- Found glib-2.0: /usr/include/glib-2.0, /usr/lib/x86_64-linux-gnu/libglib-2.0.so
-- checking for module 'sigc++-2.0'
--   package 'sigc++-2.0' not found
SigC++_INCLUDE_DIR=SigC++_INCLUDE_DIR-NOTFOUND
SigC++Config_INCLUDE_DIR=SigC++Config_INCLUDE_DIR-NOTFOUND
SigC++_LIBRARY=SigC++_LIBRARY-NOTFOUND
CMake Error at cmake/LibFindMacros.cmake:74 (message):
  Required library SigC++ NOT FOUND.

  Install the library (dev version) and try again.  If the library is already
  installed, use ccmake to set the missing variables manually.
Call Stack (most recent call first):
  cmake/FindSigC++.cmake:38 (libfind_process)
  cmake/LibFindMacros.cmake:13 (find_package)
  cmake/FindGlibmm.cmake:12 (libfind_package)
  cmake/LibFindMacros.cmake:13 (find_package)
  cmake/FindLibXML++.cmake:12 (libfind_package)
  CMakeLists.txt:172 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/f99177/scram/build/CMakeFiles/CMakeOutput.log".

Traceback (most recent call last):
  File "install.py", line 156, in <module>
    main()
  File "install.py", line 153, in main
    install_scram(args)
  File "install.py", line 87, in install_scram
    generate_make_files(args)
  File "install.py", line 70, in generate_make_files

    shell=(os.name == "nt"))
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/f99177/scram', '-DBUILD_SHARED_LIBS=ON', '-DCMAKE_INSTALL_PREFIX=/home/f99177/.local', '-DCMAKE_BUILD_TYPE=Debug', '-Wdev']' returned non-zero exit status 1

I don't really know why doesnt it work.
I use ubuntu 16.04 LST and with an other PC I use debian 8 but it provide the same things.
As i'm not a sudoers with the Debian distribution, so i can't do any thing if i wold like to work with scram.
So if you have a solution or if you know what is wrong could you tell it to me , it will be helpful .
Thank you for your help.


 

Olzhas Rakhimov

unread,
Jul 5, 2017, 3:19:30 PM7/5/17
to SCRAM Support and User Discussions, scra...@googlegroups.com, Johan.S...@norconsult.com

The dependencies seem to be missing (like sigc++) as CMake error states.
You can install dependencies locally within your home directory (.local),
which should not require sudo.
It is better to ask your system administrators to get packages installed from the official repos.
Another way is to use VirtualBox and have you own setup with sudo.

Regards,
Olzhas Rakhimov
 
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages