[SERVER-21905] CR characters trigger 3.2 compilation failure Created: 15/Dec/15  Updated: 20/Nov/16  Resolved: 28/Dec/15

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 3.2.0
Fix Version/s: 3.2.3, 3.3.0

Type: Bug Priority: Major - P3
Reporter: Yunier J. Sosa Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Testing


Attachments: File error.log    
Issue Links:
Duplicate
is duplicated by SERVER-21966 zip source file cannot be compiled in... Closed
Backwards Compatibility: Fully Compatible
Operating System: Linux
Backport Completed:
Steps To Reproduce:

Try compile mongo with scons all

Sprint: Platforms E (01/08/16)
Participants:

 Description   

When I try compile mongo a error is triggered, I have installed all dependences.
I been downloaded mongo from here http://downloads.mongodb.org/src/mongodb-src-r3.2.0.zip



 Comments   
Comment by Githook User [ 27/Jan/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-21905 Python scripts should read text with universal newline support

(cherry picked from commit 0f825e855c65bde8d3f5b7ad1b046088949cc914)
Branch: v3.2
https://github.com/mongodb/mongo/commit/da0d0762fc8a1c3eaa0a7d87fe98179b3a1f25e5

Comment by Githook User [ 28/Dec/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-21905 Python scripts should read text with universal newline support
Branch: master
https://github.com/mongodb/mongo/commit/0f825e855c65bde8d3f5b7ad1b046088949cc914

Comment by Yunier J. Sosa [ 16/Dec/15 ]

Friends, I have been downloaded and compiled the .tar.gz file like you say to me and work fine

Comment by Mark Benvenuto [ 16/Dec/15 ]

Yes, this a bug in the python script. It assumes you build with sources that have Linux new lines ('\n') on Linux. The zip file contains Windows new lines ('\r\n'). To workaround this, just download the file with .tar.gz as the suffix.

The fix is to modify the calls to open to use 'U'.

Comment by Ramon Fernandez Marina [ 15/Dec/15 ]

Thanks for your report yjsosa, I'm able to reproduce this error and we're investigating.

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