RejectedSoftware Forums

Sign up

Dub error writing file?

I've been trying to solve this error for days now. Everything used to work fine. Not sure what changed if anything.

name "0001printoglver"
description "A minimal D application."
authors "Kyle"
copyright "Copyright © 2017, Kyle"
license "proprietary"

dependency "derelict-util" version="~>2.0.6"
dependency "derelict-glfw3" version="~>3.1.0"
dependency "derelict-gl3" version="~>1.0.19"
dependency "derelict-fi" version="~>2.0.3"
dependency "derelict-ft" version="~>1.1.2"
dependency "derelict-al" version="~>1.0.1"
dependency "derelict-fmod" version="~>2.0.4"
dependency "derelict-assimp3" version="~>1.3.0"

Running dub aborts below

Checking for upgrades.
Using cached upgrade results...
Generating using build
Generate target 0001printoglver (executable C:\Users\kheaser\OneDrive for Business\GitHub\Delivery\apps\0001printoglver\bin 0001printoglver)
Generate target derelict-al (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-al-1.0.3\derelict-al\lib DerelictAL)
Generate target derelict-util (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\lib DerelictUtil)
Generate target derelict-assimp3 (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\lib DerelictASSIMP3)
Generate target derelict-fi (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-fi-2.0.3\derelict-fi\lib DerelictFI)
Generate target derelict-fmod (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-fmod-2.0.4\derelict-fmod\lib DerelictFmod)
Generate target derelict-ft (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-ft-1.1.3\derelict-ft\lib DerelictFT)
Generate target derelict-gl3 (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-gl3-1.0.23\derelict-gl3\lib DerelictGL3)
Generate target derelict-glfw3 (staticLibrary C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-glfw3-3.1.3\derelict-glfw3\lib DerelictGLFW3)
Performing "$DFLAGS" build using dmd for x86.
derelict-util 2.0.6: building configuration "library"...
dmd -I..\ -I..\common -I..\commongame -lib -of..\..\..\..\..\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\.dub\build\library-$DFLAGS-windows-x86-dmd2075-F2ACE8BD0AB75C8715C524859D90B1ED\DerelictUtil.lib -w -version=Havederelictutil -I..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source ..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\util\exception.d ..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\util\loader.d ..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\util\sharedlib.d ..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\util\system.d ..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\util\wintypes.d ..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\util\xtypes.d -vcolumns
Copying target from C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util.dub\build\library-$DFLAGS-windows-x86-dmd2075-F2ACE8BD0AB75C8715C524859D90B1ED\DerelictUtil.lib to C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\lib<br>derelict-al 1.0.3: building configuration "library"...<br>dmd -I..\ -I..\common -I..\commongame -lib -of..........\AppData\Roaming\dub\packages\derelict-al-1.0.3\derelict-al.dub\build\library-$DFLAGS-windows-x86-dmd2075-43C64C85B836BB5D7C8E90A467DB941D\DerelictAL.lib -w -version=Havederelictal -version=Havederelictutil -I..\..\..\..\..\AppData\Roaming\dub\packages\derelict-al-1.0.3\derelict-al\source -I..\..\..\..\..\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source ..\..\..\..\..\AppData\Roaming\dub\packages\derelict-al-1.0.3\derelict-al\source\derelict\openal\al.d -vcolumns<br>Copying target from C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-al-1.0.3\derelict-al\.dub\build\library-$DFLAGS-windows-x86-dmd2075-43C64C85B836BB5D7C8E90A467DB941D\DerelictAL.lib to C:\Users\kheaser\AppData\Roaming\dub\packages\derelict-al-1.0.3\derelict-al\lib
derelict-assimp3 1.3.0: building configuration "library"...
dmd -I..\ -I..\common -I..\commongame -lib -of..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\.dub\build\library-$DFLAGS-windows-x86-dmd2075-B1EDAE1146135A448DB08B66D307E405\DerelictASSIMP3.lib -w -version=Havederelictassimp3 -version=Havederelictutil -I..........\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\source -I..........\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source ..........\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\source\derelict\assimp3\assimp.d ..........\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\source\derelict\assimp3\types.d -vcolumns

Error: Error writing file '..........\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3.dub\build\library-$DFLAGS-windows-x86-dmd2075-B1EDAE1146135A448DB08B66D307E405\DerelictASSIMP3.lib'<br>FAIL ..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\.dub\build\library-$DFLAGS-windows-x86-dmd2075-B1EDAE1146135A448DB08B66D307E405\ DerelictASSIMP3 staticLibrary

dmd failed with exit code 1.
myapp exited with code 2

I did a dub describe and noticed this detail:

  "linkDependencies": [
            "derelict-al",
            "derelict-assimp3",
            "derelict-fi",
            "derelict-fmod",
            "derelict-ft",
            "derelict-gl3",
            "derelict-glfw3",
            "derelict-util",
            "derelict-util"

Could the double derelict-util be problematic?

Thanks.

Re: Dub error writing file?

On Sat, 30 Sep 2017 18:43:12 GMT, Kyle C Heaser wrote:

(...)

dmd -I..\ -I..\common -I..\common_game -lib -of..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\.dub\build\library-$DFLAGS-windows-x86-dmd_2075-B1EDAE1146135A448DB08B66D307E405\DerelictASSIMP3.lib -w -version=Have_derelict_assimp3 -version=Have_derelict_util -I..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\source -I..\..\..\..\..\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source ..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\source\derelict\assimp3\assimp.d ..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\source\derelict\assimp3\types.d -vcolumns

Error: Error writing file '..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\.dub\build\library-$DFLAGS-windows-x86-dmd_2075-B1EDAE1146135A448DB08B66D307E405\DerelictASSIMP3.lib'
FAIL ..\..\..\..\..\AppData\Roaming\dub\packages\derelict-assimp3-1.3.0\derelict-assimp3\.dub\build\library-$DFLAGS-windows-x86-dmd_2075-B1EDAE1146135A448DB08B66D307E405\ DerelictASSIMP3 staticLibrary

dmd failed with exit code 1.
myapp exited with code 2

Does that file already exist and if yes, is it possible to delete it (with user permissions)? If not file system permissions, this could be caused by a hanging linker or compiler process. Another possibility would be a path that is too long, but that shouldn't be the case here.

One thing that is interesting is the last line of the output ("myapp exited with code 2"). Do you know who outputs that message?