{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/4377","repository_url":"https://api.github.com/repos/kripken/emscripten","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/4377/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/4377/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/4377/events","html_url":"https://github.com/kripken/emscripten/issues/4377","id":157988531,"number":4377,"title":"Error in llvm::sys::RunSignalHandlers() on CentOS 7","user":{"login":"derekmooney","id":6709198,"avatar_url":"https://avatars.githubusercontent.com/u/6709198?v=3","gravatar_id":"","url":"https://api.github.com/users/derekmooney","html_url":"https://github.com/derekmooney","followers_url":"https://api.github.com/users/derekmooney/followers","following_url":"https://api.github.com/users/derekmooney/following{/other_user}","gists_url":"https://api.github.com/users/derekmooney/gists{/gist_id}","starred_url":"https://api.github.com/users/derekmooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekmooney/subscriptions","organizations_url":"https://api.github.com/users/derekmooney/orgs","repos_url":"https://api.github.com/users/derekmooney/repos","events_url":"https://api.github.com/users/derekmooney/events{/privacy}","received_events_url":"https://api.github.com/users/derekmooney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-01T19:33:20Z","updated_at":"2016-06-02T18:47:56Z","closed_at":null,"body":"I'm trying to get my project compiling on CentOS 7 with 1.36.5, and the llvm optimizations are failing on our unit test build. It's interesting because the primary build runs just fine - is it limited to situations with re-including the primary bytecode into the unit test build?\r\n\r\nAnyway, the error is:\r\n\r\n```bash\r\nDEBUG:root:(not saving intermediate /tmp/emscripten_temp/emcc-0-basebc.bc because deferring linking)\r\nDEBUG:root:emcc: LLVM opts: -strip-debug -disable-verify -internalize -internalize-public-api-list=main,malloc,free,__errno_location,fflush,__cxa_can_catch,__cxa_is_pointer_type,malloc,free,malloc,free -globaldce -disable-loop-vectorization -disable-slp-vectorization -vectorize-loops=false -vectorize-slp=false -vectorize-slp-aggressive=false  [num inputs: 1]\r\n#0 0x0000000000ed5275 llvm::sys::PrintStackTrace(llvm::raw_ostream&) /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Support/Unix/Signals.inc:323:0\r\n#1 0x0000000000ed34c6 llvm::sys::RunSignalHandlers() /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Support/Signals.cpp:45:0\r\n#2 0x0000000000ed361b SignalHandler(int) /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Support/Unix/Signals.inc:200:0\r\n#3 0x00007f01756c1100 __restore_rt (/lib64/libpthread.so.0+0xf100)\r\n#4 0x0000000000c206a7 dyn_cast<llvm::DISubprogram, llvm::DIScope> /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/include/llvm/Support/Casting.h:298:0\r\n#5 0x0000000000c206a7 findNeededSubprograms /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Linker/IRMover.cpp:1233:0\r\n#6 0x0000000000c206a7 linkNamedMDNodes /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Linker/IRMover.cpp:1290:0\r\n#7 0x0000000000c206a7 run /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Linker/IRMover.cpp:1561:0\r\n#8 0x0000000000c206a7 llvm::IRMover::move(llvm::Module&, llvm::ArrayRef<llvm::GlobalValue*>, std::function<void (llvm::GlobalValue&, std::function<void (llvm::GlobalValue&)>)>, llvm::DenseMap<unsigned int, llvm::MDNode*, llvm::DenseMapInfo<unsigned int>, llvm::detail::DenseMapPair<unsigned int, llvm::MDNode*> >*, bool) /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Linker/IRMover.cpp:1695:0\r\n#9 0x0000000000c272ca ~_Function_base /usr/include/c++/4.8.2/functional:2029:0\r\n#10 0x0000000000c272ca ~function /usr/include/c++/4.8.2/functional:2174:0\r\n#11 0x0000000000c272ca (anonymous namespace)::ModuleLinker::run() /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/lib/Linker/LinkModules.cpp:813:0\r\n#12 0x0000000000c27ee2 llvm::Linker::linkInModule(std::unique_ptr<llvm::Module, std::default_delete<llvm::Module> >, unsigned int, llvm::FunctionInfoIndex const*, llvm::DenseSet<llvm::GlobalValue const*, llvm::DenseMapInfo<llvm::GlobalValue const*> >*, llvm::DenseMap<unsigned int, llvm::MDNode*, llvm::DenseMapInfo<unsigned int>, llvm::detail::DenseMapPair<unsigned int, llvm::MDNode*> >*) /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/include/llvm/ADT/DenseMap.h:381:0\r\n#13 0x0000000000565f23 ~unique_ptr /usr/include/c++/4.8.2/bits/unique_ptr.h:183:0\r\n#14 0x0000000000565f23 main /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/src/tools/opt/opt.cpp:379:0\r\n#15 0x00007f0174af1b15 __libc_start_main (/lib64/libc.so.6+0x21b15)\r\n#16 0x000000000058db65 _start (/home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/build_tag-e1.36.5_64/bin/opt+0x58db65)\r\nStack dump:\r\n0.\tProgram arguments: /home/apollobuild1-1/emsdk_portable/clang/tag-e1.36.5/build_tag-e1.36.5_64/bin/opt @/tmp/emscripten_temp/tmpWOFPz9.response -strip-debug -disable-verify -internalize -internalize-public-api-list=main,malloc,free,__errno_location,fflush,__cxa_can_catch,__cxa_is_pointer_type,malloc,free,malloc,free -globaldce -disable-loop-vectorization -disable-slp-vectorization -vectorize-loops=false -vectorize-slp=false -vectorize-slp-aggressive=false -o /tmp/tmpqUm0qq/UnitTests.bc \r\nTraceback (most recent call last):\r\n  File \"/home/apollobuild1-1/emsdk_portable/emscripten/tag-1.36.5/em++\", line 13, in <module>\r\n    emcc.run()\r\n  File \"/home/apollobuild1-1/emsdk_portable/emscripten/tag-1.36.5/emcc.py\", line 1447, in run\r\n    final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL)\r\n  File \"/home/apollobuild1-1/emsdk_portable/emscripten/tag-1.36.5/tools/shared.py\", line 1585, in llvm_opt\r\n    assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output\r\nAssertionError: Failed to run llvm optimizations: \r\nmake: *** [build/UnitTests.js] Error 1\r\n```\r\n\r\nI've tried setting the optimizations to -O0 with no luck. I'm a bit stumped at this point. Any suggestions?"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/223385662","html_url":"https://github.com/kripken/emscripten/issues/4377#issuecomment-223385662","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/4377","id":223385662,"user":{"login":"derekmooney","id":6709198,"avatar_url":"https://avatars.githubusercontent.com/u/6709198?v=3","gravatar_id":"","url":"https://api.github.com/users/derekmooney","html_url":"https://github.com/derekmooney","followers_url":"https://api.github.com/users/derekmooney/followers","following_url":"https://api.github.com/users/derekmooney/following{/other_user}","gists_url":"https://api.github.com/users/derekmooney/gists{/gist_id}","starred_url":"https://api.github.com/users/derekmooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekmooney/subscriptions","organizations_url":"https://api.github.com/users/derekmooney/orgs","repos_url":"https://api.github.com/users/derekmooney/repos","events_url":"https://api.github.com/users/derekmooney/events{/privacy}","received_events_url":"https://api.github.com/users/derekmooney/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T18:47:56Z","updated_at":"2016-06-02T18:47:56Z","body":"I tried with clang-incoming-64bit / emscripten-incoming-64bit with the same results."}}
{"actor":{"display_login":"derekmooney"}}