Infuriating DUB/DMD build bug.

WhatMeWorry kheaser at gmail.com
Thu Oct 5 21:48:20 UTC 2017


I've got a github project and using DUB with DMD and I keep 
running into this problem. I've tried deleting the entire 
...\AppData\Roaming\dub\packages folder, but the
problem repeats the very next build attempt.

Fetching derelict-util 2.0.6 (getting selected version)...
Fetching derelict-ft 1.1.3 (getting selected version)...
Fetching derelict-gl3 1.0.23 (getting selected version)...
Fetching derelict-assimp3 1.3.0 (getting selected version)...
Fetching gl3n 1.3.1 (getting selected version)...
Fetching derelict-al 1.0.3 (getting selected version)...
Fetching derelict-fmod 2.0.4 (getting selected version)...
Fetching derelict-fi 2.0.3 (getting selected version)...
Fetching derelict-glfw3 3.1.3 (getting selected version)...
Performing "$DFLAGS" build using dmd for x86_64.
derelict-util 2.0.6: building configuration "library"...
derelict-al 1.0.3: building configuration "library"...
derelict-assimp3 1.3.0: building configuration "library"...
derelict-fi 2.0.3: building configuration "library"...
derelict-fmod 2.0.4: building configuration "library"...
derelict-ft 1.1.3: building configuration "library"...
derelict-gl3 1.0.23: building configuration "library"...
derelict-glfw3 3.1.3: building configuration 
"derelict-glfw3-dynamic"...
Error: Error writing file 
'..\..\..\..\AppData\Roaming\dub\packages\derelict-glfw3-3.1.3\derelict-glfw3\.dub\build\derelict-glfw3-dynamic-$DFLAGS-windows-x86_64-dmd_2076-A09416BA47731198A57C73719DAAFE33\DerelictGLFW3.lib'
dmd failed with exit code 1.

I've cloned DMD and when I searched for "Error writing file" all 
it pulls up is:

/**
  * Writes a file, terminate the program on error
  *
  * Params:
  *   loc = The line number information from where the call 
originates
  *   f = a `ddmd.root.file.File` handle to write
  */
extern (C++) void writeFile(Loc loc, File* f)
{
     if (f.write())
     {
         error(loc, "Error writing file '%s'", f.name.toChars());
         fatal();
     }
}

But shouldn't there be a line number before "Error writing file"?

With writing files, that's usually a permissions thing?  But all 
the other 8 packages build fine?

Note: I had a similar problem with derelict-assimp3 package, so I 
went to an entirely different system and cloned my project.  But 
now it fails with the same error, but with
a different package.








More information about the Digitalmars-d-learn mailing list