[SERVER-49875] clang with --gcov option should fail better Created: 24/Jul/20  Updated: 29/Oct/23  Resolved: 14/Aug/20

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

Type: Improvement Priority: Major - P3
Reporter: Daniel Moody Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: coverage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Platform 2020-08-24
Participants:

 Description   

When using the build invocation:

python3.8 buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --gcov

The build will fail with this error:

Checking if C compiler is clang 7.0 (or Apple XCode 10.2) or newer...no
Checking if C++ compiler is clang 7.0 (or Apple XCode 10.2) or newer...no
ERROR: Refusing to build with compiler that does not meet requirements
See /home/ubuntu/mongo/build/scons/config.log for details

The build could check if the gcov option is being used with clang, and report that clang and --gcov is not currently supported, and alternatively use --gcov with gcc instead.



 Comments   
Comment by Githook User [ 14/Aug/20 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-49875 Added check to only allow supported gcov configuration
Branch: master
https://github.com/mongodb/mongo/commit/e7653706fd52bf02e55a72a174a051ce349d0cf7

Generated at Thu Feb 08 05:21:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.