Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515556 - sys-devel/distcc-3.2_rc1: distutils does not respect CC/CXX
Summary: sys-devel/distcc-3.2_rc1: distutils does not respect CC/CXX
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-27 20:52 UTC by Michał Górny
Modified: 2022-05-31 07:02 UTC (History)
2 users (show)

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


Attachments
Build log (sys-devel:distcc-3.2_rc1:20140627-121039.log,149.81 KB, text/x-log)
2014-06-27 20:52 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
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.