Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32755 - binutils 2.14.90.0.7. ld segfaults
Summary: binutils 2.14.90.0.7. ld segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
: 32758 32867 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-04 17:21 UTC by daRonin
Modified: 2006-02-04 06:04 UTC (History)
2 users (show)

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


Attachments
test ebuild (binutils-2.14.90.0.7.ebuild,5.44 KB, text/plain)
2003-11-06 16:06 UTC, Luca Barbato
Details
patch needed (binutils-2.14.90.0.7-ppc-reloc.patch,220.34 KB, application/octet-stream)
2003-11-06 16:20 UTC, Luca Barbato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daRonin 2003-11-04 17:21:57 UTC
ld segfaults with error 11 while emerging ffmpeg and/or transcode.
Tried downgrading to -mcpu=7400. No luck.

Downgrading to binutils-2.14.90.0.6-r7 fixes the problem.

Reproducible: Always
Steps to Reproduce:
1. emerge ffmpeg

Actual Results:  
gcc -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -maltivec -mabi=altivec -Wall
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-c -o ppc/mpegvideo_altivec.o ppc/mpegvideo_altivec.c 
gcc -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -maltivec -mabi=altivec -Wall
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-c -o ppc/idct_altivec.o ppc/idct_altivec.c 
gcc -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -maltivec -mabi=altivec -Wall
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-c -o ppc/fft_altivec.o ppc/fft_altivec.c 
gcc -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -maltivec -mabi=altivec -Wall
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-c -o ppc/gmc_altivec.o ppc/gmc_altivec.c 
rm -f libavcodec.a
ar rc libavcodec.a common.o utils.o mem.o allcodecs.o mpegvideo.o jrevdct.o
jfdctfst.o jfdctint.o mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o
motion_est.o imgconvert.o imgresample.o mpeg12.o mpegaudiodec.o pcm.o
simple_idct.o ratecontrol.o adpcm.o eval.o dv.o error_resilience.o fft.o mdct.o
mace.o huffyuv.o cyuv.o opts.o raw.o h264.o golomb.o vp3.o asv1.o 4xm.o cabac.o
ffv1.o ra144.o ra288.o vcr1.o cljr.o roqvideo.o dpcm.o interplayvideo.o xan.o
h263.o msmpeg4.o h263dec.o svq1.o rv10.o wmadec.o indeo3.o a52dec.o
libpostproc/postprocess.o mp3lameaudio.o oggvorbis.o ppc/dsputil_ppc.o
ppc/mpegvideo_ppc.o ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o
ppc/idct_altivec.o ppc/fft_altivec.o ppc/gmc_altivec.o  
ranlib libavcodec.a
gcc -shared -o libavcodec.so common.o utils.o mem.o allcodecs.o mpegvideo.o
jrevdct.o jfdctfst.o jfdctint.o mpegaudio.o ac3enc.o mjpeg.o resample.o
dsputil.o motion_est.o imgconvert.o imgresample.o mpeg12.o mpegaudiodec.o pcm.o
simple_idct.o ratecontrol.o adpcm.o eval.o dv.o error_resilience.o fft.o mdct.o
mace.o huffyuv.o cyuv.o opts.o raw.o h264.o golomb.o vp3.o asv1.o 4xm.o cabac.o
ffv1.o ra144.o ra288.o vcr1.o cljr.o roqvideo.o dpcm.o interplayvideo.o xan.o
h263.o msmpeg4.o h263dec.o svq1.o rv10.o wmadec.o indeo3.o a52dec.o
libpostproc/postprocess.o mp3lameaudio.o oggvorbis.o ppc/dsputil_ppc.o
ppc/mpegvideo_ppc.o ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o
ppc/idct_altivec.o ppc/fft_altivec.o ppc/gmc_altivec.o  -lm -lz -ldl -lmp3lame
-lvorbis -lvorbisenc 
collect2: ld terminated with signal 11 [Segmentation fault]
make[1]: *** [libavcodec.so] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ffmpeg-0.4.8/work/ffmpeg-0.4.8/libavcodec'
make: *** [lib] Error 2

!!! ERROR: media-video/ffmpeg-0.4.8 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! make failed.


Expected Results:  
expected a succesful emerge

Portage 2.0.49-r15 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-ben2)
=================================================================
System uname: 2.4.22-ben2 ppc 
Gentoo Base System version 1.4.3.11
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/mnt/bintree/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="oss dvd xv jpeg nls mitshm gif png truetype ppc cups foomaticdb gnome-libs
alsa gdbm berkdb slang readline arts tetex tcltk guile mysql X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis qt kde motif opengl mozilla cdr crypt
dvdr encode java mpeg ncurses radeon spell usb WindowMaker xmms -gnome -gtk"
Comment 1 christoph wegener 2003-11-06 07:54:51 UTC
There is a bug report for debian here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=219187

it was reported upstream at the binutils list (including a fix):

http://sources.redhat.com/ml/binutils/2003-11/msg00059.html

maybe this helps. my ppc machine has no spare test cycles atm.
so i hope to be able to test the fix mentioned in the binutils list later.
Comment 2 Luca Barbato gentoo-dev 2003-11-06 15:07:23 UTC
*** Bug 32867 has been marked as a duplicate of this bug. ***
Comment 3 Luca Barbato gentoo-dev 2003-11-06 15:08:50 UTC
*** Bug 32758 has been marked as a duplicate of this bug. ***
Comment 4 Luca Barbato gentoo-dev 2003-11-06 16:06:49 UTC
Created attachment 20360 [details]
test ebuild
Comment 5 Luca Barbato gentoo-dev 2003-11-06 16:20:02 UTC
Created attachment 20361 [details]
patch needed

place it in files/2.14/
Comment 6 christoph wegener 2003-11-06 18:28:27 UTC
the patch in attachment 20361 [details] fixes the segfault problem.

i successfully emerged all the mentioned ebuilds (gst-plugins, transcode,
ffmpeg).

the ebuild in attachment 20360 [details] should go into portage and marked as ~ppc.

thanks luca for merging the different patches from the binutils mailing list.
Comment 7 Luca Barbato gentoo-dev 2003-11-06 19:21:25 UTC
In portage.