www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Cannot link using DMD nightly

reply Matt Elkins <notreal fake.com> writes:
I'm attempting to use the DMD nightly build (because this fix 
matters a lot to my project: 
https://issues.dlang.org/show_bug.cgi?id=15661), but the build 
fails at the link step. Here is my full output:

[output]
"C:\Program Files (x86)\dub\dub.exe" run --force --build debug 
--build-mode separate
Performing "debug" build using dmd for x86.
cake ~master: building configuration "library"...
derelict-util 2.0.4: building configuration "library"...
derelict-ft 1.0.2: building configuration "library"...
derelict-gl3 1.0.18: building configuration "library"...
derelict-glfw3 1.1.1: building configuration "library"...
gl3n 1.3.1: building configuration "library"...
cakegl ~master: building configuration "library"...
common ~master: building configuration "library"...
client ~master: building configuration "application"...
Linking...
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
..\cakegl\out\cakegl.lib(utf)
  Error 163: Cannot CVPACK Type 0002
--- errorlevel 1
dmd failed with exit code 1.
[/output]

"cakegl" is one of my libraries used by the application.

I have manually removed every trace of any object file or library 
I could find which was compiled with my previous install of DMD 
(including the third-party ones pulled by dub, such as derelict), 
and am also building with the --force flag; I should note that I 
am using dub for my builds rather than dmd directly.

If I swap back in the released version of DMD it all builds fine. 
This is on 64-bit Windows 7, using the 32-bit DMD nightly build 
downloaded today, Feb 28th.

Any suggestions?
Feb 28 2016
parent reply Rene Zwanenburg <renezwanenburg gmail.com> writes:
On Sunday, 28 February 2016 at 19:02:21 UTC, Matt Elkins wrote:
 Any suggestions?
I don't know how to fix that error, but 2.070.1 has been released and contains a fix for your issue: http://dlang.org/changelog/2.070.1.html
Feb 28 2016
parent Matt Elkins <notreal fake.com> writes:
On Sunday, 28 February 2016 at 22:16:39 UTC, Rene Zwanenburg 
wrote:
 On Sunday, 28 February 2016 at 19:02:21 UTC, Matt Elkins wrote:
 Any suggestions?
I don't know how to fix that error, but 2.070.1 has been released and contains a fix for your issue: http://dlang.org/changelog/2.070.1.html
...I don't know how I missed this. Thanks! It works like a champ, including the fix!
Feb 28 2016