<?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>51171</bug_id>
          
          <creation_ts>2004-05-15 17:47 0000</creation_ts>
          <short_desc>mono-0.91 fails to build on PPC</short_desc>
          <delta_ts>2004-06-02 13:56:50 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>Development</component>
          <version>unspecified</version>
          <rep_platform>PPC</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>sam@conio.net</reporter>
          <assigned_to>ppc@gentoo.org</assigned_to>
          <cc>dotnet@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>sam@conio.net</who>
            <bug_when>2004-05-15 17:47:27 0000</bug_when>
            <thetext>I&apos;m trying to install mono-0.91 on PPC.  I get the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libgc/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions -D_FILE_OFFSET_BITS=64 -pipe -mcpu=7450 -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -c exceptions-ppc.c -MT exceptions-ppc.lo -MD -MP -MF .deps/exceptions-ppc.TPlo  -fPIC -DPIC -o .libs/exceptions-ppc.lo
exceptions-ppc.c: In function `mono_arch_get_throw_exception_generic&apos;:
exceptions-ppc.c:642: warning: cast from pointer to integer of different size
exceptions-ppc.c:645: warning: passing arg 2 of `ppc_patch&apos; from incompatible pointer type
exceptions-ppc.c:664: warning: passing arg 2 of `ppc_patch&apos; from incompatible pointer type
exceptions-ppc.c: In function `mono_arch_find_jit_info&apos;:
exceptions-ppc.c:779: warning: unused variable `ctx_regs&apos;
exceptions-ppc.c:756: warning: unused variable `ptr&apos;
exceptions-ppc.c:757: warning: unused variable `p&apos;
exceptions-ppc.c: In function `mono_arch_handle_exception&apos;:
exceptions-ppc.c:1082: structure has no member named `uc_regs&apos;
exceptions-ppc.c:1083: structure has no member named `uc_regs&apos;
exceptions-ppc.c:1084: structure has no member named `uc_regs&apos;
exceptions-ppc.c:1085: structure has no member named `uc_regs&apos;
exceptions-ppc.c:1091: structure has no member named `uc_regs&apos;
exceptions-ppc.c:1092: structure has no member named `uc_regs&apos;
exceptions-ppc.c:1093: structure has no member named `uc_regs&apos;
exceptions-ppc.c:1094: structure has no member named `uc_regs&apos;
make[4]: *** [exceptions-ppc.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/mono-0.91/work/mono-0.91/mono/mini&apos;make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/mono-0.91/work/mono-0.91/mono/mini&apos;make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/mono-0.91/work/mono-0.91/mono&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-0.91/work/mono-0.91&apos;
make: *** [all] Error 2


Reproducible: Always
Steps to Reproduce:




# emerge info
Portage 2.0.50-r6 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-ben2-r5)
=================================================================
System uname: 2.4.22-ben2-r5 ppc
Gentoo Base System version 1.4.3.13p1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS=&quot;ppc ~ppc&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt
-fsigned-char -mstring -mmultiple&quot;
CHOST=&quot;powerpc-unknown-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/lib/pbbuttonsd /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt
-fsigned-char -mstring -mmultiple&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache userpriv&quot;
GENTOO_MIRRORS=&quot;http://www.ibiblio.org/pub/Linux/distributions/gentoo
http://gentoo.oregonstate.edu&quot;
MAKEOPTS=&quot;-j2&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.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;X acl alsa apm berkdb bonobo cdr composite cups curl dri dvd emacs esd
ethereal foomaticdb gd gdbm gif gnome gnome-libs gpm gtk gtk2 gtkhtml guile
imlib ipv6 java jpeg ldap libwww mitshm motif mozilla mpeg nls oggvorbis opengl
oss pdflib perl png ppc python radeon readline ruby sdl slang ssl tcltk tcpd
tetex truetype unicode usb video_cards_radeon xine xinerama xmms xosd xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dholm@gentoo.org</who>
            <bug_when>2004-05-15 18:15:48 0000</bug_when>
            <thetext>-mcpu=7450, -fsigned-char, -mstring, -mmultiple are all flags that are known to break code. Please try removing all of those flags and use only -mcpu=7400.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sam@conio.net</who>
            <bug_when>2004-05-15 18:54:38 0000</bug_when>
            <thetext>OK. I get the same error with CFLAGS=&quot;-mcpu 7400&quot;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sam@conio.net</who>
            <bug_when>2004-05-16 03:22:11 0000</bug_when>
            <thetext>I upgraded to the latest gcc (3.2.3-r4) and glibc (2.3.3_pre20040420) and mono built cleanly.  Perhaps the dependency versions should be bumped?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dholm@gentoo.org</who>
            <bug_when>2004-05-16 03:29:43 0000</bug_when>
            <thetext>Ok, great, that saves me some time having to track down the problem. ;)
I will CC dotnet@g.o and let them decide how to update the dependency list.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dholm@gentoo.org</who>
            <bug_when>2004-06-02 13:56:50 0000</bug_when>
            <thetext>Updated the ebuilds of mono 0.91 and 0.95.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>