[SERVER-40260] on windows, linking with tcmalloc_minimal.lib emits warning LNK4078 Created: 21/Mar/19 Updated: 29/Oct/23 Resolved: 22/Mar/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Billy Donahue | Assignee: | Billy Donahue |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Dev Tools 2019-03-25 |
| Participants: |
| Description |
|
This is emitted on basically on every link step in a Windows build. [2019/03/21 11:55:11.613] tcmalloc_minimal.lib(port.obj) : warning LNK4078: multiple '.CRT' sections found with different attributes (C0400040) ... It's a nuisance and may be revealing a deeper misconfiguration on our part, or on gperftools' part.
|
| Comments |
| Comment by Githook User [ 23/Mar/19 ] | |||||||||||||
|
Author: {'name': 'Billy Donahue', 'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com'}Message: Under x64, the PE loader looks for callbacks in constant sections | |||||||||||||
| Comment by Billy Donahue [ 23/Mar/19 ] | |||||||||||||
|
We could backport this linker fix to our vendored gperftools-2.5. | |||||||||||||
| Comment by Githook User [ 22/Mar/19 ] | |||||||||||||
|
Author: {'name': 'Billy Donahue', 'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com'}Message: | |||||||||||||
| Comment by Billy Donahue [ 22/Mar/19 ] | |||||||||||||
|
reimport from the mongodb-labs repo containing our cherry-pick. | |||||||||||||
| Comment by Billy Donahue [ 21/Mar/19 ] | |||||||||||||
|
Github PR: https://github.com/mongodb-labs/gperftools/pull/10 | |||||||||||||
| Comment by Billy Donahue [ 21/Mar/19 ] | |||||||||||||
|
identified change to cherry-pick for this. | |||||||||||||
| Comment by Billy Donahue [ 21/Mar/19 ] | |||||||||||||
|
Aha! Fixed upstream: https://github.com/gperftools/gperftools/commit/62c4eca6e7ec9dc78333dc6b499f90eef9849378 We need to cherry-pick this. | |||||||||||||
| Comment by Billy Donahue [ 21/Mar/19 ] | |||||||||||||
|
gperftools mentions .CRT only here in port.cc.
|