The issue involves a failing test with GCC 16, but it's unclear whether it's a Node.js or GCC issue.
Node.js v24.13.0 fails to build with GCC 16 due to a failing test 'test_snapshot_reproducible'. The issue might be related to a miscompilation in GCC 16, but it requires investigation to determine whether it's a Node.js or GCC problem. Debugging this issue requires deep knowledge of both Node.js internals and GCC behavior.
Nodejs v24.13.0 doesn't build with GCC 16. The reason for the failure is a failing test 'test_snapshot_reproducible':
[ 8227s] FLAKY TEST rerun: <test.TestOutput object at 0x7f2a0d338910>
[ 8227s] not ok 4893 parallel/test-snapshot-reproducible
[ 8227s] ---
[ 8227s] duration_ms: 1205278.35200
[ 8227s] severity: fail
[ 8227s] exitcode: -15
[ 8227s] stack: |-
[ 8227s] timeout
[ 8227s] 0x0: Write magic 143da19
[ 8227s] 0x4: Write metadata
[ 8227s] 0x30: Write snapshot blob
[ 8227s] 0x22a4b3: Write IsolateDataSerializeInfo
[ 8227s] 0x22bb1f: Write EnvSerializeInfo
[ 8227s] 0x22ca46: Write CodeCacheInfo
[ 8227s] 0x0: Write magic 143da19
[ 8227s] 0x4: Write metadata
[ 8227s] 0x30: Write snapshot blob
[ 8227s] 0x22a4b3: Write IsolateDataSerializeInfo
[ 8227s] 0x22bb1f: Write EnvSerializeInfo
[ 8227s] 0x22ca46: Write CodeCacheInfo
[ 8227s] node:assert:152
[ 8227s] throw new AssertionError(obj);
...
Even though the log says it's a flaky test, we are not seeing this issue with GCC 15. GCC 16 is now in its bugfixing stage, so it's possible that this is a result of a miscompilation, but I am not familiar with nodejs, so I can't tell whether this is a GCC issue or nodejs issue. Please help me understand this.
Full build log: https://build.opensuse.org/package/live_build_log/home:rguenther:plgrnd/nodejs24/openSUSE_Factory/x86_64 Link to openSUSE OBS: https://build.opensuse.org/package/show/home:rguenther:plgrnd/nodejs24
Claim this issue to let others know you're working on it. You'll earn 35 points when you complete it!