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: fixes build for some os versions #30141

Closed
wants to merge 1 commit into from

Conversation

devnexen
Copy link
Contributor

For format macros, the __STDC_FORMAT_MACROS flag needs to be
passed, also passing the librt linker flag.

Fixes #30077

@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to build files or the CI. label Oct 27, 2019
common.gypi Outdated Show resolved Hide resolved
Copy link
Member

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

The -lrt change can't land as-is, see my other comment.

common.gypi Outdated Show resolved Hide resolved
common.gypi Outdated Show resolved Hide resolved
common.gypi Outdated Show resolved Hide resolved
common.gypi Outdated Show resolved Hide resolved
Copy link
Member

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

LGTM with Richard's suggestion applied.

@@ -355,7 +355,8 @@
}],
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y'],
'defines': ['__STDC_FORMAT_MACROS' ],
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'defines': ['__STDC_FORMAT_MACROS' ],
'defines': [ '__STDC_FORMAT_MACROS' ],

@Delagen
Copy link

Delagen commented Nov 5, 2019

Any progress in merging? Any plan for release update?

@devnexen devnexen force-pushed the centos_build_issue_fix branch 2 times, most recently from f763019 to 14b017c Compare November 5, 2019 15:17
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@addaleax
Copy link
Member

Whoever lands this, please make sure to fix the whitespace change pointed out above (#30141 (comment))

For format macros, the __STDC_FORMAT_MACROS flag needs to be
passed, also passing the librt linker flag.
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 25, 2019
@nodejs-github-bot
Copy link
Collaborator

@devnexen
Copy link
Contributor Author

devnexen commented Dec 26, 2019

Landed in bdb1194

@devnexen devnexen closed this Dec 26, 2019
@targos
Copy link
Member

targos commented Jan 6, 2020

Actually landed in 18de9ba without metadata.

targos referenced this pull request Jan 6, 2020
For format macros, the __STDC_FORMAT_MACROS flag needs to be
passed, also passing the librt linker flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. build Issues and PRs related to build files or the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NodeJS 12.13.0 CentOS fail compile
9 participants