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

Bug 572104

Summary: multilib.eclass: export CPP too
Product: Gentoo Linux Reporter: Denis Kaganovich <mahatma>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: CPP for multilib.eclass

Description Denis Kaganovich 2016-01-16 14:59:32 UTC
net-fs/samba-4.3.4 failed to build with USE="multilib abi_x86_32 abi_x86_64" with next part of log:

[ 159/2271] Compiling IDL librpc/idl/auth.idl
 * gcc-config: No gcc profile is active!
/usr/bin/gcc-config: line 72: /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
gcc-config: error: could not run/locate 'i686-pc-linux-gnu-cpp'
 * gcc-config: No gcc profile is active!


Reproducible: Always




Environment contains CPP="i686-pc-linux-gnu-cpp".

Looking more, I found there are probably related to multilib.eclass multilib_toolchain_setup() - adding CPP into exports fix problem (& cannot workaround with ebuild locally). But I cannot found same environment in other multilib-minimal builds, so publish as samba bug. If somebody can motivate multilib.eclass problem - possible, address this bug to other people.
Comment 1 Denis Kaganovich 2016-01-16 15:03:28 UTC
Created attachment 423058 [details, diff]
CPP for multilib.eclass

... but I see no good reason to post it directly to multilib.eclass maintainers
Comment 2 Rafał Mużyło 2016-01-16 16:33:24 UTC
> * gcc-config: No gcc profile is active!

So, almost certainly INVALID.
Comment 3 SpanKY gentoo-dev 2016-01-17 20:05:55 UTC
setting CPP= to a bogus value is invalid.  it doesn't mean we can't add this patch, but you're almost certainly doing it wrong.
Comment 4 Denis Kaganovich 2016-01-18 13:29:42 UTC
(In reply to Rafał Mużyło from comment #2)
> > * gcc-config: No gcc profile is active!
> 
> So, almost certainly INVALID.

gcc-config -l
 [1] x86_64-pc-linux-gnu-5.3.0 *
gcc-config -f

Only for this place it looks "inactive".

PS Yes, I think this patch more for example. This packages use multiple CPP values in various places, but this defaulting is in .pm perl module, later installing, so patching module to disable environment is not solution. But CPP="i686-pc-linux-gnu-cpp" in environment looks strange anymore, even if it must be not used.
Comment 5 Denis Kaganovich 2016-01-25 12:05:58 UTC
This patch looks wrong at least for media-libs/nas-1.9.4 (I have 1 desktop with global ABI_X86="32 64", now "emerge -eq world" and there are 1 from near 700 packages exclusion).
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-29 22:49:04 UTC
>  * gcc-config: No gcc profile is active!

gcc-config does not use gcc-wrapper and uses symlinks directly. That condition should not happen anymore. It might have upset detection of a compiler.

Do you have an example ebuild from ::gentoo that would benefit from CPP setting?
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-21 22:28:42 UTC
Let's close as obsolete. If you think you have ebuilds that need special CPP please reopen or file another bug.