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.