digitalmars.D.ldc - _Unwind_RaiseException
- Oleg B (27/27) Sep 01 2017 Hello. I work on project, that works on ARMv7 (Raspberry PI 2).
Hello. I work on project, that works on ARMv7 (Raspberry PI 2). Some times I get error in random places (build to build in different place, no rebuild - stable error place): Fatal error in EH code: _Unwind_RaiseException failed with reason code: 9 Aborted I found few issues on github https://github.com/ldc-developers/ldc/issues/2208 https://github.com/ldc-developers/ldc/issues/2058 https://github.com/ldc-developers/ldc/issues/2024 But I don't understand how workaround this. My ldc2.conf have no special flags, I don't use optimization. default: { switches = [ "-I/usr/include/d/ldc", "-I/usr/include/d", "-mtriple=arm-linux-gnueabihf", "-gcc=arm-linux-gnueabihf-gcc", "-L-L/home/deviator/workspace/arm-linux-gnueabihf", "-defaultlib=phobos2-ldc,druntime-ldc", "-debuglib=phobos2-ldc-debug,druntime-ldc-debug" ]; }; Trying add "-mattr=+strict-align" has no effect. I see only one way for fix it: don't use exceptions. But it require a lot of work on rewriting existing code. May be this problem has more elegant solution?
Sep 01 2017