Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722958 - dev-lang/nim calls cc directly
Summary: dev-lang/nim calls cc directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2020-05-14 08:40 UTC by Agostino Sarubbo
Modified: 2020-05-24 22:10 UTC (History)
0 users

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

build.log (build.log,37.58 KB, text/plain)
2020-05-14 08:40 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-05-14 08:40:32 UTC
This is an auto-filled bug because dev-lang/nim calls cc directly.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

If you think it doesn't make sense fix these type of issues, I'd like to point out that won't be possible use a different CC implementation (like clang) by setting the CC variable. So this issue has been reproduced by setting the CC variable to x86_64-pc-linux-gnu-gcc and by removing the /usr/bin/cc - /usr/bin/gcc binaries.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-14 08:40:40 UTC
Created attachment 638826 [details]

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-14 17:23:01 UTC
koch might need explicit pass through of $CC:

./bin/nim --parallelBuild:4 c koch
[32mHint: [0mused config file '/var/tmp/portage/dev-lang/nim-1.2.0/work/nim-1.2.0/config/nim.cfg'[36m [Conf][0m
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
/bin/sh: gcc: command not found
CC: stdlib_io.nim
/bin/sh: gcc: command not found
CC: stdlib_system.nim
/bin/sh: gcc: command not found
[31mError: [0mexecution of an external compiler program 'gcc -c  -w   -I/var/tmp/portage/dev-lang/nim-1.2.0/work/nim-1.2.0/lib -I/var/tmp/portage/dev-lang/nim-1.2.0/work/nim-1.2.0 -o /var/tmp/portage/dev-lang/nim-1.2.0/temp/cache/nim/koch_d/stdlib_assertions.nim.c.o /var/tmp/portage/dev-lang/nim-1.2.0/temp/cache/nim/koch_d/stdlib_assertions.nim.c' failed with exit code: 127
Comment 3 Larry the Git Cow gentoo-dev 2020-05-24 22:10:57 UTC
The bug has been closed via the following commit(s):

commit 239f1fd723d0dd2c767e644c0c728a7a4eb030f3
Author:     Sergei Trofimovich <>
AuthorDate: 2020-05-24 22:10:44 +0000
Commit:     Sergei Trofimovich <>
CommitDate: 2020-05-24 22:10:52 +0000

    dev-lang/nim: use $CC instead of 'gcc', bug #722958
    Reported-by: Agostino Sarubbo
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <>

 dev-lang/nim/nim-1.2.0.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)