[SERVER-25144] Failure to compile mongod server and mongo shell from 3.2.8 sources Created: 19/Jul/16  Updated: 12/Aug/16  Resolved: 20/Jul/16

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 3.2.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jörg Plate [X] Assignee: Kelsey Schubert
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File config.log.txt     Text File stdout.txt    
Issue Links:
Duplicate
duplicates SERVER-21317 Better fallback for builds with no ve... Closed
Operating System: ALL
Steps To Reproduce:

1. extract tar ball
2. go to mongo-r3.2.8
3. type "scons"

Participants:

 Description   

Downloaded the tarball for 3.2.8 from https://github.com/mongodb/mongo/releases
to build it on Debian 8.

https://jira.mongodb.org/browse/SERVER-21791 was no help

  • No version.json.
  • No MONGO_VERSION set.
  • Trying to do MSI (Windows) stuff on Linux?

Error when trying to build:

IndexError: list index out of range:
  File "mongo-r3.2.8/SConstruct", line 2650:
    env.SConscript('src/SConscript', variant_dir='$BUILD_DIR', duplicate=False)
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250:
    exec _file_ in call_stack[-1].globals
  File "mongo-r3.2.8/src/SConscript", line 14:
    ] + module_sconscripts
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250:
    exec _file_ in call_stack[-1].globals
  File "mongo-r3.2.8/src/mongo/SConscript", line 40:
    'util',
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250:
    exec _file_ in call_stack[-1].globals
  File "mongo-r3.2.8/src/mongo/installer/SConscript", line 7:
    'msi',
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250:
    exec _file_ in call_stack[-1].globals
  File "mongo-r3.2.8/src/mongo/installer/msi/SConscript", line 89:
    major_version = "%s.%s" % (mv[0], mv[1])



 Comments   
Comment by Ramon Fernandez Marina [ 20/Jul/16 ]

Thanks for the update Patterner. To answer your questions:

  • SERVER-21317 describes the workaround for github tarballs: you can add a version.json file or with version and githash information or use site_scons. However I'd recommend you use the tarballs provided via our downloads page so it's easier to track which bits are you using if you run into a bug
  • The MSI stuff is a red herring: it is triggered by the bug described in SERVER-21317

I'm going to close this ticket as a duplicate of SERVER-21317, feel free to watch that ticket for updates.

Thanks,
Ramón.

Comment by Jörg Plate [X] [ 20/Jul/16 ]

The tarball from https://fastdl.mongodb.org/src/mongodb-src-r3.2.8.tar.gz doesn't have that problem.

My expectations for 3.2.9 (or 3.3.*):

  • no workarounds for github release archives
  • not trying to build MSI stuff under Linux (new bug for that?)
Comment by Ramon Fernandez Marina [ 19/Jul/16 ]

I think SERVER-21317 is the ticket you're looking for – can you please try the workaround suggested there and report back? I think that should help you move forward.

The alternative is to download our tarball instead of the one provided by github.

Thanks,
Ramón.

Generated at Thu Feb 08 04:08:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.