Skip to content
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

Install fails on macOS 10.14 and node 6 #28

Open
jlubeck opened this issue Nov 28, 2018 · 4 comments
Open

Install fails on macOS 10.14 and node 6 #28

jlubeck opened this issue Nov 28, 2018 · 4 comments

Comments

@jlubeck
Copy link

jlubeck commented Nov 28, 2018

I already checked the other issues about failed installs, but couldn't find this exact issue, which is:
../src/XpcConnection.cpp:1:10: fatal error: 'queue' file not found

Here is the full output

> xpc-connection@0.1.4 install /usr/local/lib/node_modules/xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the
      libc++ standard library instead [-Wstdlibcxx-not-found]
../src/XpcConnection.cpp:1:10: fatal error: 'queue' file not found
#include <queue>
         ^~~~~~~
1 warning and 1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 18.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/xpc-connection
gyp ERR! node -v v6.11.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm ERR! Darwin 18.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "xpc-connection"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! xpc-connection@0.1.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the xpc-connection@0.1.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the xpc-connection package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs xpc-connection
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls xpc-connection
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Volumes/MacintoshHD2/Users/Jan/VirtualBoxVMs/Ubuntu 18.04/shared/tempguard.1.0/usr/lib/npm-debug.log
@jlubeck
Copy link
Author

jlubeck commented Nov 28, 2018

Well... as always, I create the issue after investigating for a while and then immediately find the fix.

run CXXFLAGS="-mmacosx-version-min=10.9" LDFLAGS="-mmacosx-version-min=10.9" npm install

Found the answer here: https://stackoverflow.com/a/52633713/517688

Not sure if code still needs to be fixed in order to prevent this, so I'll leave the closing to an admin.

@jongear
Copy link

jongear commented Jan 16, 2019

Since this repo appears to be abandoned, I took the liberty of cloning over the existing repo and implementing this PR (#26) which resolved gyp build failures on mojave.

The package is available on npm to use

npm install xpc-connect
https://www.npmjs.com/package/xpc-connect

@a-x-
Copy link

a-x- commented Apr 27, 2019

@jongear, xpc-connect didn't help too.

I had the another fail: #30

@fire17
Copy link

fire17 commented Mar 25, 2020

Came here trying to install bleno and xpc-connection or xpc-connect
Even though I couldn't get the echo example to work (bleno), @jlubeck answer helped me to install everything with npm on my mac (just updated the version to Catalina)
THANKS!!!

CXXFLAGS="-mmacosx-version-min=10.15" LDFLAGS="-mmacosx-version-min=10.15" npm install bleno

CXXFLAGS="-mmacosx-version-min=10.15" LDFLAGS="-mmacosx-version-min=10.15" npm install xpc-connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants