[SERVER-6960] Build system produces incorrect debugsymbols archive Created: 06/Sep/12  Updated: 11/Jul/16  Resolved: 07/Sep/12

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 2.2.0, 2.3.0
Fix Version/s: 2.2.1, 2.3.0

Type: Bug Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: build, scons
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

If you run scons s3dist and scons --nostrip s3dist, in either order, you ought to push to s3 two archive files, one of which is the equivalent to the other except that strip has been run on all the binaries. Currently, this is not so in 2.2 or master branches.



 Comments   
Comment by auto [ 12/Sep/12 ]

Author:

{u'date': u'2012-09-07T10:16:24-07:00', u'email': u'Andy Schwerin schwerin@10gen.com', u'name': u'Andrew Schwerin'}

Message: SERVER-6960 Always link object files and static archives in the same order.

SCons (correctly) considers two link command lines different if the order of
object files or static libraries changes. As a result, the libdeps system needs
to produce consistent ordering of these files in the $_LIBDEPS expansion. This
patch achieves this by sorting the _LIBDEPS candidate expansion by the string
name of the expanded objects.

This problem is akin to that from SERVER-5254, which was solved in a similar
manner.
Branch: v2.2
https://github.com/mongodb/mongo/commit/bebd9195c40c4b61b1858061e4e0709c1f4121ae

Comment by auto [ 07/Sep/12 ]

Author:

{u'date': u'2012-09-07T10:16:24-07:00', u'name': u'Andrew Schwerin', u'email': u'Andy Schwerin schwerin@10gen.com'}

Message: SERVER-6960 Always link object files and static archives in the same order.

SCons (correctly) considers two link command lines different if the order of
object files or static libraries changes. As a result, the libdeps system needs
to produce consistent ordering of these files in the $_LIBDEPS expansion. This
patch achieves this by sorting the _LIBDEPS candidate expansion by the string
name of the expanded objects.

This problem is akin to that from SERVER-5254, which was solved in a similar
manner.
Branch: master
https://github.com/mongodb/mongo/commit/645aa497732e829fd43092f02102ac37cc3a8b08

Comment by Randall Hunt [ 06/Sep/12 ]

Is this: [BUILDBOT-156] related?

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