Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727414 - net-libs/nodejs-14.4.0 calls 'ar' directly
Summary: net-libs/nodejs-14.4.0 calls 'ar' directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2020-06-07 10:40 UTC by Sergei Trofimovich (RETIRED)
Modified: 2020-06-07 11:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-07 10:40:31 UTC
When building net-libs/nodejs-14.4.0 on a sys-devel/binutils-config[-native-symlinks] system build fails as:

  rm -f /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ && ar crsT /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/
  rm -f /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ && ar crsT /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/
  touch /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/
/bin/sh: ar: command not found
make: *** [deps/histogram/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/] Error 127
make: *** Waiting for unfinished jobs....
/bin/sh: ar: command not found
make: *** [deps/uvwasi/ /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/] Error 127
rm e1d8ea74c86dce24911fa19048ec405ff791f9cb.intermediate
make: Leaving directory '/tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out'
 * ERROR: net-libs/nodejs-14.4.0::gentoo failed (compile phase):
 *   emake failed

Exporting AR seems to be enough to fix the build:

--- a/net-libs/nodejs/nodejs-14.4.0.ebuild
+++ b/net-libs/nodejs/nodejs-14.4.0.ebuild
@@ -54,7 +54,7 @@ pkg_pretend() {

 src_prepare() {
-	tc-export CC CXX PKG_CONFIG
+	tc-export AR CC CXX PKG_CONFIG
 	export V=1
 	export BUILDTYPE=Release
Comment 1 Larry the Git Cow gentoo-dev 2020-06-07 11:41:31 UTC
The bug has been closed via the following commit(s):

commit ee471bbdae9f1c4cb85e89962d1339183c847b51
Author:     Jeroen Roovers <>
AuthorDate: 2020-06-07 11:41:09 +0000
Commit:     Jeroen Roovers <>
CommitDate: 2020-06-07 11:41:25 +0000

    net-libs/nodejs: Set AR
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Jeroen Roovers <>

 net-libs/nodejs/nodejs-14.4.0.ebuild   | 2 +-
 net-libs/nodejs/nodejs-99999999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)