-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Delay hook absolute path cannot be created error MSB3191: Unable to create directory: The given path's format is not supported #732
Comments
Some investigation:
For For |
|
- gyp generates full paths where necessary - keep generated .vcxproj files in the build directory - don't set ObjectFile path to "$(IntDir)/%(RelativeDir)/", because win_delay_hook has an absolute path in %(RelativeDir)% which causes MSB3191 Unable to create directory: The given path's format is not supported (nodejs/node-gyp#732)
So it seems to me the only issue left to clarify is why |
Windows delay hook feature is only needed on the main module, linked into the shared library. Don't compile and include it second time in the bundled libsass. Related: nodejs/node-gyp#732
Windows delay hook feature is only needed on the main module, linked into the shared library. Don't compile and include it second time in the bundled libsass. Related: nodejs/node-gyp#732
I'm also getting ths. |
So the absolute |
This bug has negatively affected me twice and has cost me a serious amount of time: I use %(RelativeDir) to help differentiate my OBJ file builds in my C++ projects. You can imagine my surprise when I finally figured out Node.js was hooking into, using, and turning %(RelativeDir) into an absolute dir. I am new to the Node community, but if anyone has any ideas for how I can fix this, I would not mind hacking on node-gyp to help fix this. This is the second time it's come out of nowhere and really negatively affected me, wasting quite a few hours peeling through npm logs and trying all sorts of native installs before pinning this down. |
I think this might be something to take up at https://github.com/refack/GYP |
Full log: https://gist.github.com/saper/08ce8416f944a7fed3dc
addon.gypi used
generated libgit2.vcxproj
Source being built: https://github.com/saper/nodegit/tree/41c9e13f25441726a2493fd9279fc00db0087da9
Environment: @appveyor full log
node-gyp is installed globally before just
npm install
on the package (nodegit).Error message:
It looks like the '<(node_gyp_dir)/src/win_delay_load_hook.c' formula doesn't mix here well...
Btw. is it normal thatrelative paths fixed.vcxproj
files are created in the source tree and not in thebuild
directory?Related: #636 #637 #708
The text was updated successfully, but these errors were encountered: