[SERVER-19340] Vendored wiredtiger rand.c fails to compile without -fno-strict-aliasing Created: 09/Jul/15 Updated: 31/Aug/15 Resolved: 12/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build, Internal Code, WiredTiger |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 15.04, GCC 4.9.2 |
||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Steps To Reproduce: | Remove -fno-strict-aliasing from the top level SConstruct and build with a modern GCC. |
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
If the -fno-strict-aliasing flag is removed from the top level SConstruct, the vendored WiredTiger sources in src/third_party/wiredtiger do not compile. In particular, the rand.c file generates strict aliasing errors:
|
| Comments |
| Comment by Githook User [ 04/Aug/15 ] | ||||||||||||||||||||||
|
Author: {u'username': u'daveh86', u'name': u'David Hows', u'email': u'howsdav@gmail.com'}Message: Merge pull request #2088 from wiredtiger/rand-strict-alias
| ||||||||||||||||||||||
| Comment by Githook User [ 28/Jul/15 ] | ||||||||||||||||||||||
|
Author: {u'username': u'daveh86', u'name': u'David Hows', u'email': u'howsdav@gmail.com'}Message: Merge pull request #2088 from wiredtiger/rand-strict-alias
| ||||||||||||||||||||||
| Comment by Githook User [ 28/Jul/15 ] | ||||||||||||||||||||||
|
Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}Message: | ||||||||||||||||||||||
| Comment by Githook User [ 28/Jul/15 ] | ||||||||||||||||||||||
|
Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}Message: | ||||||||||||||||||||||
| Comment by Alexander Gorrod [ 27/Jul/15 ] | ||||||||||||||||||||||
|
david.hows GCC 5.2.0 is not yet supported. There is another ticket covering the warning you report: | ||||||||||||||||||||||
| Comment by David Hows [ 27/Jul/15 ] | ||||||||||||||||||||||
|
I tried to reproduce this on my arch box w/ GCC 5.2.0 but could not get to the point where you failed; First I hit the following:
With that resolved, I hit the following:
|