Issue with use_dll: "failed to write the updated manifest.."

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Issue with use_dll: "failed to write the updated manifest.."

Postby twin » Fri Aug 26, 2016 2:52 pm

Hello all,

I am trying to solve a relatively big model and am using the model(use_dll) option to compile the model equations and derivatives, instead of writing those as .m files. However, I am receiving an error in the process of building the .mex files; in particular:

Code: Select all
Starting Dynare (version 4.4.3).
Starting preprocessing of the model file ...
Found 10 equation(s).
Evaluating expressions...done
Computing static model derivatives:
 - order 1
Computing dynamic model derivatives:
 - order 1
 - order 2
 - order 3
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

Building with 'Microsoft Windows SDK 7.1 (C)'.
MEX completed successfully.
Building with 'Microsoft Windows SDK 7.1 (C)'.
Error using mex
Microsoft (R) Manifest Tool version 6.1.7716.0

Copyright (c) Microsoft Corporation 2009.

All rights reserved.

mt : general error c101008d: Failed to write the updated
manifest to the resource of file "growthModel_static.mexw64".
The operation failed.

Error in growthModel (line 85)
    eval('mex -O LINKFLAGS="$LINKFLAGS /export:Static"
    growthModel_static.c growthModel_static_mex.c')

Error in dynare (line 180)
evalin('base',fname) ;


Here, growthModel.mod is the standard neoclassical growth model and is attached to this post. (I know that use_dll is not necessary for this model, but it is a small working example that creates my issue). I get this problem using both cygwin and msvc compilers. To further complicate the problem, I don't receive this error every time I run dynare, but I can't seem to predict when it will happen! For example, I had thought that possibly the error only comes up after a previous run due to the new mex files interacting with the old ones, but that's not the case. And sometimes dynare will be able to compile the files, but the next time I run the file it will not.

Does anyone have any advice for me? I am a total novice when it comes to compiling code. I briefly googled the problem and found suggestions to disable the anti-virus, but that did not work for me.

Thanks!
Attachments
growthModel.mod
(2.48 KiB) Downloaded 39 times
twin
 
Posts: 9
Joined: Wed Nov 25, 2015 7:10 pm

Re: Issue with use_dll: "failed to write the updated manifes

Postby jpfeifer » Fri Aug 26, 2016 4:38 pm

Are you running Dynare in a loop? And what is your system setup (OS, Compiler, Matlab)?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests