[SERVER-15555] Building should not depend on pymongo Created: 07/Oct/14  Updated: 03/Mar/15  Resolved: 27/Oct/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 2.7.7
Fix Version/s: 2.7.8

Type: Bug Priority: Major - P3
Reporter: Dominyk Tiller [X] Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.8, 10.9, 10.10


Attachments: File 01.scons     File mongodb.rb    
Issue Links:
Related
is related to SERVER-15806 Build Go tools in Homebrew formula Closed
Backwards Compatibility: Fully Compatible
Operating System: OS X
Steps To Reproduce:

Attempt to build.
Fails?

Participants:

 Description   

2.7.7 & the Github HEAD build seem to be failing to build entirely. Trying to bump versions from 2.7.6 to 2.7.7 but it nearly insta-fails with the message outputted below.

This is the error:

==> /usr/local/opt/scons/bin/scons all --prefix=/usr/local/Cellar/mongodb/2.7.7_1 -j4 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --osx-version-min=10.10 --64
scons: Reading SConscript files ...
Mkdir("build/scons")
scons version: 2.3.4
python version: 2 7 8 'final' 0
EnvironmentError: No module named pymongo:
File "/private/tmp/mongodb-i75K6y/mongodb-src-r2.7.7/SConstruct", line 515:
env = Environment(**envDict)
File "/usr/local/Cellar/scons/2.3.4/libexec/scons-local/SCons/Environment.py", line 1003:
apply_tools(self, tools, toolpath)
File "/usr/local/Cellar/scons/2.3.4/libexec/scons-local/SCons/Environment.py", line 107:
env.Tool(tool)
File "/usr/local/Cellar/scons/2.3.4/libexec/scons-local/SCons/Environment.py", line 1810:
tool = SCons.Tool.Tool(tool, toolpath, **kw)
File "/usr/local/Cellar/scons/2.3.4/libexec/scons-local/SCons/Tool/_init_.py", line 97:
module = self._tool_module()
File "/usr/local/Cellar/scons/2.3.4/libexec/scons-local/SCons/Tool/_init_.py", line 118:
raise SCons.Errors.EnvironmentError(e)
/usr/local/Library/Homebrew/debrew.rb:10:in `raise'
BuildError: Failed executing: /usr/local/opt/scons/bin/scons all --prefix=/usr/local/Cellar/mongodb/2.7.7_1 -j4 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --osx-version-min=10.10 --64

I am using Homebrew & we are using the build arguments:

--prefix=#

Unknown macro: {prefix}

-j#

Unknown macro: {ENV.make_jobs}

--cc=#

Unknown macro: {ENV.cc}

--cxx=#

Unknown macro: {ENV.cxx}

--osx-version-min=#

Unknown macro: {MacOS.version}


 Comments   
Comment by Dominyk Tiller [X] [ 27/Oct/14 ]

Alright. Cheers for the feedback on this. Let me know if I can be of any help on the Homebrew side of things.

Comment by Ernie Hershey [ 27/Oct/14 ]

To match the current recipe, we need to depend on Go and build the tools from a separate repo. I'm going to put that in a new ticket.

Comment by Dominyk Tiller [X] [ 08/Oct/14 ]

That seems to have fixed one issue but exposed another, only in the HEAD this time.

scons: done reading SConscript files.
scons: Building targets ...
scons: *** [/usr/local/Cellar/mongodb/HEAD/bin/bsondump] Source `src/mongo-tools/bsondump' not found, needed by target `/usr/local/Cellar/mongodb/HEAD/bin/bsondump'.
scons: building terminated because of errors.

Comment by Githook User [ 08/Oct/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-15555 dynamically import pymongo in smoke module only when needed
Branch: master
https://github.com/mongodb/mongo/commit/8b8e90fbe6bf97990f6997a576acfa2828867bec

Comment by Dominyk Tiller [X] [ 07/Oct/14 ]

Apologies. The Homebrew build options in my original post here did not comment in properly for some reason. The attached .rb file displays them in full, and in the correct formatting.

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