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

Error during building on Debian 8 (within silicon building) #21

Open
fnc12 opened this issue Oct 19, 2017 · 7 comments
Open

Error during building on Debian 8 (within silicon building) #21

fnc12 opened this issue Oct 19, 2017 · 7 comments

Comments

@fnc12
Copy link

fnc12 commented Oct 19, 2017

cat /etc/issue
Debian GNU/Linux 8 \n \l

Trying to install silicon on my linux server machine.

git clone https://github.com/matt-42/silicon.git
mkdir silicon_build
cd silicon
./install.sh ../silicon_build/

Output:

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is Clang 3.5.0
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /root/silicon/silicon_build
Install the project...
-- Install configuration: ""
-- Installing: /root/silicon_build/include/silicon
-- Installing: /root/silicon_build/include/silicon/remote_api.hh
-- Installing: /root/silicon_build/include/silicon/backends
-- Installing: /root/silicon_build/include/silicon/backends/rabbitmq.hh
-- Installing: /root/silicon_build/include/silicon/backends/ws_route.hh
-- Installing: /root/silicon_build/include/silicon/backends/wspp_connection.hh
-- Installing: /root/silicon_build/include/silicon/backends/mimosa.hh
-- Installing: /root/silicon_build/include/silicon/backends/ws_api.hh
-- Installing: /root/silicon_build/include/silicon/backends/mhd.hh
-- Installing: /root/silicon_build/include/silicon/backends/cppnet.hh
-- Installing: /root/silicon_build/include/silicon/backends/h2o.hh
-- Installing: /root/silicon_build/include/silicon/backends/websocketpp.hh
-- Installing: /root/silicon_build/include/silicon/backends/websocketpp_remote_client.hh
-- Installing: /root/silicon_build/include/silicon/backends/urldecode.hh
-- Installing: /root/silicon_build/include/silicon/backends/lwan.hh
-- Installing: /root/silicon_build/include/silicon/middlewares
-- Installing: /root/silicon_build/include/silicon/middlewares/mysql_session.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/mysql_orm.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/mysql_connection.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/sqlite_orm.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/sqlite_types.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/mysql_types.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/tracking_cookie.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/sqlite_connection.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/sqlite_session.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/sql_orm.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/sql_session.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/hashmap_session.hh
-- Installing: /root/silicon_build/include/silicon/middlewares/get_parameters.hh
-- Installing: /root/silicon_build/include/silicon/base_64.hh
-- Installing: /root/silicon_build/include/silicon/sql_rest.hh
-- Installing: /root/silicon_build/include/silicon/utils.hh
-- Installing: /root/silicon_build/include/silicon/blob.hh
-- Installing: /root/silicon_build/include/silicon/hash.hh
-- Installing: /root/silicon_build/include/silicon/clients
-- Installing: /root/silicon_build/include/silicon/clients/templates
-- Installing: /root/silicon_build/include/silicon/clients/templates/javascript_websocket.hh
-- Installing: /root/silicon_build/include/silicon/clients/templates/javascript.hh
-- Installing: /root/silicon_build/include/silicon/clients/javascript_client.hh
-- Installing: /root/silicon_build/include/silicon/clients/libcurl_client.hh
-- Installing: /root/silicon_build/include/silicon/response.hh
-- Installing: /root/silicon_build/include/silicon/procedure_desc.hh
-- Installing: /root/silicon_build/include/silicon/middleware_factories.hh
-- Installing: /root/silicon_build/include/silicon/dynamic_routing_table.hh
-- Installing: /root/silicon_build/include/silicon/api_to_sio.hh
-- Installing: /root/silicon_build/include/silicon/api_description.hh
-- Installing: /root/silicon_build/include/silicon/sql_crud.hh
-- Installing: /root/silicon_build/include/silicon/error.hh
-- Installing: /root/silicon_build/include/silicon/api.hh
-- Installing: /root/silicon_build/include/silicon/http_route.hh
-- Installing: /root/silicon_build/include/silicon/service.hh
-- Installing: /root/silicon_build/include/silicon/di_factories.hh
-- Installing: /root/silicon_build/include/silicon/symbols.hh
-- Installing: /root/silicon_build/include/silicon/file.hh
-- Installing: /root/silicon_build/include/silicon/optional.hh
-- Installing: /root/silicon_build/include/silicon/rmq_route.hh
-- Installing: /root/silicon_build/include/silicon/null.hh
-- Installing: /root/silicon_build/include/silicon
-- Installing: /root/silicon_build/include/silicon/backends
-- Installing: /root/silicon_build/include/silicon/middlewares
-- Installing: /root/silicon_build/include/silicon/clients
-- Installing: /root/silicon_build/include/silicon/clients/templates
Cloning into 'iod'...
remote: Counting objects: 1113, done.
remote: Total 1113 (delta 0), reused 0 (delta 0), pack-reused 1113
Receiving objects: 100% (1113/1113), 360.44 KiB | 0 bytes/s, done.
Resolving deltas: 100% (755/755), done.
Checking connectivity... done.
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is Clang 3.5.0
-- 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
-- Boost version: 1.55.0
-- Configuring done
-- Generating done
-- Build files have been written to: /root/silicon/silicon_build/externals/iod/silicon_build
Scanning dependencies of target iod_generate_symbols
Scanning dependencies of target apply
Scanning dependencies of target array_view
Scanning dependencies of target aos_view
[  6%] [ 12%] Building CXX object tools/CMakeFiles/iod_generate_symbols.dir/iod_generate_symbols.cc.o
[ 18%] [ 25%] Building CXX object tests/CMakeFiles/aos_view.dir/aos_view.cc.o
Building CXX object tests/CMakeFiles/apply.dir/apply.cc.o
Building CXX object tests/CMakeFiles/array_view.dir/array_view.cc.o
Linking CXX executable apply
Linking CXX executable array_view
[ 25%] Built target apply
Scanning dependencies of target bind_method
[ 25%] Built target array_view
[ 31%] Building CXX object tests/CMakeFiles/bind_method.dir/bind_method.cc.o
Scanning dependencies of target callable_traits
[ 37%] Building CXX object tests/CMakeFiles/callable_traits.dir/callable_traits.cc.o
Linking CXX executable aos_view
[ 37%] Built target aos_view
Scanning dependencies of target core
[ 43%] Building CXX object tests/CMakeFiles/core.dir/core.cc.o
Linking CXX executable callable_traits
Linking CXX executable bind_method
[ 43%] Built target callable_traits
Scanning dependencies of target deep_merge
[ 43%] [ 50%] Built target bind_method
Building CXX object tests/CMakeFiles/deep_merge.dir/deep_merge.cc.o
Scanning dependencies of target di
[ 56%] Building CXX object tests/CMakeFiles/di.dir/di.cc.o
Linking CXX executable core
[ 56%] Built target core
Scanning dependencies of target foreach
[ 62%] Building CXX object tests/CMakeFiles/foreach.dir/foreach.cc.o
Linking CXX executable iod_generate_symbols
Linking CXX executable di
[ 62%] Built target di
Scanning dependencies of target json
[ 62%] [ 68%] Built target iod_generate_symbols
Building CXX object tests/CMakeFiles/json.dir/json.cc.o
Scanning dependencies of target options
[ 75%] Building CXX object tests/CMakeFiles/options.dir/options.cc.o
Linking CXX executable foreach
[ 75%] Built target foreach
Scanning dependencies of target parse_command_line
[ 81%] Building CXX object tests/CMakeFiles/parse_command_line.dir/parse_command_line.cc.o
Linking CXX executable options
[ 81%] Built target options
Scanning dependencies of target readme
[ 87%] Building CXX object tests/CMakeFiles/readme.dir/readme.cc.o
Linking CXX executable readme
In file included from /root/silicon/silicon_build/externals/iod/tests/deep_merge.cc:4:
In file included from /root/silicon/silicon_build/externals/iod/tests/../iod/json.hh:15:
/root/silicon/silicon_build/externals/iod/tests/../iod/json_unicode.hh:64:61: error: call to implicitly-deleted copy constructor of 'std::basic_stringstream<char>'
  wrap_json_input_stream(const iod::stringview& s) { return std::stringstream(s.to_std_string()); }
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/sstream:502:32: note: copy constructor of 'basic_stringstream<char, std::char_traits<char>, std::allocator<char> >' is implicitly deleted because base class
      'basic_iostream<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_stringstream : public basic_iostream<_CharT, _Traits>
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:796:7: note: copy constructor of 'basic_iostream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_istream<char, std::char_traits<char> >' has a deleted copy constructor
    : public basic_istream<_CharT, _Traits>,
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:58:27: note: copy constructor of 'basic_istream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_ios<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_istream : virtual public basic_ios<_CharT, _Traits>
                          ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_ios.h:66:23: note: copy constructor of 'basic_ios<char, std::char_traits<char> >' is implicitly deleted because base class 'std::ios_base' has an inaccessible
      copy constructor
    class basic_ios : public ios_base
                      ^
In file included from /root/silicon/silicon_build/externals/iod/tests/deep_merge.cc:4:
In file included from /root/silicon/silicon_build/externals/iod/tests/../iod/json.hh:15:
/root/silicon/silicon_build/externals/iod/tests/../iod/json_unicode.hh:66:57: error: call to implicitly-deleted copy constructor of 'std::basic_stringstream<char>'
  wrap_json_input_stream(const std::string& s) { return std::stringstream(s); }
                                                        ^~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/sstream:502:32: note: copy constructor of 'basic_stringstream<char, std::char_traits<char>, std::allocator<char> >' is implicitly deleted because base class
      'basic_iostream<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_stringstream : public basic_iostream<_CharT, _Traits>
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:796:7: note: copy constructor of 'basic_iostream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_istream<char, std::char_traits<char> >' has a deleted copy constructor
    : public basic_istream<_CharT, _Traits>,
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:58:27: note: copy constructor of 'basic_istream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_ios<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_istream : virtual public basic_ios<_CharT, _Traits>
                          ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_ios.h:66:23: note: copy constructor of 'basic_ios<char, std::char_traits<char> >' is implicitly deleted because base class 'std::ios_base' has an inaccessible
      copy constructor
    class basic_ios : public ios_base
                      ^
In file included from /root/silicon/silicon_build/externals/iod/tests/deep_merge.cc:4:
In file included from /root/silicon/silicon_build/externals/iod/tests/../iod/json.hh:15:
/root/silicon/silicon_build/externals/iod/tests/../iod/json_unicode.hh:68:50: error: call to implicitly-deleted copy constructor of 'std::basic_stringstream<char>'
  wrap_json_input_stream(const char* s) { return std::stringstream(std::string(s)); }
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/sstream:502:32: note: copy constructor of 'basic_stringstream<char, std::char_traits<char>, std::allocator<char> >' is implicitly deleted because base class
      'basic_iostream<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_stringstream : public basic_iostream<_CharT, _Traits>
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:796:7: note: copy constructor of 'basic_iostream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_istream<char, std::char_traits<char> >' has a deleted copy constructor
    : public basic_istream<_CharT, _Traits>,
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:58:27: note: copy constructor of 'basic_istream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_ios<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_istream : virtual public basic_ios<_CharT, _Traits>
                          ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_ios.h:66:23: note: copy constructor of 'basic_ios<char, std::char_traits<char> >' is implicitly deleted because base class 'std::ios_base' has an inaccessible
      copy constructor
    class basic_ios : public ios_base
                      ^
[ 87%] Built target readme
Scanning dependencies of target tuple
[ 93%] Building CXX object tests/CMakeFiles/tuple.dir/tuple.cc.o
In file included from /root/silicon/silicon_build/externals/iod/tests/json.cc:7:
In file included from /root/silicon/silicon_build/externals/iod/tests/../iod/json.hh:15:
/root/silicon/silicon_build/externals/iod/tests/../iod/json_unicode.hh:64:61: error: call to implicitly-deleted copy constructor of 'std::basic_stringstream<char>'
  wrap_json_input_stream(const iod::stringview& s) { return std::stringstream(s.to_std_string()); }
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/sstream:502:32: note: copy constructor of 'basic_stringstream<char, std::char_traits<char>, std::allocator<char> >' is implicitly deleted because base class
      'basic_iostream<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_stringstream : public basic_iostream<_CharT, _Traits>
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:796:7: note: copy constructor of 'basic_iostream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_istream<char, std::char_traits<char> >' has a deleted copy constructor
    : public basic_istream<_CharT, _Traits>,
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:58:27: note: copy constructor of 'basic_istream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_ios<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_istream : virtual public basic_ios<_CharT, _Traits>
                          ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_ios.h:66:23: note: copy constructor of 'basic_ios<char, std::char_traits<char> >' is implicitly deleted because base class 'std::ios_base' has an inaccessible
      copy constructor
    class basic_ios : public ios_base
                      ^
In file included from /root/silicon/silicon_build/externals/iod/tests/json.cc:7:
In file included from /root/silicon/silicon_build/externals/iod/tests/../iod/json.hh:15:
/root/silicon/silicon_build/externals/iod/tests/../iod/json_unicode.hh:66:57: error: call to implicitly-deleted copy constructor of 'std::basic_stringstream<char>'
  wrap_json_input_stream(const std::string& s) { return std::stringstream(s); }
                                                        ^~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/sstream:502:32: note: copy constructor of 'basic_stringstream<char, std::char_traits<char>, std::allocator<char> >' is implicitly deleted because base class
      'basic_iostream<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_stringstream : public basic_iostream<_CharT, _Traits>
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:796:7: note: copy constructor of 'basic_iostream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_istream<char, std::char_traits<char> >' has a deleted copy constructor
    : public basic_istream<_CharT, _Traits>,
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:58:27: note: copy constructor of 'basic_istream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_ios<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_istream : virtual public basic_ios<_CharT, _Traits>
                          ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_ios.h:66:23: note: copy constructor of 'basic_ios<char, std::char_traits<char> >' is implicitly deleted because base class 'std::ios_base' has an inaccessible
      copy constructor
    class basic_ios : public ios_base
                      ^
In file included from /root/silicon/silicon_build/externals/iod/tests/json.cc:7:
In file included from /root/silicon/silicon_build/externals/iod/tests/../iod/json.hh:15:
/root/silicon/silicon_build/externals/iod/tests/../iod/json_unicode.hh:68:50: error: call to implicitly-deleted copy constructor of 'std::basic_stringstream<char>'
  wrap_json_input_stream(const char* s) { return std::stringstream(std::string(s)); }
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/sstream:502:32: note: copy constructor of 'basic_stringstream<char, std::char_traits<char>, std::allocator<char> >' is implicitly deleted because base class
      'basic_iostream<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_stringstream : public basic_iostream<_CharT, _Traits>
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:796:7: note: copy constructor of 'basic_iostream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_istream<char, std::char_traits<char> >' has a deleted copy constructor
    : public basic_istream<_CharT, _Traits>,
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/istream:58:27: note: copy constructor of 'basic_istream<char, std::char_traits<char> >' is implicitly deleted because base class
      'basic_ios<char, std::char_traits<char> >' has a deleted copy constructor
    class basic_istream : virtual public basic_ios<_CharT, _Traits>
                          ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_ios.h:66:23: note: copy constructor of 'basic_ios<char, std::char_traits<char> >' is implicitly deleted because base class 'std::ios_base' has an inaccessible
      copy constructor
    class basic_ios : public ios_base
                      ^
3 errors generated.
tests/CMakeFiles/deep_merge.dir/build.make:54: recipe for target 'tests/CMakeFiles/deep_merge.dir/deep_merge.cc.o' failed
make[2]: *** [tests/CMakeFiles/deep_merge.dir/deep_merge.cc.o] Error 1
CMakeFiles/Makefile2:363: recipe for target 'tests/CMakeFiles/deep_merge.dir/all' failed
make[1]: *** [tests/CMakeFiles/deep_merge.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX executable tuple
[ 93%] Built target tuple
3 errors generated.
tests/CMakeFiles/json.dir/build.make:54: recipe for target 'tests/CMakeFiles/json.dir/json.cc.o' failed
make[2]: *** [tests/CMakeFiles/json.dir/json.cc.o] Error 1
CMakeFiles/Makefile2:468: recipe for target 'tests/CMakeFiles/json.dir/all' failed
make[1]: *** [tests/CMakeFiles/json.dir/all] Error 2
Linking CXX executable parse_command_line
[ 93%] Built target parse_command_line
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
Cannot install /root/silicon_build.

I successfully installed one if previous versions of silicon and iod on the same machine with the same OS before. What I am doing wrong?

@matt-42
Copy link
Owner

matt-42 commented Oct 19, 2017 via email

@fnc12
Copy link
Author

fnc12 commented Oct 19, 2017

I know nothing about upgrading stdlib separately from compiler and can find nothing about it in google. Do you know how to perform it?

@matt-42
Copy link
Owner

matt-42 commented Oct 19, 2017 via email

@fnc12
Copy link
Author

fnc12 commented Oct 19, 2017

No I didn't. How to do it? Do I need to add an argument to ./install.sh ../silicon_build/ line?

@matt-42
Copy link
Owner

matt-42 commented Oct 19, 2017 via email

@fnc12
Copy link
Author

fnc12 commented Oct 19, 2017

same result. export CPPFLAGS="-stdlib=libc++" worked successfully without any output. Errors are the same /root/silicon/silicon_build/externals/iod/tests/../iod/json_unicode.hh:68:50: error: call to implicitly-deleted copy constructor of 'std::basic_stringstream<char>'

@fnc12
Copy link
Author

fnc12 commented Oct 19, 2017

BTW silicon builds successfully on my different debian machine with Debian 9

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