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

The build with the legacy install mode is broken

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.16
    • Affects Version/s: 4.4.15
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Hide

      The command:

      buildscripts/scons.py CPPPATH="${AWS_LIBS}/include" LIBPATH="${AWS_LIBS}/lib" -j$(nproc) --disable-warnings-as-errors --install-mode=legacy MONGO_VERSION=4.4.15 mongod
      

      Expected result: the build is done
      Got result: the following error

      AttributeError: 'SConsEnvironment' object has no attribute 'AutoInstall':
        File "/home/ktrushin/code/psmdb/SConstruct", line 4784:
          env.SConscript(
        File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 597:
          return _SConscript(self.fs, *files, **subst_kw)
        File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 286:
          exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
        File "/home/ktrushin/code/psmdb/src/SConscript", line 27:
          env.SConscript('mongo/SConscript', exports=['env'])
        File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 597:
          return _SConscript(self.fs, *files, **subst_kw)
        File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 286:
          exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
        File "/home/ktrushin/code/psmdb/src/mongo/SConscript", line 28:
          env.SConscript(
        File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 597:
          return _SConscript(self.fs, *files, **subst_kw)
        File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 286:
          exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
        File "/home/ktrushin/code/psmdb/src/mongo/resmoke/SConscript", line 16:
          resmoke_py_install = env.AutoInstall(
      

       

      Show
      The command: buildscripts/scons.py CPPPATH= "${AWS_LIBS}/include" LIBPATH= "${AWS_LIBS}/lib" -j$(nproc) --disable-warnings-as-errors --install-mode=legacy MONGO_VERSION=4.4.15 mongod Expected result: the build is done Got result: the following error AttributeError: 'SConsEnvironment' object has no attribute 'AutoInstall' : File "/home/ktrushin/code/psmdb/SConstruct" , line 4784: env.SConscript( File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py" , line 597: return _SConscript(self.fs, *files, **subst_kw) File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py" , line 286: exec(compile(scriptdata, scriptname, 'exec' ), call_stack[-1].globals) File "/home/ktrushin/code/psmdb/src/SConscript" , line 27: env.SConscript( 'mongo/SConscript' , exports=[ 'env' ]) File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py" , line 597: return _SConscript(self.fs, *files, **subst_kw) File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py" , line 286: exec(compile(scriptdata, scriptname, 'exec' ), call_stack[-1].globals) File "/home/ktrushin/code/psmdb/src/mongo/SConscript" , line 28: env.SConscript( File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py" , line 597: return _SConscript(self.fs, *files, **subst_kw) File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py" , line 286: exec(compile(scriptdata, scriptname, 'exec' ), call_stack[-1].globals) File "/home/ktrushin/code/psmdb/src/mongo/resmoke/SConscript" , line 16: resmoke_py_install = env.AutoInstall(  
    • Dev Platform 2022-07-25

      While the hygienic install mode works as expected, the building with the legacy install mode fails. 

            Assignee:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Reporter:
            konstantin.trushin@percona.com Konstantin Trushin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: