Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5575

Building Mongo fails with the --64 flag on OSX

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.1.0
    • Component/s: Build
    • Environment:
      MacOS version 10.7.3, xcode version 4.1, scons version: 2.0.1, and python version: 2 7 2 'final' 0
    • Fully Compatible
    • OS X

      When using OSX 10.6+, the --64 flag is not necessary (the 64-bit version will be built automatically), but when it is included, it causes an error:

      $ sudo scons --prefix=/opt/mongo  --64 --full install
      
      Install file: "build/darwin/64/client_build/libmongoclient.a" as "libmongoclient.a"
      Install file: "libmongoclient.a" as "/opt/mongo/lib/libmongoclient.a"
      scons: *** [/opt/mongo/lib/libmongoclient.a] AssertionError : Installing source ['libmongoclient.a', 'build/darwin/64/client_build/libmongoclient.a'] into target ['/opt/mongo/lib/libmongoclient.a']: target and source lists must have same length.
      Traceback (most recent call last):
        File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.0.1/SCons/Action.py", line 1046, in execute
          result = self.execfunction(target=target, source=rsources, env=env)
        File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.0.1/SCons/Tool/install.py", line 79, in installFunc
          "Installing source %s into target %s: target and source lists must have same length."%(list(map(str, source)), list(map(str, target)))
      AssertionError: Installing source ['libmongoclient.a', 'build/darwin/64/client_build/libmongoclient.a'] into target ['/opt/mongo/lib/libmongoclient.a']: target and source lists must have same length.
      scons: building terminated because of errors.
      

      The following compiles just fine:
      $ sudo scons --prefix=/opt/mongo install

      (The above was done using commit 82b5219b3a2989f99bd33f3300eae22aeeac947c)

        1. SConscript.client.patch
          0.4 kB
          Victor Guerra
        2. SConscript.client.patch
          0.4 kB
          Victor Guerra

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            barrie Barrie Segal
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: