Bug 8904 – ld error: `undefined reference to X`

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-28T02:20:45Z
Last change time
2020-07-01T16:00:45Z
Keywords
pull, rejects-valid
Assigned to
No Owner
Creator
Denis Shelomovskii

Comments

Comment #0 by verylonglogin.reg — 2012-10-28T02:20:45Z
In https://github.com/D-Programming-Language/phobos/pull/896 it was a linker error on Posix after this commit: https://github.com/D-Programming-Language/phobos/commit/b3d3c44cc1e879b6ca6850abf94df5ffb6fc37b0 Error: --- Testing generated/linux/debug/32/unittest/std/typetuple generated/linux/debug/32/unittest/std/typecons.o: In function `_D3std8typecons51__T6scopedTC3std8typecons18__unittestL3287_53FZv1AZ6scopedFZS3std8typecons51__T6scopedTC3std8typecons18__unittestL3287_53FZv1AZ6scoped51__T6ScopedTC3std8typecons18__unittestL3287_53FZv1AZ6Scoped51__T6ScopedTC3std8typecons18__unittestL3287_53FZv1AZ6Scoped14Scoped_payloadMNgFNdZNgC3std8typecons18__unittestL3287_53FZv1A': /home/braddr/sandbox/d/d-tester/client/pull-346162/phobos/std/typecons.d:3090: undefined reference to `_D3std8typecons51__T6scopedTC3std8typecons18__unittestL3287_53FZv1AZ6scopedFZS3std8typecons51__T6scopedTC3std8typecons18__unittestL3287_53FZv1AZ6scoped51__T6ScopedTC3std8typecons18__unittestL3287_53FZv1AZ6Scoped7alignedFkZk' collect2: ld returned 1 exit status --- A workaround commit for this issue: https://github.com/D-Programming-Language/phobos/commit/d038acb44356e364a4ba041da167b0f5b8d0f4dc
Comment #1 by issues.dlang — 2012-10-28T02:32:32Z
This bug is a lot more likely to be fixed if you can produce a test case which does not rely on a particular pull request which probably won't even be around anymore by the time anyone tries to fix this bug.
Comment #2 by yebblies — 2013-11-23T21:09:10Z
Can you reproduce with the current compiler? If not, this should be closed.
Comment #3 by dlang-bot — 2020-07-01T12:04:33Z
@NilsLankila created dlang/phobos pull request #7549 "fix issue 8904 - disable workaround prevent linking issue" fixing this issue: - fix issue 8904 - disable workaround prevent linking issue https://github.com/dlang/phobos/pull/7549
Comment #4 by b2.temp — 2020-07-01T16:00:45Z
no linker error on braddr tester when trying to revert