<?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>118156</bug_id>
          
          <creation_ts>2006-01-07 04:27 0000</creation_ts>
          <short_desc>fails media-gfx/povray-3.6.1-r1 w/ -mcpu=power5 on gcc-4</short_desc>
          <delta_ts>2006-02-08 17:29:30 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>2005.1</version>
          <rep_platform>PPC64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>117482</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>corsair@gentoo.org</reporter>
          <assigned_to>morfic@gentoo.org</assigned_to>
          <cc>halcy0n@gentoo.org</cc>
    
    <cc>ppc64@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2006-01-07 04:27:29 0000</bug_when>
            <thetext>Hi,

media-gfx/povray-3.6.1-r1 does not compile using gcc-4.0.2-r3:

[...]
Making all in base
make[3]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/source/base&apos;
powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o fileinputoutput.o `test -f &apos;fileinputoutput.cpp&apos; || echo &apos;./&apos;`fileinputoutput.cpp
powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o povms.o `test -f &apos;povms.cpp&apos; || echo &apos;./&apos;`povms.cpp
powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o povmscpp.o `test -f &apos;povmscpp.cpp&apos; || echo &apos;./&apos;`povmscpp.cpp
powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o processoptions.o `test -f &apos;processoptions.cpp&apos; || echo &apos;./&apos;`processoptions.cpp
powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o stringutilities.o `test -f &apos;stringutilities.cpp&apos; || echo &apos;./&apos;`stringutilities.cpp
powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o textstreambuffer.o `test -f &apos;textstreambuffer.cpp&apos; || echo &apos;./&apos;`textstreambuffer.cpp
powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o textstream.o `test -f &apos;textstream.cpp&apos; || echo &apos;./&apos;`textstream.cpp
povms.cpp:206: warning: non-local variable &apos;&lt;anonymous struct&gt; POVMSStreamOrderTables&apos; uses anonymous type
{standard input}: Assembler messages:
{standard input}:338: Error: junk at end of line: `1&apos;
{standard input}:1250: Error: junk at end of line: `1&apos;
{standard input}: Assembler messages:
{standard input}:1641: Error: junk at end of line: `2&apos;
{standard input}:1937: Error: junk at end of line: `1&apos;
{standard input}:1959: Error: junk at end of line: `1&apos;
{standard input}:1981: Error: junk at end of line: `1&apos;
{standard input}:2003: Error: junk at end of line: `1&apos;
{standard input}:2457: Error: junk at end of line: `1&apos;
{standard input}:2479: Error: junk at end of line: `1&apos;
{standard input}:2501: Error: junk at end of line: `1&apos;
{standard input}:2523: Error: junk at end of line: `1&apos;
{standard input}:3428: Error: junk at end of line: `1&apos;
{standard input}:3450: Error: junk at end of line: `1&apos;
{standard input}:3472: Error: junk at end of line: `1&apos;
{standard input}:3494: Error: junk at end of line: `1&apos;
{standard input}:3600: Error: junk at end of line: `1&apos;
{standard input}:3622: Error: junk at end of line: `1&apos;
{standard input}:3644: Error: junk at end of line: `1&apos;
{standard input}:3666: Error: junk at end of line: `1&apos;
{standard input}:3906: Error: junk at end of line: `2&apos;
{standard input}:3909: Error: junk at end of line: `2&apos;
{standard input}:3912: Error: junk at end of line: `2&apos;
{standard input}:4134: Error: junk at end of line: `1&apos;
{standard input}:4137: Error: junk at end of line: `1&apos;
{standard input}:4140: Error: junk at end of line: `1&apos;
{standard input}:4297: Error: junk at end of line: `32&apos;
{standard input}:4305: Error: junk at end of line: `32&apos;
{standard input}:4308: Error: junk at end of line: `32&apos;
{standard input}:4542: Error: junk at end of line: `1&apos;
{standard input}:4545: Error: junk at end of line: `32&apos;
{standard input}:4548: Error: junk at end of line: `1&apos;
make[3]: *** [processoptions.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [povmscpp.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/source/base&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/source&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1&apos;
make: *** [all] Error 2

!!! ERROR: media-gfx/povray-3.6.1-r1 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.



$ emerge --info
Portage 2.0.53 (default-linux/ppc/2005.1/ppc64/64bit-userland, gcc-4.0.2, glibc-2.3.6-r2, 2.6.12.2-vios ppc64)
=================================================================
System uname: 2.6.12.2-vios ppc64 POWER5 (gr)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;ppc64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;powerpc64-unknown-linux-gnu&quot;
CFLAGS=&quot;-O3 -pipe -mtune=power5 -mcpu=power5&quot;
CHOST=&quot;powerpc64-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /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/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -pipe -mtune=power5 -mcpu=power5&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LINGUAS=&quot;de&quot;
MAKEOPTS=&quot;-j9&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;ppc64 X a52 acl alsa altivec arts audiofile berkdb bitmap-fonts bzip2 cscope cups dbus dga djbfft dlloader dv dvd dvdr dvdread encode esd exif expat fam fame flac fortran fpx gcj gd gdbm gif gmp gphoto2 gpm graphviz gstreamer gtk gtk2 hal howl ibm ieee1394 imlib2 ipv6 jack jpeg jpeg2k kde kdeenablefinal latex lcms ldap libedit libwww lzo mad mikmod mjpeg mng motif mp3 mpeg mpeg2 mpeg4 mysql nas ncurses network nls nptl nptlonly ogg oggvorbis opengl pam perl png python qt quicktime readline samba ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis xml2 xmms xv yv12 zlib linguas_de userland_GNU kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-01-13 22:39:17 0000</bug_when>
            <thetext>Not a povray bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-01-15 13:03:38 0000</bug_when>
            <thetext>This is actually a known issue upstream that gcc screws up the call to `as`, so we can just work around it by fixing the configure script.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-01-15 13:04:30 0000</bug_when>
            <thetext>Created an attachment (id=77187)
configure.ac patch

This should &quot;fix&quot; the issue by not applying ppc32 flags for ppc64.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2006-01-16 02:26:16 0000</bug_when>
            <thetext>no, this didn&apos;t fixed it. I&apos;m getting the same error.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2006-01-16 02:36:40 0000</bug_when>
            <thetext>I&apos;ve tested comiling with these flags and it works: 
CFLAGS=&quot;-O3 -pipe -mtune=power5&quot;

The &apos;bad flag&apos; seems to be -mcpu=power5. Now, when I look at this line:

powerpc64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix    -pipe -Wno-multichar -O3 -mpowerpc -mcpu=750 -mtune=7450 -mmultiple -mstring -mfused-madd -O3 -pipe -mtune=power5 -mcpu=power5 -c -o textstream.o `test -f &apos;textstream.cpp&apos; || echo &apos;./&apos;`textstream.cpp

I can see -mcpu=750 and -mcpu=power5. Shouldn&apos;t there be only one of them?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-01-16 09:13:38 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; no, this didn&apos;t fixed it. I&apos;m getting the same error.
&gt; 

Did you run autoconf after applying the patch?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2006-01-16 10:26:12 0000</bug_when>
            <thetext>I knew I forgot something...

Compiles fine now!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-02-08 17:29:30 0000</bug_when>
            <thetext>Fixed.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77187</attachid>
            <date>2006-01-15 13:04 0000</date>
            <desc>configure.ac patch</desc>
            <filename>gcc4-configure.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBvdnJheS0zLjYuMS9jb25maWd1cmUuYWMJMjAwNi0wMS0xNSAyMDoxMTo0MS4wMDAwMDAw
MDAgKzAwMDAKKysrIHBvdnJheS0zLjYuMS9jb25maWd1cmUuYWMJMjAwNi0wMS0xNSAyMDoxMTox
OS4wMDAwMDAwMDAgKzAwMDAKQEAgLTEwNTEsMTEgKzEwNTEsMTkgQEAKICAgICAgICMgUFBDIDc0
MDAgKGFrYSBHNCkuICBUbyBiZSBwcmVjaXNlLCB0aGUgdmVjdG9yIGluc3RydWN0aW9ucyBhcmUg
bmV3CiAgICAgICAjIGluIHRoZSBmb3VyIGRpZ2l0IG1vZGVsIG51bWJlciBQb3dlclBDIHByb2Nl
c3NvcnMgKGFrYSBHNCksIGJ1dCBnY2MKICAgICAgICMgY2Fubm90IChhcyBvZiBGZWJydWFyeSAy
MDAzKSB1c2UgdGhlbSBhdXRvbWF0aWNhbGx5IGFueXdheSEgW3RyZl0KLSAgICAgIGZvciBwb3Zf
ZmxhZ3MgaW4gIi1tcG93ZXJwYyIgIi1tY3B1PTc1MCAtbXR1bmU9NzQ1MCIgIi1tbXVsdGlwbGUi
ICItbXN0cmluZyIgIi1tZnVzZWQtbWFkZCI7IGRvCisgICAgICBpZiAiJGhvc3QiICE9IHBvd2Vy
cGM2NCogOyB0aGVuCisgICAgICAgICAgZm9yIHBvdl9mbGFncyBpbiAiLW1wb3dlcnBjIiAiLW1j
cHU9NzUwIC1tdHVuZT03NDUwIjsgZG8KKyAgICAgICAgICAgIFBPVl9QUk9HX0NYWF9GTEFHUyhb
JHBvdl9mbGFnc10sCisgICAgICAgICAgICAgIFtpZiB0ZXN0ICIkc3ViZGlycyI7IHRoZW4geyBQ
T1ZfUFJPR19DQ19GTEFHUyhbJHBvdl9mbGFnc10pIH07IGZpXQorICAgICAgICAgICAgKQorICAg
ICAgICAgIGRvbmUKKyAgICAgIGZpCisgICAgICBmb3IgcG92X2ZsYWdzIGluICItbW11bHRpcGxl
IiAiLW1zdHJpbmciICItbWZ1c2VkLW1hZGQiOyBkbwogICAgICAgICBQT1ZfUFJPR19DWFhfRkxB
R1MoWyRwb3ZfZmxhZ3NdLAotICAgICAgICAgIFtpZiB0ZXN0ICIkc3ViZGlycyI7IHRoZW4geyBQ
T1ZfUFJPR19DQ19GTEFHUyhbJHBvdl9mbGFnc10pIH07IGZpXQorICAgICAgICAgICAgW2lmIHRl
c3QgIiRzdWJkaXJzIjsgdGhlbiB7IFBPVl9QUk9HX0NDX0ZMQUdTKFskcG92X2ZsYWdzXSkgfTsg
ZmldCiAgICAgICAgICkKICAgICAgIGRvbmUKKwogICAgICAgOzsKIAogICAgIHNwYXJjLSopCg==
</data>        

          </attachment>
    </bug>

</bugzilla>