Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16116 - mpg123 distcc cross compile failed
Summary: mpg123 distcc cross compile failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Zach Welch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-20 21:11 UTC by Tom Ward
Modified: 2003-03-19 23:17 UTC (History)
1 user (show)

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


Attachments
Removes CC=gcc from the Makefile. (mpg123-0.59r-make.diff,7.65 KB, patch)
2003-03-13 01:36 UTC, James Boddington (RETIRED)
Details | Diff
ebuild (mpg123-0.59r-r1.ebuild,1.39 KB, text/plain)
2003-03-13 01:38 UTC, James Boddington (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Ward 2003-02-20 21:11:49 UTC
When I try to emerge mpg123 the compile fails. I am using portage with distcc on ppc, 
and a distcc server on athlon, with a cross compiler. The athlon requires a fully 
qualified gcc, to ensure it uses the cross compiler rather than the native compiler. The 
mpg123 makefile contains an explicit reference to "gcc", so the distcc server invokes 
the wrong compiler, causing the error. This will affect all platforms using distcc with 
multiple architectures. A simple fix is to adjust the mpg123-0.59r-r1 ebuild with: 
 
26,28d25 
< #             ensure compilation on cross platform distc configs... 
< #             ...and borks the Makefile in the process 
<               -e "s:gcc:${CHOST}-gcc:" \ 
 
But this makes a real mess of mpg123's Makefile. A better solution would modify only 
the necessary part of the Makefile. 

Reproducible: Always
Steps to Reproduce:
1. Attempt to emerge mpg123 with distcc enabled and a cross compiling distcc server 
2. File bug 
3. 
Actual Results:  
Compilation fails, due to incorrect binary format. 

Expected Results:  
Compiled. 

Portage 2.0.46-r12 (default-ppc-1.4, gcc-3.2.1, glibc-2.3.1-r2) 
================================================================= 
System uname: 2.4.20-r1 ppc 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo 
http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config 
/usr/kde/3/share/config 
/usr/kde/3.1/share/config:/usr/kde/3/share/config:/usr/kde/3/share/config:/opt/glftpd/etc:/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="oss dvd xv libwww jpeg nls mitshm gif gnome kde mozilla png truetype ppc 
gnome-libs gdbm berkdb slang readline arts guile X sdl gpm tcpd pam ssl perl python 
esd imlib oggvorbis gtk qt motif opengl" 
COMPILER="gcc3" 
CHOST="powerpc-unknown-linux-gnu" 
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" 
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" 
ACCEPT_KEYWORDS="ppc" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="ccache distcc"
Comment 1 James Boddington (RETIRED) gentoo-dev 2003-03-13 01:36:20 UTC
Created attachment 9332 [details, diff]
Removes CC=gcc from the Makefile.

This patch removes the CC=gcc references from the Makefile. Any line that has
CC=cc or some other compiler is not touched by this patch.
Comment 2 James Boddington (RETIRED) gentoo-dev 2003-03-13 01:38:18 UTC
Created attachment 9333 [details]
ebuild

This ebuild applies the Makefile patch.
Comment 3 James Boddington (RETIRED) gentoo-dev 2003-03-13 01:47:42 UTC
This is what I have done on my machines. 
With this patch applied CC can be specified on the command line. 
 
CC=i686-pc-linux-gnu-gcc emerge mpg123 
 
This will now allow use the full name for the local compiler so the remote distccd uses 
the correct compiler. 
Comment 4 Zach Welch (RETIRED) gentoo-dev 2003-03-19 23:17:48 UTC
This patch has been added to portage as -r2.  It looks great.