-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
DevProd Build
-
v9.0, v8.3, v8.0, v7.0
-
Build OnDeck
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Release-branch PPC64LE and s390x cross-GCC pins predate two toolchain configuration fixes. Adopt the rebuilt v4/v5 GCC archives at toolchain-builder revision 6313c32e971dc7f77be261669a72f80a11ce3346 on v7.0, v8.0, v8.3, and v9.0.
Problem and correction
- Cross GCC lacked --enable-initfini-array. In 7.0 PPC server binaries this caused application constructors to run in the reverse of the native build's order. The rebuilt v4/v5 archives use modern .init_array/.fini_array handling.
- RHEL 8 s390x cross GCC lacked --enable-s390-excess-float-precision, unlike native RHEL 8 GCC. ICU hash-table threshold calculations used single-precision operations rather than the native double-evaluation policy. The rebuilt RHEL 8 v4/v5 archives restore that policy.
- GCC versions remain 11.3.0 for v4 and 14.2.0 for v5. Preserve each branch's existing linker selection and runtime baseline.
Scope
- Master is not affected; this ticket tracks release-branch GCC adoption.
- v7.0 and v8.0 use v4; v8.3 and v9.0 use v5.
- Update the published archive revisions/checksums and related pin/matrix assertions.
- Preserve native IBM test execution, release cache restrictions, and publication gates.
- Independent sysroot/header/library differences are outside these GCC configuration fixes.
Implementation
- Toolchain constructor-array fix, PR #158
- Toolchain RHEL 8 s390x precision fix, PR #159
- v7.0 rollout PR #66979 (depends on PPC backport #66705).
- v8.0 rollout PR #66981
- v8.3 rollout PR #66982
- v9.0 rollout PR #66983
Completed validation
- Published GCC archive SHA-256 verification, startup-object inspection, and ARM64 cross-compiler probes passed. Existing branch-specific configuration/pin tests passed.
- 7.0/v4 server patch: all 13 tasks passed.
- 9.0/v5 server patch: all 9 tasks passed.
- Inspected mongod, mongos, and mongocryptd for PPC64LE and s390x on both representative branches: all 12 executables use modern startup arrays and have no legacy constructor-reversing helper.
- All three 7.0 constructor orders on each architecture exactly match the saved same-source native baselines.
- Both s390x ICU threshold functions use double mdbr/cfdbr operations in all six s390x executables, with no single meebr/cfebr operations. The 7.0 resize-policy function also matches the native instruction sequence and non-address operands.
- Four QEMU runtime suites passed: CRUD, indexes, ICU collation, time series, validation/concurrency, TLS, restart/durability, encryption analysis, replica election, sharding, routed aggregation, and transactions. Each suite passed 2,855 Decimal128 oracle cases with zero numeric mismatches.
- Native RHEL 8 mongod --version checks passed on both architectures for both branches. PPC full runtime coverage used QEMU POWER8; native PPC startup checks used POWER9.
- No inspected executable requires GLIBC newer than 2.28. These are release-mode patch binaries, not published releases. Full server builds were run on 7.0 and 9.0; 8.0 and 8.3 currently have configuration/probe coverage.
- related to
-
SERVER-136667 Move PPC64LE CI builds to ARM64 hosts
-
- Closed
-