Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79331 - media-sound/gsm fails to emerge on ppc platform
Summary: media-sound/gsm fails to emerge on ppc platform
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-24 06:54 UTC by Kevin
Modified: 2005-05-07 19:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin 2005-01-24 06:55:00 UTC
I have the following packages installed (listed because it seems relevant):
gcc-3.2.3-r4
gcc-3.4.3-r1
gcc-config-1.3.8-r4

Output of gcc-config (with various options) is:
adam@hermes gsm-1.0-pl10 $ gcc-config -c
powerpc-unknown-linux-gnu-3.4.3
adam@hermes gsm-1.0-pl10 $ gcc-config -l
[1] powerpc-unknown-linux-gnu-3.2.3
[2] powerpc-unknown-linux-gnu-3.4.3 *
[3] powerpc-unknown-linux-gnu-3.4.3-vanilla
adam@hermes gsm-1.0-pl10 $ gcc-config -E
export PATH="/usr/powerpc-unknown-linux-gnu/gcc-bin/3.4.3:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/afsws/bin:/etc/afs/afsws:/usr/powerpc-unknown-linux-gnu/gcc-bin/3.4:/usr/X11R6/bin:/opt/ibm-jdk-bin-1.4.2/bin:/opt/ibm-jdk-bin-1.4.2/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin"
adam@hermes gsm-1.0-pl10 $ gcc-config -B
/usr/powerpc-unknown-linux-gnu/gcc-bin/3.4.3
adam@hermes gsm-1.0-pl10 $ gcc-config -L
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3

emerge -v gsm fails as described below.

Reproducible: Always
Steps to Reproduce:
1. emerge -v gsm
2.
3.

Actual Results:  
root@hermes gsm-1.0-pl10 # emerge -pv gsm

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-sound/gsm-1.0.10  0 kB

Total size of downloads: 0 kB
root@hermes gsm-1.0-pl10 # emerge -v gsm
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/gsm-1.0.10 to /
>>> md5 src_uri ;-) gsm-1.0.10.tar.gz
>>> Unpacking source...
>>> Unpacking gsm-1.0.10.tar.gz to /var/tmp/portage/gsm-1.0.10/work
>>> Source unpacked.
gcc -ansi -pedantic -O3 -mcpu=powerpc -c -DNeedFunctionPrototypes=1 -DSASR 
-DUSE_FLOAT_MUL -DFAST    -I./inc src/add.c
gcc -ansi -pedantic -O3 -mcpu=powerpc -c -DNeedFunctionPrototypes=1 -DSASR 
-DUSE_FLOAT_MUL -DFAST    -I./inc src/code.c
gcc -ansi -pedantic -O3 -mcpu=powerpc -c -DNeedFunctionPrototypes=1 -DSASR 
-DUSE_FLOAT_MUL -DFAST    -I./inc src/debug.c
gcc-config error: Could not run/locate "gcc"
make: *** [src/debug.o] Error 1
make: *** Waiting for unfinished jobs....
gcc-config error: Could not run/locate "gcc"
make: *** [src/add.o] Error 1
gcc-config error: Could not run/locate "gcc"
make: *** [src/code.o] Error 1

!!! ERROR: media-sound/gsm-1.0.10 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

root@hermes gsm-1.0-pl10 #


And yet:
root@hermes gsm-1.0-pl10 # pwd
/var/tmp/portage/gsm-1.0.10/work/gsm-1.0-pl10
root@hermes gsm-1.0-pl10 # diff $PWD/Makefile /home/adam/gsm/gsm-1.0-pl10/Makefile
root@hermes gsm-1.0-pl10 #

root@hermes gsm-1.0-pl10 # cd /home/adam/gsm/gsm-1.0-pl10/
root@hermes gsm-1.0-pl10 # make addtst
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc add-test/add_test.c
gcc -ansi -pedantic   -o ./add-test/add ./add-test/add_test.o
./add-test/add < ./add-test/add_test.dta > /dev/null
addtst: Done.
root@hermes gsm-1.0-pl10 # make
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/add.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/code.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/debug.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/decode.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/long_term.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/lpc.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/preprocess.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/rpe.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_destroy.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_decode.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_encode.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_explode.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_implode.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_create.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_print.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/gsm_option.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/short_term.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/table.c
rm  ./lib/libgsm.a
rm: cannot remove `./lib/libgsm.a': No such file or directory
make: [lib/libgsm.a] Error 1 (ignored)
ar cr ./lib/libgsm.a ./src/add.o ./src/code.o ./src/debug.o ./src/decode.o
./src/long_term.o ./src/lpc.o ./src/preprocess.o ./src/rpe.o ./src/gsm_destroy.o
./src/gsm_decode.o ./src/gsm_encode.o ./src/gsm_explode.o ./src/gsm_implode.o
./src/gsm_create.o ./src/gsm_print.o ./src/gsm_option.o ./src/short_term.o
./src/table.o
ranlib ./lib/libgsm.a
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/toast.c
src/toast.c: In function `update_times':
src/toast.c:389: warning: passing arg 2 of `utime' from incompatible pointer type
src/toast.c: In function `open_output':
src/toast.c:510: warning: assignment makes pointer from integer without a cast
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/toast_lin.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/toast_ulaw.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/toast_alaw.c
gcc -ansi -pedantic -c -O2 -DNeedFunctionPrototypes=1 -DSASR  -DUSE_FLOAT_MUL
-DFAST    -I./inc src/toast_audio.c
gcc -ansi -pedantic   -o ./bin/toast ./src/toast.o ./src/toast_lin.o
./src/toast_ulaw.o ./src/toast_alaw.o ./src/toast_audio.o ./lib/libgsm.a
rm  ./bin/tcat
rm: cannot remove `./bin/tcat': No such file or directory
make: [bin/tcat] Error 1 (ignored)
ln ./bin/toast ./bin/tcat
rm  ./bin/untoast
rm: cannot remove `./bin/untoast': No such file or directory
make: [bin/untoast] Error 1 (ignored)
ln ./bin/toast ./bin/untoast
.: Done.
root@hermes gsm-1.0-pl10 #

So the Makefiles are identical (no patching by Gentoo ebuild) and I can
build the package by hand, but the emerge -v gsm step fails.  I don't
understand gcc-config very well, but that's clearly a part of the problem.
I have the impression that it's no problem to have two versions of a package
(like gcc) installed at once, but I'm not quite sure how I would make use of
one (or the other) if I wanted to, nor how I should safely unmerge one of
these gcc packages (so as not to break my ability to build software altogether).

I'll add that the package does emerge successfully on an x86 platform with
similar circumstances (two versions of gcc installed).

Expected Results:  
Success.

Portage 2.0.51-r14 (default-ppc-2004.1, gcc-3.4.3, glibc-2.3.3.20040420-r2,
2.6.9-gentoo-r1kf ppc)
=================================================================
System uname: 2.6.9-gentoo-r1kf ppc 7450, altivec supported
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3 [2.3.3 (#1, Nov 11 2004, 08:16:19)]
distcc 2.17 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.2 [enabled]
dev-lang/python:     2.3.3
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.90.0.3-r3
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=powerpc"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=powerpc"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="ftp://mirror.nutsmaas.nl/gentoo/ http://gentoo.mirrored.ca/
http://mirror.datapipe.net/gentoo http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aac aalib acl adns alsa altivec apache2 apm arts artworkextra
audiofile bash-completion bcmath berkdb bidi blas bonobo bzlib calendar caps cdb
cddb cdparanoia cpdflib crypt cscope ctype cups curl curlwrappers dba dbase dbm
dbx dga dio directfb divx4linux dlloader doc dvb dvd dvdread edl emacs emoticon
empress empress-bcs encode esd ethereal evo exif f2c f77 fam fastcgi fbcon fftw
flac flash flatfile foomatic fortran fpx freetds frontbase ftp gatos gb gd gdbm
ggi gif ginac gmp gnome gnome-libs gnustep gnutls gphoto2 gpm graphviz gsnd
gstreamer gtk gtk2 gtkhtml guile hardened hardenedphp hyperwave-api iconv idea
imagemagick imap imlib inifile innodb interbase iodbc ipv6 jabber jack java jbig
jikes jpeg junit kde kerberos krb4 ladcca lapack lcms ldap leim libcaca libgda
libwww lirc live lzo m17n-lib mad maildir mailwrapper matroska mbox mcal mcve
memlimit mhash mikmod milter mime ming mng motif mozilla mpeg mpi msession mssql
mysql mythtv nas ncurses network nis nls nntp objc oci8 odbc offensive ofx
oggvorbis openal opengl oracle7 oss ovrimos pam pam-mysql pcmcia pcntl pcre pda
pdflib perl php pic pie plotutils png pnp portaudio posix ppc ppds prelude
profile python qdbm qt quicktime readline recode rtc ruby samba sapdb sasl
scanner sdl session shared sharedmem simplexml slang slp sndfile snmp soap
sockets socks5 speex spell spl sqlite ssl svg sysvipc szip tcltk tcpd tetex tga
theora tidy tiff tokenizer truetype trusted uim unicode usb v4l v4l2 vda vhosts
wddx wmf wxwindows xanim xface xim xine xinerama xml xml2 xmlrpc xmms xosd xpm
xscreensaver xsl xv xvid yaz zeo zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Luca Barbato gentoo-dev 2005-02-02 06:08:05 UTC
here merged fine on the pegII (stable profile)
once I have back the tibook I'll try with the ~ profile
Comment 2 Kevin 2005-02-02 06:12:30 UTC
You say the pegII merged fine.  Did you have multiple gcc versions installed?

This is a tibook with multiple gcc versions and from the error report, the multiple versions seem to be implicated in the problem.  Same situation on an x86 platform does fine, but not here.  Thanks for looking at this.
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2005-04-09 16:19:43 UTC
I'm not sure why this would fail, did you just upgrade gcc as well?  
Also, was distcc turned on when the compile failed?  I see that you've got distcc turned on, but disabled for the emerge info.

Thanks
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2005-05-07 19:00:39 UTC
I'm going to close this bug, I can't reproduce it.  Please reopen if it's still a problem.