_Unwind_RaiseException
Oleg B via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Fri Sep 1 03:03:54 PDT 2017
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?
More information about the digitalmars-d-ldc
mailing list