Skip to content

Build error: throw will always call terminate #1414

@mewmew

Description

@mewmew

When trying to build nupic.core at rev 7d66fc32c65358d3759c6794c6ddb1ce7d33ab79, I received the following error message:

/home/u/Desktop/numenta_play/nupic_core_aur/src/nupic.core/src/nupic/engine/Output.cpp: In destructor ‘nupic::Output::~Output()’:
/home/u/Desktop/numenta_play/nupic_core_aur/src/nupic.core/src/nupic/engine/Output.cpp:49:36: error: throw will always call terminate() [-Werror=terminate]
   NTA_CHECK(links_.size() == 0) << "Internal error in region deletion";
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/numenta_play/nupic_core_aur/src/nupic.core/src/nupic/engine/Output.cpp:49:36: note: in C++11 destructors default to noexcept
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/nupic_core_solo.dir/build.make:1489: src/CMakeFiles/nupic_core_solo.dir/nupic/engine/Output.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:713: src/CMakeFiles/nupic_core_solo.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions