Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing etc.linux.memoryerror.registerMemoryErrorHandler #1915

Open
Kozzi11 opened this issue Dec 8, 2016 · 3 comments
Open

Missing etc.linux.memoryerror.registerMemoryErrorHandler #1915

Kozzi11 opened this issue Dec 8, 2016 · 3 comments

Comments

@Kozzi11
Copy link

Kozzi11 commented Dec 8, 2016

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

@kinke
Copy link
Member

kinke commented Dec 8, 2016

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 added a commit to kinke/ldc that referenced this issue Dec 8, 2016
Fixes issue ldc-developers#1915. Using exclusively blacklists and no more whitelists
(especially for subdirectories) should be way more robust wrt. future
restructurings.
I also got rid of obsolete existing blacklist entries and removed a
hopefully obsolete workaround wrt. disabling invariants for some parts
of druntime.
@kinke
Copy link
Member

kinke commented Jan 16, 2017

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.

@0xEAB
Copy link

0xEAB commented Dec 11, 2021

just run into this, doesn’t seem deprecated yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants