[SERVER-68887] Can not build on the Ubuntu 22.04 LTS Created: 17/Aug/22 Updated: 29/Oct/23 Resolved: 08/Sep/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 6.0.1 |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kane You | Assignee: | Juan Gu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | compiler-warnings | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Steps To Reproduce: | sudo apt install build-essential |
| Participants: |
| Description |
|
according to https://github.com/mongodb/mongo/blob/master/docs/building.md
the error report is:
```bash Compiling build/59f4f0dd/mongo/db/exec/sbe/values/value_printer.o In constructor 'mongo::StringData::StringData(const char*)', In constructor 'mongo::StringData::StringData(const char*)', cc1plus: all warnings being treated as errors ``` |
| Comments |
| Comment by Githook User [ 08/Sep/22 ] |
|
Author: {'name': 'Ubuntu', 'email': 'ubuntu@ip-10-0-4-192.ec2.internal'}Message: |
| Comment by Chris Kelly [ 18/Aug/22 ] |
|
For C++ compilers that are newer than the supported version, the compiler may issue new warnings that cause MongoDB to fail to build since the build system treats compiler warnings as errors. If you try this, it may build: python3 buildscripts/scons.py install-mongod --disable-warnings-as-errors I'll pass this issue along to the relevant team to take a look at these warnings though. Thanks for your report! Christopher |
| Comment by Kane You [ 18/Aug/22 ] |
| Comment by Kane You [ 17/Aug/22 ] |
|
gcc and g++ version is 11.2-1 from the ubuntu official repo |
| Comment by Ryan Egesdahl (Inactive) [ 17/Aug/22 ] |
|
diracsvip@gmail.com Which compiler are you using and which version of it? Also, would you please attach the build/scons/config.log from the build to this ticket? (It should be located inside the source directory where you ran those commands.) |