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

Ninja fails to install archive targets locally

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.10, 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.4
    • Dev Platform 2021-08-23, Dev Platform 2021-09-06

      I attempted to install archive-dist-test locally using ninja, and I seem to be running into an issue:

      (python3-venv) ubuntu@ip-10-122-6-84 ~/mongo (SERVER-59012) $ ninja archive-dist-test -j 600
      [1/1 (100%) 0.005s] Building build/opt/pkgs/mongodb-binaries.tgz
      FAILED: build/opt/pkgs/mongodb-binaries.tgz 
      export PATH='/opt/mongodbtoolchain/v3/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin';export CCACHE_NOCPP2='1';export ICECC_CARET_WORKAROUND='0';export CCACHE_PREFIX='/home/ubuntu/mongo/build/scons/icecream/run-icecc.sh';/bin/tar -C build/opt/install -czf build/opt/pkgs/mongodb-binaries.tgz
      /bin/tar: Cowardly refusing to create an empty archive
      Try '/bin/tar --help' or '/bin/tar --usage' for more information.
      ninja: build stopped: subcommand failed.
      

      Installing with plain SCons still works correctly, so this issue seems specific to ninja.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: