Skip to content

Conversation

@mmarchini
Copy link
Contributor

BSD build with GCC was breaking because it was checking for the llvm_version
variable on common.gypi, even though LLVM wasn't installed (or needed). When
LLVM wasn't installed, llvm_version wasn't being defined, causing the build to break.

Fixes: #16257

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

build

@nodejs-github-botnodejs-github-bot added the build Issues and PRs related to build files or the CI. label Nov 4, 2017
@gibfahn
Copy link
Member

Approach looks correct to me, but we don't use 'null' elsewhere, we seem to use '' for empty/blank values, so that might be a better idea.

cc/ @nodejs/gyp

@mmarchini
Copy link
ContributorAuthor

Changed it to ''

Copy link
Member

@bnoordhuisbnoordhuis left a comment

Choose a reason for hiding this comment

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

@mmarchini
Copy link
ContributorAuthor

ARM build failed but it doesn't seem to be related to these changes (see nodejs/build#173)

Copy link
Contributor

@maclover7maclover7 left a comment

Choose a reason for hiding this comment

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

@refackrefack added the freebsd Issues and PRs related to the FreeBSD platform. label Nov 25, 2017
@refack
Copy link
Contributor

@mmarchini could you remove this line as well.

'llvm_version%': 0,

And maybe check if

o['variables']['llvm_version'] =get_llvm_version(CC) ifis_clangelse0
['"0"<llvm_version<"4.0"]

works?

BSD build with GCC was broken because it was checking for the llvm_version variable on common.gypi, even though llvm wasn't installed (or needed). If LLVM wasn't installed, llvm_version wasn't being defined, breaking the build. Fixes: nodejs#16257
@mmarchini
Copy link
ContributorAuthor

Yes, it works. Thanks. I've also rebased the branch.

Copy link
Contributor

@refackrefack left a comment

Choose a reason for hiding this comment

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

💯

@refack
Copy link
Contributor

@refackrefack added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 27, 2017
@refack
Copy link
Contributor

Landed in 4a7487b.

@refackrefack closed this Nov 27, 2017
refack pushed a commit that referenced this pull request Nov 27, 2017
BSD build with GCC was broken because it was checking for the llvm_version variable on common.gypi, even though llvm wasn't installed (or needed). PR-URL: #16737Fixes: #16257 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@refackrefack removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 28, 2017
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
BSD build with GCC was broken because it was checking for the llvm_version variable on common.gypi, even though llvm wasn't installed (or needed). PR-URL: #16737Fixes: #16257 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
BSD build with GCC was broken because it was checking for the llvm_version variable on common.gypi, even though llvm wasn't installed (or needed). PR-URL: #16737Fixes: #16257 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
BSD build with GCC was broken because it was checking for the llvm_version variable on common.gypi, even though llvm wasn't installed (or needed). PR-URL: #16737Fixes: #16257 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Dec 12, 2017
gibfahn pushed a commit that referenced this pull request Dec 19, 2017
BSD build with GCC was broken because it was checking for the llvm_version variable on common.gypi, even though llvm wasn't installed (or needed). PR-URL: #16737Fixes: #16257 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@gibfahn
Copy link
Member

Fix for #14077, should land on 6.x if that lands

This was referenced Dec 19, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
BSD build with GCC was broken because it was checking for the llvm_version variable on common.gypi, even though llvm wasn't installed (or needed). PR-URL: #16737Fixes: #16257 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@gibfahngibfahn mentioned this pull request Dec 20, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.freebsdIssues and PRs related to the FreeBSD platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

node 8.6 assumes llvm on FreeBSD

7 participants

@mmarchini@gibfahn@refack@bnoordhuis@jasnell@maclover7@nodejs-github-bot