Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857927 - dev-lang/nim-1.6.6-r1 calls cc directly
Summary: dev-lang/nim-1.6.6-r1 calls cc directly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2022-07-14 06:55 UTC by Agostino Sarubbo
Modified: 2022-07-20 23:01 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,91.22 KB, text/plain)
2022-07-14 06:55 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-14 06:55:40 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/nim-1.6.6-r1 calls cc directly.
Discovered on: amd64 (internal ref: ci)

NOTE:
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different CC implementation (like clang). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-14 06:55:42 UTC
CC'ing also the author of the commit (38ad8d4290f37de7d1de2aa96a8dedbc160b3123)
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-14 06:55:44 UTC
Created attachment 791372 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2022-07-14 06:55:46 UTC
Error(s) that match a know pattern:


/bin/sh: line 1: gcc: command not found
Error: execution of an external compiler program 'gcc -c  -w -fmax-errors=3   -I/var/tmp/portage/dev-lang/nim-1.6.6-r1/work/nim-1.6.6/lib -I/var/tmp/portage/dev-lang/nim-1.6.6-r1/work/nim-1.6.6/compiler -o /var/tmp/portage/dev-lang/nim-1.6.6-r1/work/nim-1.6.6/nimcache/d_linux_amd64/linenoise.c.o /var/tmp/portage/dev-lang/nim-1.6.6-r1/work/nim-1.6.6/lib/wrappers/linenoise/linenoise.c' failed with exit code: 127
FAILURE
Comment 4 Anna Vyalkova 2022-07-14 06:57:33 UTC
This only happens in stage1. And I don't think it can be fixed.
Comment 5 Ionen Wolkens gentoo-dev 2022-07-14 08:07:47 UTC
(In reply to Anna Vyalkova from comment #4)
> This only happens in stage1. And I don't think it can be fixed.
Isn't the problem the --skipUserCfg? By making it a non-usercfg it doesn't ignore it anymore e.g.

-	cat > nim.cfg <<- EOF || die "Failed to create Nim config"
+	cat >> config/nim.cfg <<- EOF || die "Failed to create Nim config"

It works with -native-symlinks and respected flags for me then.

Albeit I know next to nothing about nim, so unsure if that really makes sense.
Comment 6 Maciej Barć gentoo-dev 2022-07-20 23:01:30 UTC
Should have been closed with
https://github.com/gentoo/gentoo/pull/26399