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

build: fix building with Node.js 6 on macOS #265

Closed
wants to merge 2 commits into from
Closed

Conversation

aqrln
Copy link
Member

@aqrln aqrln commented Jul 22, 2017

Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0. The
problem with this version is that it doesn't emit -stdlib=libc++ as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers. Because of that, compilation fails
with:

../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS. It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.
Copy link
Member

@nechaido nechaido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

aqrln added a commit that referenced this pull request Jul 24, 2017
Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

PR-URL: #265
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
@aqrln
Copy link
Member Author

aqrln commented Jul 24, 2017

Landed in 5ed6bf0.

@aqrln aqrln closed this Jul 24, 2017
@aqrln aqrln deleted the fix/macos-node6 branch July 24, 2017 15:40
nechaido pushed a commit that referenced this pull request Jul 25, 2017
Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

PR-URL: #265
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
belochub pushed a commit that referenced this pull request Jan 22, 2018
Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

PR-URL: #265
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
belochub pushed a commit that referenced this pull request Jan 22, 2018
Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

PR-URL: #265
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
@belochub belochub mentioned this pull request Jan 22, 2018
belochub pushed a commit to metarhia/mdsf that referenced this pull request Jul 19, 2018
Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

PR-URL: metarhia/jstp#265
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
belochub pushed a commit to metarhia/mdsf that referenced this pull request Jul 19, 2018
Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

PR-URL: metarhia/jstp#265
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
belochub pushed a commit to metarhia/mdsf that referenced this pull request Jul 21, 2018
Node.js 6.11.1 bundles npm 3.10.10, which bundles node-gyp 3.4.0.  The
problem with this version is that it doesn't emit `-stdlib=libc++` as
one of clang flags by default, which causes it to use old GCC 4.2
headers instead of clang headers.  Because of that, compilation fails
with:

    ../src/parser.cc:10:10: fatal error: 'cstdint' file not found

This patch adds the flag to OTHER_CPLUSPLUSFLAGS.  It causes no harm
when using newer node-gyp because duplicate flags are ignored, but
enables building JSTP with vanilla Node.js 6.x on macOS.

PR-URL: metarhia/jstp#265
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants