• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Fork Error: Segmentation Fault on Compile

Status
Not open for further replies.

Whoffie

New member
I'm attempting to fork DASH. I changed chainparams.cpp file to match me generated genesis blocks (for Mainnet, Testnet, and Regtestnet), but on compile, I always seem to get this curious segmentation fault error.

Code:
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/stdexcept:38,
                 from ./uint256.h:12,
                 from ./random.h:11,
                 from test/random_tests.cpp:5:
/usr/include/c++/7/type_traits: In instantiation of ‘struct std::__or_<std::is_lvalue_reference<const boost::exception_detail::type_info_>, std::is_rvalue_reference<const boost::exception_detail::type_info_> >’:
/usr/include/c++/7/type_traits:580:12:   required from ‘struct std::is_reference<const boost::exception_detail::type_info_>’
/usr/include/c++/7/type_traits:120:12:   required from ‘struct std::__or_<std::is_reference<const boost::exception_detail::type_info_>, std::is_void<const boost::exception_detail::type_info_> >’
/usr/include/c++/7/type_traits:125:12:   required from ‘struct std::__or_<std::is_function<const boost::exception_detail::type_info_>, std::is_reference<const boost::exception_detail::type_info_>, std::is_void<const boost::exception_detail::type_info_> >’
/usr/include/c++/7/type_traits:154:31:   required from ‘struct std::__not_<std::__or_<std::is_function<const boost::exception_detail::type_info_>, std::is_reference<const boost::exception_detail::type_info_>, std::is_void<const boost::exception_detail::type_info_> > >’
/usr/include/c++/7/type_traits:600:12:   required from ‘struct std::is_object<const boost::exception_detail::type_info_>’
/usr/include/c++/7/type_traits:120:12:   required from ‘struct std::__or_<std::is_object<const boost::exception_detail::type_info_>, std::is_reference<const boost::exception_detail::type_info_> >’
/usr/include/c++/7/type_traits:637:12:   required from ‘struct std::__is_referenceable<const boost::exception_detail::type_info_>’
/usr/include/c++/7/type_traits:1291:12:   required from ‘struct std::is_copy_assignable<const boost::exception_detail::type_info_>’
/usr/include/c++/7/type_traits:143:12:   required from ‘struct std::__and_<std::is_copy_assignable<const boost::exception_detail::type_info_>, std::is_copy_assignable<boost::shared_ptr<boost::exception_detail::error_info_base> > >’
/usr/include/c++/7/bits/stl_pair.h:378:7:   required from ‘struct std::pair<const boost::exception_detail::type_info_, boost::shared_ptr<boost::exception_detail::error_info_base> >’
/usr/include/boost/exception/info.hpp:81:34:   required from here
/usr/include/c++/7/type_traits:122:5: internal compiler error: Segmentation fault
     { };
     ^

When I try going back and just forking DASH without changing anything, the error doesn't appear, which makes me realize that this probably has something to do with what I'm doing in chainparams.cpp. I can't link to my code because I'm a new user, and I feel like if I pasted chainparams.cpp here it would probably be just spam. I've looked this problem up on the DASH forums (and GitHub) quite a bit and never found anything. I haven't gotten an error like this before.

If you could help me out with this, thanks in advance

EDIT: This is for a hobby project
 
Last edited:
Status
Not open for further replies.
Back
Top