[SERVER-13724] Add SCons flag to override treating all warnings as errors Created: 24/Apr/14  Updated: 11/Mar/15  Resolved: 01/May/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 2.6.1
Fix Version/s: 2.4.11, 2.6.2, 2.7.0

Type: Task Priority: Major - P3
Reporter: Ernie Hershey Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-9569 Make 'warnings as options' a build op... Closed
Related
is related to SERVER-12272 2.4.9-rc0 does not compile with gcc-4... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Participants:

 Description   

This would allow non-standard compilers to build the server if there are warnings that are desirable to ignore.

Specifically it would assist "typedef 'year_type' locally defined but not used" with gcc 4.8.1 and "type attributes are honored only at type definition" with gcc 4.1.2.

Other cases will also arise as new compiler versions have new warnings.



 Comments   
Comment by Alvin Richards (Inactive) [ 15/Aug/14 ]

matt.kangas@10gen.com I think you also need to address the v8 SConstruct, I had to comment out (hack) the -Werror in order to build 2.4.10

 'gcc': {
    'all': {
      'CCFLAGS':      ['-Wall',
#                       '-Werror',
                       '-W',
                       '-Wno-unused-parameter',
                       '-Woverloaded-virtual',
                       '-Wnon-virtual-dtor']

Comment by Matt Kangas [ 08/May/14 ]

Backport to v2.6 and v2.4 complete

Comment by Githook User [ 08/May/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-13724 Add --disable-warnings-as-errors scons option

This change was prompted by attempts to build 2.6.0 in SLES 10 with
its system gcc version 4.1.2. It builds fine other than a sole
warning - src/third_party/boost/boost/thread/detail/thread.hpp:316:
warning: type attributes are honored only at type definition. It
should also help in cases where compilers are too new.
(cherry picked from commit 27c128d303d9d3bcdf471d4da69bd1b8940fd038)

Conflicts:

SConstruct
Branch: v2.4
https://github.com/mongodb/mongo/commit/899d16e9c6ff8388db6c9c42bbaa97f330fa5bfc

Comment by Githook User [ 08/May/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-13724 Add --disable-warnings-as-errors scons option

This change was prompted by attempts to build 2.6.0 in SLES 10 with
its system gcc version 4.1.2. It builds fine other than a sole
warning - src/third_party/boost/boost/thread/detail/thread.hpp:316:
warning: type attributes are honored only at type definition. It
should also help in cases where compilers are too new.
(cherry picked from commit 27c128d303d9d3bcdf471d4da69bd1b8940fd038)
Branch: v2.6
https://github.com/mongodb/mongo/commit/ac19511d677a871ab57a9506ee038bd8443ce25e

Comment by Githook User [ 01/May/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-13724 Add --disable-warnings-as-errors scons option

This change was prompted by attempts to build 2.6.0 in SLES 10 with
its system gcc version 4.1.2. It builds fine other than a sole
warning - src/third_party/boost/boost/thread/detail/thread.hpp:316:
warning: type attributes are honored only at type definition. It
should also help in cases where compilers are too new.
Branch: master
https://github.com/mongodb/mongo/commit/27c128d303d9d3bcdf471d4da69bd1b8940fd038

Generated at Thu Feb 08 03:32:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.