This topic contains 8 replies, has 2 voices, and was last updated by rich 6 years ago.
-
AuthorPosts
-
January 20, 2016 at 2:27 pm #27958
uroniHi,
with ellcc 0.1.27. Test program:
#include <stdexcept> #include <iostream> int main() { try { throw std::runtime_error("test"); } catch(std::exception& e) { std::cout << "Caught exception: " << e.what() << std::endl; return 0; } return 1; }
Exception is not caught. Could not see anything obivous missing.
ecc++ -v -Wl,–verbose shows that it sets -fexceptions, -fcxx-exceptions and it is linked with libunwind.Thanks!
January 20, 2016 at 2:43 pm #27983Hi uroni,
What processor are you building for?
-RichJanuary 20, 2016 at 5:52 pm #28247
uroniSorry,
didn’t work with the targets armv6-linux-engeabihf, x86_64-linux-eng and i386-linux-eng.
LLVM doesn’t seem to use exceptions and nghttp2 only sparingly, so you might not have noticed.
March 15, 2016 at 3:18 am #76516
Alexej HarmHello,
is this problem being worked on? C++ without exceptions is quite useless in a lot of scenarios.
Is there a bugzilla or some other bug/issue management for ELLCC?
If the problem won’t be addressed during the next 1-2 months, I could take a look at it and possibly help.
Best regards,
Alexej HarmApril 29, 2016 at 6:05 pm #76775
Alexej HarmThis problem still persists in ELLCC 0.1.30.
October 18, 2016 at 6:11 am #77591
Alexej HarmThis problem still persists in ELLCC 0.1.33.
October 23, 2016 at 2:23 pm #77601
uroni@Alexej This is the bug Richard added with regard to this issue: http://ellcc.org/bugzilla/show_bug.cgi?id=78
It’s probably not easy to fix because libunwind in llvm only works properly with Apple DWARF binaries, but documentation is a bit sparse.
August 25, 2017 at 4:04 am #79871
Peter StrempelHello,
I tested the exception excample from first post with the latest ellcc (2017/08/23), hoping exceptions are working. Unfortunately I cannot get exceptions to be caught, program traps instead:
1) ellcc 2017/08/23: Trapping
$ ecc++ testex.cpp
$ ./a.out
terminating with uncaught exception of type std::runtime_error: test
Abgebrochen (Speicherabzug geschrieben)2) clang: Catching
$ clang++ testex.cpp
$ ./a.out
Caught exception: testLooking at the previously mentioned bugtracker entry, it says the issue is resolved with new build system. To be honest, I have no idea what that means. Is the issue now resolved or not? Do I need to build ellcc myself and enable exception handling? I am using the binary distribution (ellcc install && ellcc install libraries).
Overall ellcc looks excellent and would be useful for us, unfortuantely we require exception handling, so non working exceptions are currently holding us back from making use of ellcc in our project.
-Peter
August 25, 2017 at 11:34 am #79872I reopened the bug. I was trying to clean up bugs that have been made obsolete by recent changes. I guess I was over zealous.
-Rich
-
AuthorPosts
You must be logged in to reply to this topic.