-
Notifications
You must be signed in to change notification settings - Fork 9
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
optlink fails with 'Error 138: Module or Dictionary corrupt' #92
Comments
Well, that looks like an OPTLINK bug, right? So it should be reported to issues.dlang.org, not here. If you're just looking for a workaround:
|
Which dmd revision is used to build |
The one from the point in time corresponding to the version of
That looks interesting. Digger generates |
See dlang/dmd#13110 |
Thanks! Yeah, that's a bit of an oof. A single pull request which
That's going to be annoying to deal with. |
Adding
Probably. But digger should rather reuse / patch the existing configuration files from dmd (either located in |
So, there is a bit of a dilemma. Digger's equivalent of
Conceptually, you almost never want 3 when bisecting. If your test command relies on anything at all adjacent or sensitive to the object file format and all consequences stemming from that decision (like which libc to use), then you're likely to get a false result pointing at that pull request which changed the default. One exception to this is when bisecting over a version range so wide that it spans the point when 32-bit COFF was introduced (or at least became usable given the context) and the point where OMF was (will be) removed. Then, neither 1 nor 2 will work. Another exception is of course when the regression was indeed caused by the change of the default, but you don't really need Digger to diagnose this. Supporting all three in Digger (as 32 / 32coff / 32omf) might be impractical, there is already a good amount of complexity for supporting multi-model builds (i.e. 32 + 64).
I think I looked into this when I wrote it but found that it was too impractical considering the version range that Digger aims to support. Old |
I built digger from git f2aeac4.
Windows 8
Digger v3.0.6 - a D source code building and archaeology tool
The last page or so of digger output of
../Digger/digger.exe rebuild
is shown below. I found the same optlink error still happens using./work/build/bin/dmd.exe
when trying to link a simple test program.The text was updated successfully, but these errors were encountered: