Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245099 - media-video/mplayer-1.0_rc2_p27725-r1 + gcc 4.3.2 - pngenc.c:143: internal compiler error: Segmentation fault
Summary: media-video/mplayer-1.0_rc2_p27725-r1 + gcc 4.3.2 - pngenc.c:143: internal co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-31 21:57 UTC by Laurent G.
Modified: 2009-03-22 10:36 UTC (History)
2 users (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 Laurent G. 2008-10-31 21:57:49 UTC
powerpc-unknown-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-
statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer -maltivec -mabi=altivec -D_REENTRANT -D_LA
RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I/usr/X11R6/include -I/usr/include/freetype2   -c -o pngdec.o pngdec.c
powerpc-unknown-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-
statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer -maltivec -mabi=altivec -D_REENTRANT -D_LA
RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I/usr/X11R6/include -I/usr/include/freetype2   -c -o pngenc.o pngenc.c
pngdec.c: In function 'png_decode_idat':
pngdec.c:357: warning: assignment discards qualifiers from pointer target type
powerpc-unknown-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer -maltivec -mabi=altivec -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I/usr/X11R6/include -I/usr/include/freetype2   -c -o ptx.o ptx.c
powerpc-unknown-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer -maltivec -mabi=altivec -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I/usr/X11R6/include -I/usr/include/freetype2   -c -o qdm2.o qdm2.c
powerpc-unknown-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-
statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer -maltivec -mabi=altivec -D_REENTRANT -D_LA
RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I/usr/X11R6/include -I/usr/include/freetype2   -c -o qdrw.o qdrw.c
pngenc.c: In function 'png_filter_row':
pngenc.c:143: internal compiler error: Segmentation fault

Three tries. Exactly the same spot each time.
But if I then go to the libavcodec directory and launch make, the compile get back on to libavcodec.a !

OK with gcc 4.2.4

Reproducible: Always




CFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
LINGUAS="fr fr_FR"
PORT_LOGDIR="/var/log/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/kdesvn-portage"
#GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ "
#SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
INPUT_DEVICES="keyboard mouse wacom"
VIDEO_CARDS="ati fbdev radeon fglrx"
#ALSA_CARDS="powermac"
ALSA_CARDS="snd-aoa"
ACCEPT_KEYWORDS="~ppc"
FEATURES=ccache
CCACHE_SIZE="2G"
PKGDIR="/in_n_outs/packages"
DISTDIR="/in_n_outs/distfiles"
#FEATURE="keepwork"
#USE="nptl gimpprint"
#USE="arts'
USE="a52 alsa altivec apache2 branding cdr cscope cups dba dri dvd encode fbcon -libffi -firefox flac flash gcj gd gb gpm gtk2 kde kdehiddenvisibility java jikes jpeg gnome mng mozdevelop -mozilla mozsvg nptl nptlonly nsplugin objc
oggvorbis opengl pam png pdf pdflib perl povray ppds qt samba scanner speex spell readline svg tetex theora threads tiff tk udev unicode usb wmf X Xaw3d xine xinerama xml2 -xmms xosd -xprint xulrunner zlib"

APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
Comment 1 Reimar Döffinger 2008-11-02 10:01:22 UTC
> But if I then go to the libavcodec directory and launch make, the compile get
> back on to libavcodec.a !

That uses a different Makefile and probably completely different compilation options.
Most likely just removing -maltivec for that file will make it compile, though obviously gcc needs to be fixed.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-03 03:26:14 UTC
Please specify the ebuild version in the Summary. Also, post your `emerge --info' (not your make.conf). IMO mplayer maintainers should look into this first and then pass it on to PPC porters/toolchain developers.
Comment 3 Laurent G. 2008-11-03 19:23:34 UTC
(In reply to comment #2)
> Please specify the ebuild version in the Summary. Also, post your `emerge
> --info' (not your make.conf). IMO mplayer maintainers should look into this
> first and then pass it on to PPC porters/toolchain developers.
> 


Portage 2.2_rc13 (default/linux/powerpc/ppc32/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1-l0 ppc)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-l0-ppc-7447A,_altivec_supported-with-glibc2.0
Timestamp of tree: Mon, 03 Nov 2008 18:30:01 +0000
distcc 3.0 powerpc-unknown-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
DISTDIR="/in_n_outs/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ "
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/in_n_outs/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 acl alsa altivec apache2 berkdb branding bzip2 cdr cli cracklib crypt cscope cups dba dri dvd encode fbcon flac flash fortran gb gcj gd gdbm gnome gpm gtk2 iconv ipv6 isdnlog java jikes jpeg kde kdehiddenvisibility kdeprefix midi mng mozdevelop mozsvg mudflap ncurses nls nptl nptlonly nsplugin objc oggvorbis opengl openmp pam pcre pdf pdflib perl png povray ppc ppds pppd python qt readline reflection samba scanner session speex spell spl ssl svg sysfs tcpd tetex theora threads tiff tk udev unicode usb wmf xine xinerama xml2 xorg xosd xulrunner zlib" ALSA_CARDS="snd-aoa" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" USERLAND="GNU" VIDEO_CARDS="ati fbdev radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2008-11-05 04:22:40 UTC
need emerge -pv mplayer as well
Comment 5 Laurent G. 2008-11-05 19:47:09 UTC
OK, here you are.

emerge -pv mplayer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/mplayer-1.0_rc2_p27725-r1  USE="X a52 alsa altivec dvd encode fbcon iconv ipv6 jpeg mad mp3 opengl png samba speex theora truetype unicode vorbis xinerama xscreensaver xv xvid (-3dnow) (-3dnowext) -aac -aalib -amrnb -amrwb -arts -bidi -bindist -bl -cddb -cdio -cdparanoia -cpudetection -custom-cflags -custom-cpuopts -debug -dga -dirac -directfb -doc -dts -dv -dvb -dxr3 -enca -esd -ftp -ggi -gif -gtk -jack -joystick -ladspa -libcaca -lirc -live -lzo -md5sum (-mmx) (-mmxext) -mp2 -musepack -nas -nemesi -openal -oss -pnm -pulseaudio -pvr -quicktime -radio (-rar) (-real) -rtc -schroedinger -sdl -srt (-sse) (-sse2) (-ssse3) (-svga) -teletext -tga -v4l -v4l2 -vidix (-win32codecs) -x264 -xanim (-xvmc) -zoran" VIDEO_CARDS="-mga -s3virge -tdfx (-vesa)" 7,953 kB

Total: 1 package (1 reinstall), Size of downloads: 7,953 kB
Comment 6 hiyuh 2008-11-07 14:48:57 UTC
FYI bit, it's reproducable on my ~ppc env too.

I know ICE is a bit difficult to solve one.
So I wouldn't bother though, if devs would know more to investigate this bug, I'd like to help too.
Comment 7 hiyuh 2008-12-02 16:37:23 UTC
FYI, again.
1.0_rc2_p28058 doesn't reproduce this ICE for me.
Comment 8 Joe Jezak (RETIRED) gentoo-dev 2009-03-18 06:42:31 UTC
I can't reproduce this ICE either. So let's close the bug for now. If it's a problem again, please reopen!

Thanks!
Comment 9 Laurent G. 2009-03-18 18:53:08 UTC
media-video/mplayer-20090226.28734-r1 failed
libfaad2/cfft.c:1001: internal compiler error: Segmentation fault
gcc-4.3.3-r1

Comment 10 Ben de Groot (RETIRED) gentoo-dev 2009-03-18 20:38:07 UTC
(In reply to comment #9)
> media-video/mplayer-20090226.28734-r1 failed
> libfaad2/cfft.c:1001: internal compiler error: Segmentation fault
> gcc-4.3.3-r1
> 
That's a different one. Anyway, remerge gcc and try again.
Comment 11 Laurent G. 2009-03-22 10:14:52 UTC
OK with recompiled gcc-4.3.3-r1. Thank you.
But I am a bit lost. How could I have guessed anything had changed since I first emerge gcc-4.3.3-r1 ?

Comment 12 Ben de Groot (RETIRED) gentoo-dev 2009-03-22 10:36:40 UTC
Only by reading the relevant bug report. The maintainer really should have bumped the revision.