-
Notifications
You must be signed in to change notification settings - Fork 24
bufferutil fails to build on z/OS (no such file or directory, uv_cwd) #165
Comments
Can you check if
If so, there is a fix for this in v12.16.1 and above. |
Hi @IgorTodorovskiIBM, thanks for getting back. Unfortunately not: $> ls -l / | grep ZOS203
drwxr-xr-x 16 BPXROOT OMVS 8192 Mar 10 2020 ZOS203 I then ran explicitly with the latest Node version we have, too (didn't realise that our 'latest' symlink is not up-to-date!):
|
Hmm, I see If you set:
and then run |
You're right, seeing v12.18.0 and v12.13.0 is unexpected... Unfortunately I think it's the same when consistently using v12.18.0 throughout.
|
Ok, it seems /usr is a symbolic link to /ZOS203. Just to rule it out, does uv_cwd calls the c function getcwd() to get the current working dir. What is your current working dir? Is there anything unusual about it? Is there a symlink to an environment variable? Is it a mounted location? If you do |
Here we go with that export:
You're right about that symlink from
Regarding the CWD: I've not redacted the output this time so you can see where the project is, and I'm running the command from the root of the project, i.e /u/bencox/bufferutil-test. There are no symlinks in that path. In terms of whether it's a mounted location... I'm not sure I rightly know the answer to that, but I can tell you that /u/bencox is its own zFS aggregate, if that helps. No issues reported by |
Ok, My guess is that if you run: Are you able to run Can you also confirm if you have $HOME set? |
I struggled to do as instructed (run
And what's in
So none of those symlinks have their target available. Anyway, that aside, I then went on and ran a manual
I then moved into
So it looks like the installation is getting much further, and the issue is specific to my home directory. I would like to get homedir-install-bufferutil-silly.log I didn't spot anything telltale in the diff - hoping you'll be able to see something. |
FWIW I'm able to remote debug using VSCode, right to the line in node-gyp where it goes wrong - except of course it dives into the natives and then libuv. Let me know if there's something I can look out for or trigger while debugging that will help to work out what the issue is. |
Regarding cnjdrvr is an external link to CNJDRVR which is a member in the C/C++ compiler PDS. You can find your compiler PDS if you Just curious, what is your Do you have a $HOME environment variable? If you do a Then you can try |
That library doesn't exist, but I think I tried adding
Unfortunately not, it definitely seems to be something to do with being a spawned process. Following on from that, I took the following debug trace using
So there are 4 processes at work during this - Note that in terms of what I'm going to see whether I can get a minimal |
The module
bufferutil
is fairly heavily used by Websockets clients in Node.js.It fails to build on z/OS, during node-gyp.
The text was updated successfully, but these errors were encountered: