Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145849 - transcode-1.0.2-r3 can't be compiled with gcc-4.1.1 using -fweb on amd64
Summary: transcode-1.0.2-r3 can't be compiled with gcc-4.1.1 using -fweb on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 145848 145851 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-01 07:34 UTC by Christian Schmidt
Modified: 2006-10-04 05:15 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 Christian Schmidt 2006-09-01 07:34:00 UTC
The tools from the transcode package (except transcode itself) can not be executed if compiled with the gcc-4.1.1 using -O2 -fweb, but produce SEGV errors. As a workaround, I would recommend stripping -fweb (and -funroll-loops, which according to the gcc docs activates it) from the CFLAGS in the ebuild.

I can't tell if it is a gcc bug or lies in the transcode sources itself. It seems that the code which triggers the SEGV is the cpuid-availability-detection code in the function "static int mm_support(void)" in aclib/cputest.c, which looks correct to me. As all x86_64 CPUs support cpuid anyway, one could alternatively use an #ifdef ARCH_X86 to check only on x86 CPUs, which works as well.

gcc 4.1.1 on x86 compiles transcode with the -fweb without problems.

emerge --info:
Portage 2.1.1_rc1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-rc5 x86_64)
=================================================================
System uname: 2.6.18-rc5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.4
Last Sync: Fri, 01 Sep 2006 03:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fweb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon64 -fweb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ www.ibiblio.org/gentoo/"
LINGUAS="de en en_GB en_US"
PKGDIR="/usr/portage/packages/foxtrot"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/layman/portage-xgl /usr/local/overlays/layman/break-my-gentoo-main"
SYNC="rsync://echo.digadd.de/gentoo-portage"
USE="amd64 3dnowex 7zip X a52 aac alsa amr apache2 avi bitmap-fonts bluetooth bzip2 cdda cddb cdio cdparanoia crypt cups dga dri dts dvd dvdr dvdread elibc_glibc emacs encode escreen ffmpeg firefox flac font-server foomaticdb freetype gd gif glitz gpm gtk gtk2 gtkhtml innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 jpeg kernel_linux libsamplerate linguas_de linguas_en linguas_en_GB linguas_en_US lm_sensors lzo mad matroska memlimit mikmod moznocompose moznoirc mp3 mp4 mpeg multislot mythtv ncurses nls no-seamonkey no_wxgtk1 nptl nptlonly nvidia ogg oggvorbis opengl pam parse-clocks pdf pic png pthreads readline sdk sdl sensord shaper snmp ssl symlink tetex theora threads tiff truetype truetype-fonts type1-fonts usb userland_GNU userlocales v4l v4l2 vcd video_cards_nv video_cards_nvidia vorbis wxwindows x264 xanim xine xinerama xml2 xmms xorg xosd xprint xv xvid xvmc zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-01 07:40:09 UTC
*** Bug 145848 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-01 07:40:41 UTC
*** Bug 145851 has been marked as a duplicate of this bug. ***
Comment 3 Henning Rohlfs 2006-09-01 07:50:15 UTC
Same behaviour on my system. (~amd64 with gcc 4.1.1 and -fweb in my CFLAGS)
The workaround (disabling cpuid) works fine.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-02 00:32:08 UTC
AMD64, feel free to add the filter-flag if you think so.
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2006-10-04 05:15:09 UTC
it's getting filtered now