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

ddox does not work if compiled with PIE #134

Closed
lodo1995 opened this issue Oct 19, 2016 · 2 comments · Fixed by #136
Closed

ddox does not work if compiled with PIE #134

lodo1995 opened this issue Oct 19, 2016 · 2 comments · Fixed by #136

Comments

@lodo1995
Copy link

On Ubuntu 16.10, with dmd configured to produced PIE executables (-fPIC -defaultlib=libphobos2.so), ddox compiles but does not run, with the following error:

Fatal Error while loading '/usr/lib/x86_64-linux-gnu/libphobos2.so.0.71':
        The module 'std.experimental.allocator.common' is already defined in '~/.dub/packages/ddox-0.15.15/ddox/ddox'.
Program exited with code 1

Looks like the experimental_allocator package is conflicting with the Phobos' std.experimental.allocator package.

@MartinNowak
Copy link
Member

The experiment to copy modules w/ the same module really didn't went that well...

@MartinNowak
Copy link
Member

BTW, does -fPIC -defaultlib=libphobos2.so work for you?
Might want to update the bug report, Issue 5278 – gentoo's 'hardended' gcc doesn't work with dmd.

MartinNowak pushed a commit to MartinNowak/ddox that referenced this issue Oct 24, 2016
- conflicting std.x.allocator dependency in libdparse got dropped
- also fixes dlang#134
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

Successfully merging a pull request may close this issue.

2 participants