ldc icon indicating copy to clipboard operation
ldc copied to clipboard

Missing etc.linux.memoryerror.registerMemoryErrorHandler

Open Kozzi11 opened this issue 9 years ago • 4 comments

When trying to compile workspace-d with ldc I get this error:

undefined reference to _D3etc5linux11memoryerror26registerMemoryErrorHandlerFZb

LDC libs: nm -D /usr/lib/libldruntime.so | grep registerMemory nm -D /usr/lib/liblphobos2.so | grep registerMemory

DMD libs: nm -D /usr/lib/libphobos2.so | grep registerMemory 00000000004bd8b8 T _D3etc5linux11memoryerror26registerMemoryErrorHandlerFZb 00000000004bd910 T _D3etc5linux11memoryerror28deregisterMemoryErrorHandlerFZb

Kozzi11 avatar Dec 08 '16 15:12 Kozzi11

Thanks, confirmed, it's a more general issue with our CMake script having an outdated whitelist of directories from which the runtime modules are pulled in. I'll work on a more robust black-list approach instead.

kinke avatar Dec 08 '16 18:12 kinke

That particular etc.linux.memoryerror module causes additional, non-trivial trouble, see #1917. I'm pretty sure I recently read something about it being scheduled for deprecation (from Walter), so I won't put any more effort into it.

kinke avatar Jan 16 '17 19:01 kinke

just run into this, doesn’t seem deprecated yet

0xEAB avatar Dec 11 '21 01:12 0xEAB