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

terminate called after throwing an instance of 'std::system_error' #57

Closed
gabyrech opened this issue Feb 27, 2018 · 10 comments
Closed

terminate called after throwing an instance of 'std::system_error' #57

gabyrech opened this issue Feb 27, 2018 · 10 comments

Comments

@gabyrech
Copy link

Hello!
I am getting this error:

terminate called after throwing an instance of 'std::system_error'
  what():  Enable multithreading to use std::thread: Operation not permitted

My OS is Ubuntu 14.04.

$ cmake --version
cmake version 3.10.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ gcc
gcc             gcc-4.8         gcc-ar          gcc-ar-4.8      gcc-nm          gcc-nm-4.8      gcc-ranlib      gcc-ranlib-4.8

Thanks!
Gabriel

@rvaser
Copy link
Collaborator

rvaser commented Feb 27, 2018

Hi Gabriel,
please run gcc --version and paste the result. Might be a bug with a specific gcc version.

Best regards,
Robert

@gabyrech
Copy link
Author

$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Thanks Robert!

@rvaser
Copy link
Collaborator

rvaser commented Feb 27, 2018

Try adding -Wl,--no-as-needed to CMakeLists.txt at line 8 after -pedantic. Run cmake and compile with make.

@gabyrech
Copy link
Author

Great! Now it seems to be solve!
Thank you very much!
Best,
Gabriel

@rvaser
Copy link
Collaborator

rvaser commented Feb 27, 2018

As it is a compiler specific bug I won't add the flags to master branch. You can either update your compiler to 4.8.5 or have this fix in your local installation :)

Best,
Robert

@rvaser rvaser closed this as completed Feb 27, 2018
@divyakundala
Copy link

@rvaser I face the similar issue while executing the exe from the cmake.

terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
Aborted

My gcc version is:
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Cmake version is:
cmake3 version 3.17.3

As per you suggestion in this post, I tried to add flags in the CMakeLists.txt but the error still persists. Can you please assist me on this?

@rvaser
Copy link
Collaborator

rvaser commented Dec 12, 2020

Hi @divyakundala,
which version of Racon are you using?

Best regards,
Robert

@divyakundala
Copy link

Hi @rvaser ,

I don't have racon installed in my system.

racon --version
-bash: racon: command not found

@rvaser
Copy link
Collaborator

rvaser commented Dec 16, 2020

Could you please paste all the commands you used for compilation? On the other hand, you can always use Racon from bioconda.

@Jnbzr
Copy link

Jnbzr commented Mar 21, 2023

terminate called after throwing an instance of 'std::system_error'
what(): Invalid argument
how to solve

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

4 participants