[SERVER-51119] Out-of-source builds fail, "mongo/src/mongo/db/sorter/sorter_gen.h: No such file or directory" Created: 23/Sep/20 Updated: 22/Oct/20 Resolved: 22/Oct/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Daniel Moody |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Sprint: | Dev Platform 2020-11-02 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
I checked out master on Linux and tried to build using a distinct output directory. Source: "/home/emptysquare/Vermino.us Dropbox/Verminous Davis/mongo"
The build fails with:
It seems that /home/emptysquare/build/ninja/mongo/db/resumable_index_builds_gen.h isn't generated correctly. It contains:
I think there's an incompatibility between IDL files that import IDL files and the --build-dir option. |
| Comments |
| Comment by Daniel Moody [ 21/Oct/20 ] |
|
I tested the commands in the description on ubuntu 18 workstation, and seems to work fine with changes from |
| Comment by Ryan Egesdahl (Inactive) [ 08/Oct/20 ] |
|
At first blush, this seems to be completely due to |
| Comment by Mark Benvenuto [ 02/Oct/20 ] |
|
See |
| Comment by Ryan Egesdahl (Inactive) [ 24/Sep/20 ] |
|
jesse I've attached a sample configuration to this ticket. It depends on the remote host being keyed (the key must be in your keychain or have no password), and you will need to go through the configuration and substitute all instances of $LOCAL_USER, $REMOTE_USER, and $REMOTE_HOST as appropriate. You can also set up your Mac locally to run Unison as a service if you like, but I am afraid I no longer have a Mac that I run Unison on and therefore have no example of a launch daemon configuration handy for you. It's not too hard to do, though, and the one I made a few years ago was essentially copied from a Google search. I hope this helps you work around the problem for now. |
| Comment by A. Jesse Jiryu Davis [ 24/Sep/20 ] |
|
Thanks, I would appreciate an example Unison config. |
| Comment by Ryan Egesdahl (Inactive) [ 23/Sep/20 ] |
|
We will definitely look into this, but I may have a solution for you that you can try. Dropbox isn't actually a very good sync platform for this purpose and is likely to cause other issues after this one is resolved. You might want to see if you can get Unison up and running. Make sure both sides of the sync have the same OCAML version (what Unison is written in) and the same Unison version before you start. I have a config I can share with you that can get you started. |
| Comment by A. Jesse Jiryu Davis [ 23/Sep/20 ] |
|
This problem arose because I'm experimenting with a new way to edit code on Mac and build on Linux. I want to share a Dropbox folder between my Mac and Linux machines. I want to sync only the code, not the build artifacts, so I tried an out-of-source build and hit this error. |