<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>145849</bug_id>
          
          <creation_ts>2006-09-01 07:34 0000</creation_ts>
          <short_desc>transcode-1.0.2-r3 can&apos;t be compiled with gcc-4.1.1 using -fweb on amd64</short_desc>
          <delta_ts>2006-10-04 05:15:09 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.1</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@digadd.de</reporter>
          <assigned_to>amd64@gentoo.org</assigned_to>
          <cc>maxxer@yetopen.it</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@digadd.de</who>
            <bug_when>2006-09-01 07:34:00 0000</bug_when>
            <thetext>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&apos;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 &quot;static int mm_support(void)&quot; 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=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon64 -fweb -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O2 -march=athlon64 -fweb -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.easynet.nl/mirror/gentoo/ www.ibiblio.org/gentoo/&quot;
LINGUAS=&quot;de en en_GB en_US&quot;
PKGDIR=&quot;/usr/portage/packages/foxtrot&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage /usr/local/overlays/layman/portage-xgl /usr/local/overlays/layman/break-my-gentoo-main&quot;
SYNC=&quot;rsync://echo.digadd.de/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-09-01 07:40:09 0000</bug_when>
            <thetext>*** Bug 145848 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-09-01 07:40:41 0000</bug_when>
            <thetext>*** Bug 145851 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>honk-online@gmx.de</who>
            <bug_when>2006-09-01 07:50:15 0000</bug_when>
            <thetext>Same behaviour on my system. (~amd64 with gcc 4.1.1 and -fweb in my CFLAGS)
The workaround (disabling cpuid) works fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-10-02 00:32:08 0000</bug_when>
            <thetext>AMD64, feel free to add the filter-flag if you think so.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blubb@gentoo.org</who>
            <bug_when>2006-10-04 05:15:09 0000</bug_when>
            <thetext>it&apos;s getting filtered now</thetext>
          </long_desc>
      
    </bug>

</bugzilla>