-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Can't link dub with i686 LDC 0.15.1 #813
Comments
The issue probably is in the If this is indeed the issue (didn't check), I'm not sure why the unit tests for the module pass on Travis, though. Apparently, we aren't running any 32 bit shared library tests (shudder), but one would expect the same issue to occur on static builds too. |
If this is the case, is there anything I can do to workaround this issue as a packager? |
I don't think so, it is something for us to fix in the next point release. If my suspicion regarding the root cause is correct, it might be as simple as only using the LLVM intrinsic on platforms where we know it works without library calls (not X86). |
So, actually, there is something you can do: Verify where the reference is and submit a patch. ;) |
Affirmative, will get to it soon-ish. |
Erm, but how can I find what generates reference to this specific symbol? Grepping for it in neither LDC sources nor LLVM headers finds anything.
|
reddit comment http://www.reddit.com/r/programming/comments/2pvf68/armv7_vs_x8664_pathfinding_benchmark_of_c_d_go/cn0hq95 , says they ship/link compiler-rt to address same issue in Rust |
Yes, this might also be an option. For the moment, the simple fix would be to just use the slow upstream implementations as core.checkedint isn't really used right now (as far as I know). We should definitely consider at least incorporating the relevant parts of compiler-rt in the future, though. |
Using this diff as a workaround seems to help : https://github.com/Dicebot/Arch-PKGBUILDs/blob/master/ldc/mul.diff |
Would you prefer to keep this issue open as a reminder for pending better solution or should I close it? |
Let's keep it open until we actually fix the issue in our tree. I'm working against a deadline right now, though, so I can't really spend any time on the necessary testing, however trivial it might be. |
Have tried to package dub (release 0.9.22) built with LDC in shared library mode:
Works with no issues on x64_86 systems, but on i686 there is a linker failure:
Any ideas?
The text was updated successfully, but these errors were encountered: