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

Optlink crash on Windows #4

Open
mbierlee opened this issue Feb 26, 2017 · 5 comments
Open

Optlink crash on Windows #4

mbierlee opened this issue Feb 26, 2017 · 5 comments

Comments

@mbierlee
Copy link

mbierlee commented Feb 26, 2017

When including SCOD into DUB's template project (dub init), I get a linking error when running dub run -b ddox:

---------------------------
Unexpected OPTLINK Termination at EIP=0040F60A
---------------------------
EAX=051E0000 EBX=00438C70 ECX=0000048D EDX=0000033D 
ESI=00006400 EDI=051E2DCC EBP=0019FF38 ESP=0019FEF0 
First=00402000
---------------------------

Linking...
Error: linker exited with status 17571584
dmd failed with exit code 1.

This happens with DMD32 v2.072.2 and v2.073.1. Haven't tried the versions inbetween but I suppose they also fail. This is on Windows. The build is fine when I remove SCOD. I can imagine the problem lies with the linker instead of the library.

@MartinNowak
Copy link
Owner

Why did you list it as dependency? Is there a use-case as library?
It's intended to be used as separate binary tool, see README.md.

@mbierlee
Copy link
Author

By including I meant adding it to the dub file as instructed: "-ddoxTool": "scod"

@MartinNowak
Copy link
Owner

Happens with the latest version of optlink 8.00.17.
sha1sum a7d9f1e810d1c548d57d2e0d62313c6b619e7556 optlink.exe

Unfortunately not enough time to build and debug optlink.
As a workaround it's possible to build a release version of scod (debug infos seem to crash the linker) or use dmd with mscoff32/64 and the MS VC Linker.

@MartinNowak
Copy link
Owner

MartinNowak commented Jun 15, 2017

Quite weird that ddox itself builds, there is very little source code in here :/.
Also updating to ddox 0.16.0 (see #5) might somehow make the problem go away 🙏.

@MartinNowak
Copy link
Owner

Unfortunately still crashes after the update to ddox 0.16.0 :/.

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

No branches or pull requests

2 participants