[SERVER-59425] Ninja fails to install archive targets locally Created: 18/Aug/21  Updated: 29/Oct/23  Resolved: 23/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.10, 5.0.4, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Sprint: Dev Platform 2021-08-23, Dev Platform 2021-09-06
Participants:

 Description   

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.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 28/Sep/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-59425 fix for_signature subst list for ninja generated command actions.

(cherry picked from commit 0f3cd5391f1b67f0f2ed23c77a8bd217b407d8a2)
Branch: v5.0
https://github.com/mongodb/mongo/commit/4d94e65b879593d708bf13b1ece65914d6139d22

Comment by Githook User [ 28/Sep/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-59425 fix for_signature subst list for ninja generated command actions.

(cherry picked from commit 0f3cd5391f1b67f0f2ed23c77a8bd217b407d8a2)
Branch: v4.4
https://github.com/mongodb/mongo/commit/78db6ad45a14f3ed84dbe6c8cd00175188f10c45

Comment by Daniel Moody [ 07/Sep/21 ]

upstream fix: https://github.com/SCons/scons/pull/4014

Comment by Githook User [ 23/Aug/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-59425 fix for_signature subst list for ninja generated command actions.
Branch: master
https://github.com/mongodb/mongo/commit/0f3cd5391f1b67f0f2ed23c77a8bd217b407d8a2

Generated at Thu Feb 08 05:47:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.