linkedin/parseq

Build fails with npmInstall contextify@0.1.15

mockitoguy opened this issue · 1 comments

I'm getting below failure on my Mac on clean checkout:

> Task :parseq-tracevis:npmInstall

> contextify@0.1.15 install /Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/node_modules/contextify
> node-gyp rebuild

  CXX(target) Release/obj.target/contextify/src/contextify.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from ../src/contextify.cc:1:
In file included from /Users/sfaber/.node-gyp/6.11.2/include/node/node.h:42:
/Users/sfaber/.node-gyp/6.11.2/include/node/v8.h:21:10: fatal error: 'utility' file not found
#include <utility>
         ^~~~~~~~~
1 warning and 1 error generated.
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/build/npm/npm-v3.10.10/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:215:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/build/nodejs/node-v6.11.2-darwin-x64/bin/node" "/Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/build/npm/npm-v3.10.10/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/node_modules/contextify
gyp ERR! node -v v6.11.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN parseq-tracevis@ No repository field.
npm WARN parseq-tracevis@ No license field.
npm ERR! Darwin 18.7.0
npm ERR! argv "/Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/build/nodejs/node-v6.11.2-darwin-x64/bin/node" "/Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/build/npm/npm-v3.10.10/bin/npm" "install"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.15 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.15 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 contextify 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 contextify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/sfaber/linkedin/oncall/foo/parseq_trunk/parseq/subprojects/parseq-tracevis/npm-debug.log

> Task :parseq-tracevis:npmInstall FAILED

I resolved the issue by bumping "d3": "3.3.5" -> "d3": "3.5.17". The new package no longer brings contextify dependency.

I ran into the same issue when I set up my new laptop. @mockitoguy 's upgrade of "d3" solved my problem as well. Even without your previous workaround documented in README.MD

export LDFLAGS="-mmacosx-version-min=10.13"
export CXXFLAGS="-mmacosx-version-min=10.13"

Here is my laptop version:

ProductName: Mac OS X
ProductVersion: 10.15.5
BuildVersion: 19F101

@aman1309 It seems that your previous fix does not work for all the Mac?