Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839888 - app-emulation/xen-4.16.2_pre2 calls cc directly
Summary: app-emulation/xen-4.16.2_pre2 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: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2022-04-21 10:50 UTC by Agostino Sarubbo
Modified: 2022-07-13 07:08 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,51.52 KB, text/plain)
2022-04-21 10:50 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-04-21 10:50:17 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/xen-4.16.0-r6 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-04-21 10:50:21 UTC
Created attachment 772583 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-04-21 10:50:23 UTC
Error(s) that match a know pattern:


/bin/sh: line 1: gcc: command not found
make[1]: *** No rule to make target 'FATAL'.  Stop.
Comment 3 Larry the Git Cow gentoo-dev 2022-04-21 19:21:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eec5a81b8a56ee6bcbfdf14b84713c4c6d571e8

commit 9eec5a81b8a56ee6bcbfdf14b84713c4c6d571e8
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2022-04-21 17:49:38 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-04-21 19:21:06 +0000

    app-emulation/xen: provide clang=(y|n), HOSTCC and HOSTCXX to make
    
    Provide clang=(y|n) to the make invocation as it tells Xen's build
    system whether or not clang is used. Also set HOSTCC and HOSTCXX. I
    believe this to probably fix calling cc directly (bug #839888).
    
    Also set LDFLAGS correctly. Previously LDFLAGS would be unset, which
    made raw-ldflags return the empty string, so
    
       # Send raw LDFLAGS so that --as-needed works
       LDFLAGS="$(raw-ldflags)"
    
    set LDFLAGS to the empty string.
    
    Finally, no longer unset ASFLAGS, as the ASFLAGS environment variable is
    no longer used by Xen.
    
    Bug: https://bugs.gentoo.org/839888
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../{xen-4.16.0-r6.ebuild => xen-4.16.0-r7.ebuild} | 39 ++++++++++++----------
 1 file changed, 22 insertions(+), 17 deletions(-)
Comment 4 Agostino Sarubbo gentoo-dev 2022-04-22 06:39:56 UTC
ci has reproduced this issue with version 4.16.0-r7 - Updating summary.
Comment 5 Agostino Sarubbo gentoo-dev 2022-07-05 17:28:19 UTC
ci has reproduced this issue with version 4.16.2_pre1 - Updating summary.
Comment 6 Agostino Sarubbo gentoo-dev 2022-07-13 05:55:22 UTC
ci has reproduced this issue with version 4.16.2_pre2 - Updating summary.
Comment 7 Larry the Git Cow gentoo-dev 2022-07-13 07:08:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c3e895d320ac2d181ad97f9576198256751ab5b

commit 6c3e895d320ac2d181ad97f9576198256751ab5b
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2022-07-13 06:57:45 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-07-13 07:08:25 +0000

    app-emulation/xen: set CC
    
    Closes: https://bugs.gentoo.org/839888
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 app-emulation/xen/xen-4.16.2_pre2.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)