[SERVER-38437] Document some less common build gotcha's on the Build-MongoDB-From-Source page Created: 06/Dec/18  Updated: 19/Dec/18  Resolved: 19/Dec/18

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: Dev Tools 2018-12-31
Participants:

 Description   

Per the discussion on https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/mongodb-dev/mavDwuo7Mvo/sBIpF_pKBwAJ.

We should document the following less common build gotchas:

  • SERVER-30893, that on ARM you must either disable hardware CRC32, or specify +crc in CCFLAGS.
  • SERVER-38389, that use of ccache may break the build due to an SCons bug, with the workaround of setting MAXLINELENGTH to a very high value.


 Comments   
Comment by Andrew Morrow (Inactive) [ 19/Dec/18 ]

Updated the wiki documentation, closing.

Comment by Andrew Morrow (Inactive) [ 19/Dec/18 ]

Understood about the caches. One subtle thing to note based on my investigations into why ccache and SCons don't work together. SCons only looks at the first token of the command line as something that should be hashed for out-of-date detection. Normally, that is fine, since that first argument is the compiler. In your case though, that first argument is ccache. The practical effects is that the SCons part of your build may not rebuild when it should if you upgrade your compiler. Just something to keep in mind.

Comment by Connecting Media [ 19/Dec/18 ]

Looks good. Glad it got added.
And btw in case I haven't mentioned it, the reason I'm using ccache instead of the built in cache is because we're already using it for everything and it has been configured to be what we need. And we'd like to avoid having to have multiple caches.

Anyways, thanks for the update on the page.

Comment by Andrew Morrow (Inactive) [ 18/Dec/18 ]

ConnectingMedia - I've updated the wiki page, please have a look and let me know if it seems to address your concerns.

Comment by Andrew Morrow (Inactive) [ 14/Dec/18 ]

It is queued up for the next sprint, so it should get done then.

Comment by Connecting Media [ 14/Dec/18 ]

Any updates on the progress?

Generated at Thu Feb 08 04:48:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.