Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 722958

Summary: dev-lang/nim calls cc directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Sergei Trofimovich (RETIRED) <slyfox>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log

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.

NOTE:
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

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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=239f1fd723d0dd2c767e644c0c728a7a4eb030f3

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

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

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