Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Node.js 16 requires gcc/g++ 8.3 or later.
V8 9.2 included in Node.js 16.6.0 fails to compile with gcc/g++ 8.2.1:
https://unofficial-builds.nodejs.org/logs/202107292303-v16.6.0/x64-usdt.log
The baseline compiler requirement for Node.js 16 is gcc/g++ 8.3: https://github.com/nodejs/node/blob/v16.0.0/BUILDING.md#supported-toolchains
This PR updates the compiler used for Node.js 16 and later by enabling
devtoolset-9
.The Cloud Linux repo's
devtoolset-8
package is gcc/g++ 8.2.1:https://repo.cloudlinux.com/cloudlinux/7/sclo/devtoolset-8/x86_64/
FWIW Software Collections does have a
devtoolset-8
that provides gcc/g++ 8.3.1 but only for x64:http://mirror.centos.org/centos/7/sclo/x86_64/rh/Packages/d/
Pointer compression builds were separately broken in 16.4.0 nodejs/TSC#790 (comment) and may need nodejs/node#39664 (not yet in a release).