[CDRIVER-2005] release-compile task on Evergreen Windows variants builds debug version of driver Created: 28/Jan/17  Updated: 03/May/17  Resolved: 15/Mar/17

Status: Closed
Project: C Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-2079 Link error due to undefined reference... Closed
related to CDRIVER-2069 Document how to produce release binar... Closed

 Description   

From looking at the build logs of a recent "release-compile" task on the "Windows (VS 2015)" builder, it looks like a debug build of the driver is being built by mistake.

The logs show the compiler flags "/MDd" and "/D _DEBUG" being passed to cl.exe, and the value of ${CMAKE_CFG_INTDIR} appears to be "Debug".

Perhaps the "/p:Configuration=Release" option needs to be passed to msbuild.exe?



 Comments   
Comment by Githook User [ 15/Mar/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2005: Document how to enable release build
Branch: master
https://github.com/mongodb/libbson/commit/31f6f389bfe69eb5854d2ac188a6078e2a3f6076

Comment by Githook User [ 15/Mar/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2005 Improve installation instructions
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8d5bf4a631b0e8b8563fa14489e3f2c68cba1639

Comment by Githook User [ 15/Mar/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2005 Produce proper debug & release binaries
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9fb2398134b78ea036c13bf4a56ea956e8f40b68

Comment by Githook User [ 13/Mar/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2005 Don't use naked assert()s
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6dc5515d47cb8999606ceab257ff7a79c68cdf25

Comment by Hannes Magnusson [ 24/Feb/17 ]

This should be fixed in libbson now.
Next up, mongoc.

Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2005 Replace raw assert()s with BSON_ASSERT
Branch: master
https://github.com/mongodb/libbson/commit/b6cab88c120fe259e965815769b2ccaaa2614f7d

Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magn\xfasson', u'email': u'bjori@php.net'}

Message: CDRIVER-2005 Replace raw assert()s with BSON_ASSERT
Branch: master
https://github.com/mongodb/libbson/commit/661e09603f102527ff125c4559efba5a4080c6c1

Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2005 Compile Release version on Windows when requested
Branch: master
https://github.com/mongodb/libbson/commit/0850239cc06feb3c13320db650798211b3c77c35

Comment by Hannes Magnusson [ 28/Jan/17 ]

The release-compile refers to using release archives, not git checkouts, in this case, not specifically not-debug-compiler-flags (although we don't specifically enable debug mode in the autotools version).

The cmake options should be updated to generate a release manifest if debug builds are the default.

Generated at Wed Feb 07 21:13:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.