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

Bug 855458

Summary: net-misc/dahdi-3.1.0-r4 calls cc directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Jaco Kroon <jaco>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, sam
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 2022-07-01 05:47:52 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-misc/dahdi-3.1.0-r4 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-01 05:47:54 UTC
Created attachment 789116 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-01 05:47:56 UTC
Error(s) that match a know pattern:


/bin/sh: line 1: gcc: command not found
Comment 3 Jaco Kroon 2022-07-04 11:59:49 UTC
I'm unable reproduce this one, even after rm /usr/bin/{gcc,ld} I still get a successful build and merge.

Going to need help on this one.
Comment 4 Agostino Sarubbo gentoo-dev 2022-07-04 12:07:45 UTC
(In reply to Jaco Kroon from comment #3)
> I'm unable reproduce this one

did you build sys-devel/gcc-config with -native-symlinks ?
Comment 5 Jaco Kroon 2022-07-04 12:12:45 UTC
Doesn't look like something I can do:

# USE=-native-symlinks emerge -pv gcc-config

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-devel/gcc-config-2.5-r1::gentoo  USE="(cc-wrappers) (native-symlinks)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

I did however do rm /usr/bin/{gcc,ld} directly prior to emerge -1av dahdi - after which:

plastiekpoot [14:11:55] ~ # which ld gcc
which: no ld in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin:/usr/lib/llvm/13/bin)
which: no gcc in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin:/usr/lib/llvm/13/bin)

So I trust that any invocation of gcc should be caught.  If that's not good enough, please advise on how to disable native-symlinks fully.
Comment 6 Joonas Niilola gentoo-dev 2022-07-08 09:55:22 UTC
(In reply to Jaco Kroon from comment #5)
> 
> So I trust that any invocation of gcc should be caught.  If that's not good
> enough, please advise on how to disable native-symlinks fully.

https://raw.githubusercontent.com/juippis/my-gentoo-lxd-scripts/master/container/bin/disable-native-symlinks.sh

Gives you an idea what you need to do. Study it if you want to try on your own system, but you can simply run it in a testing environment.
Comment 7 Jaco Kroon 2023-05-12 07:18:16 UTC
I think this should be fixed in dahdi-3.2.0.  Going to close under that assumption, building 3.2.0 last night was done under this condition:

jkroon@plastiekpoot ~ $ which cc
which: no cc in (/home/jkroon/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/15/bin:/etc/eselect/wine/bin)