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

Bug 515556

Summary: sys-devel/distcc-3.2_rc1: distutils does not respect CC/CXX
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: CONFIRMED ---    
Severity: major CC: cluster, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-27 20:52:47 UTC
Created attachment 379806 [details]
Build log

Long story short, /usr/bin/libtool uses whatever random CC/CXX was used when libtool was last installed. So, using system-wide libtool means mixing CC/CXX used when building the package with CC/CXX used when building libtool, with the latter likely no longer installed.

Solution: only possible I know is to use autotools macros to have proper local libtool suited for currently used CC/CXX. Or not use libtool at all.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-27 21:02:38 UTC
Sorry, I put this with other queue of bugs. This one is distutils' fault, actually. It requires the environment to have proper CC/CXX/LDSHARED/LDCXXSHARED set.

@Python: what do we want to do? Provide function which every non-distutils-r1 ebuild building distutils modules is ought to call? Or just export the four unconditionally in python_setup?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-28 12:19:22 UTC
Oh, another possibility is to consider this an upstream issue and expect people who run distutils from within autotools to set proper LDSHARED/LDCXXSHARED.