Test framework does not run under ubuntu-gcc4.8 (their bug)
On a fresh ubuntu install, after configuring everything. I get an error
terminate called after throwing an instance of 'std::system_error'
what(): Enable multithreading to use std::thread: Operation not permitted
Aborted (core dumped)
This error seams to come from a lack of the option -lpthread for the compiler. However, cmakefiles seem to be adding this option.
I tried to add it manually with -DCMAKE_CXX_FLAGS=" -lpthread " but that did not work either.
Comments (9)
-
reporter -
Excuses, ik kende de bug al, maar dacht dat er niet meteen iemand anders op gcc 4.8 ging beginnen werken (dus had hem nog niet gefiled). Dit is een gekende bug in ubuntu / gcc 4.8, dus wachten op hun fix.
Meer gedetailleerd: er is een optimalisatie toegevoegd/aangepast die libraries niet linkt als de compiler/ubuntu denkt dat ze niet nodig zijn, zelfs als ze in de linker flags staan. Die detectie is dus verkeerd :)
-
- changed title to Test framework does not run under ubuntu-gcc4.8 (their bug)
-
Ubuntu versoin of the bug https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1228201 Workaround: compile with -Wl,--no-as-needed
-
reporter added a temporary fix for the problem with compiling on new ubuntu
See #571. This commit should be reverted as soon as g++ or ubuntu fixes their bug.
→ <<cset fcf0587219ab>>
-
reporter Revert "added a temporary fix for the problem with compiling on new ubuntu"
This reverts commit fcf0587219ab29521c63ed500ec5e596ff72f7e3. See #571
→ <<cset 617c153f6129>>
-
reporter Fix is in branch ubuntufix.
As soon as ubuntu/gcc fixes their bug, merge branch ubuntufix_revert.
-
reporter added a temporary fix for the problem with compiling on new ubuntu
See #571. This commit should be reverted as soon as g++ or ubuntu fixes their bug.
→ <<cset 53abdea23f12>>
-
- marked as minor
- marked as enhancement
Does not seem to be getting fixed anytime soon.
- Log in to comment
Further info: Cmake warned me (but did not give an error)
-- Looking for include file pthread.h -- Looking for include file pthread.h - not found -- Could NOT find Threads (missing: Threads_FOUND)
Might have something to do with my specific cmake version: see http://stackoverflow.com/questions/16909008/cmake-error-try-compile-pthreads-of-type-executable