<?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>89644</bug_id>
          
          <creation_ts>2005-04-19 04:59 0000</creation_ts>
          <short_desc>gmp 4.1.4-r3 doesn&apos;t compile</short_desc>
          <delta_ts>2006-04-12 10:53:03 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo/Alt</product>
          <component>Mac OSX</component>
          <version>unspecified</version>
          <rep_platform>PPC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>105281</blocked>
    
    <blocked>109649</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>tobhahn@web.de</reporter>
          <assigned_to>ppc-macos@gentoo.org</assigned_to>
          <cc>dirk.schoenberger@freenet.de</cc>
    
    <cc>ndimiduk@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>tobhahn@web.de</who>
            <bug_when>2005-04-19 04:59:38 0000</bug_when>
            <thetext>gmp 4.1.4 compiles fine, seems to work. recommand adding ppc-macos keyword.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tobhahn@web.de</who>
            <bug_when>2005-04-19 05:01:42 0000</bug_when>
            <thetext>!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.19 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.9.0 Power Macintosh)
=================================================================
System uname: 7.9.0 Power Macintosh powerpc
macos-20041118
Python:               [2.3 (#1, Sep 13 2003, 00:49:11)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS=&quot;ppc-macos&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -pipe&quot;
CHOST=&quot;powerpc-apple-darwin&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache collision-protect distlocks userpriv&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;ppc emboss ncurses ppc-macos readline&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-09-02 10:10:00 0000</bug_when>
            <thetext>the library compiles (4.1.4-r1), but I cannot find a (simple) tool that compiles
so I can test the library.  Any suggestions?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j4rg0n@gentoo.org</who>
            <bug_when>2005-09-02 13:36:49 0000</bug_when>
            <thetext>Suggestion: media-gfx/surf. All of it&apos;s dependencies are already keyworded or USE masked except for 
gmp.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-09-02 14:13:21 0000</bug_when>
            <thetext>too bad, doesn&apos;t compile for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j4rg0n@gentoo.org</who>
            <bug_when>2005-09-02 14:18:04 0000</bug_when>
            <thetext>Last suggestion I got:

sci-mathematics/singular

Everything else looks like it might break all by itself...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-09-02 14:30:49 0000</bug_when>
            <thetext>somewhere I&apos;m happy those 9 MB&apos;s of gzipped source code don&apos;t compile cleanly too :/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tobhahn@web.de</who>
            <bug_when>2005-09-08 10:54:09 0000</bug_when>
            <thetext>USE=&quot;crypt -java&quot; emerge -a clamav

clamav depends on gmp for crypt. See bug 105281, bug 105278 and bug 105267 on
how to emerge clamav.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-09-10 12:05:31 0000</bug_when>
            <thetext>it may work, but media-gfx/surf doesn&apos;t compile against it:

/usr/include/gmp.h:2090: error: declaration of C function &apos;std::ostream&amp;
operator&lt;&lt;(std::ostream&amp;, const __mpq_struct*)&apos; conflicts with
/usr/include/gmp.h:2089: error: previous declaration &apos;std::ostream&amp;
operator&lt;&lt;(std::ostream&amp;, const __mpz_struct*)&apos; here
/usr/include/gmp.h:2091: error: declaration of C function &apos;std::ostream&amp;
operator&lt;&lt;(std::ostream&amp;, const __mpf_struct*)&apos; conflicts with
/usr/include/gmp.h:2090: error: previous declaration &apos;std::ostream&amp;
operator&lt;&lt;(std::ostream&amp;, const __mpq_struct*)&apos; here
/usr/include/gmp.h:2093: error: declaration of C function &apos;std::istream&amp;
operator&gt;&gt;(std::istream&amp;, __mpq_struct*)&apos; conflicts with
/usr/include/gmp.h:2092: error: previous declaration &apos;std::istream&amp;
operator&gt;&gt;(std::istream&amp;, __mpz_struct*)&apos; here
/usr/include/gmp.h:2094: error: declaration of C function &apos;std::istream&amp;
operator&gt;&gt;(std::istream&amp;, __mpf_struct*)&apos; conflicts with
/usr/include/gmp.h:2093: error: previous declaration &apos;std::istream&amp;
operator&gt;&gt;(std::istream&amp;, __mpq_struct*)&apos; here
make[1]: *** [resultant.o] Error 1
make: *** [all-recursive] Error 1


Looks like the includes it installs are not GCC4 proof.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-09-10 12:36:42 0000</bug_when>
            <thetext>from http://www.swox.com/gmp/

&gt; For GMP 4.1.4, we recommend that you use GCC 3.3.x or older. We&apos;ve had some luck 
&gt; with GCC 3.4.x on some systems, but we have yet to find a system where GCC 4.0.0 
&gt; builds, and neither crashes or miscompiles the GMP sources.

&gt; UPDATE: We&apos;ve had much more luck with GCC 4.0.1. It might actually be a usable
&gt; compiler, but the usual care should be applied.

Something tells me this package has a long way to go on OSX...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2005-10-18 08:21:43 0000</bug_when>
            <thetext>*** Bug 68722 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2006-02-07 05:06:14 0000</bug_when>
            <thetext>just FYI.

http://www.mpfr.org/mpfr-current/ lists powerpc-apple-darwin8.2.0 (G5, gcc 4.0.0)

_p3 fixes configure support.

bug 121968 requests stabilization on other platforms.

MPFR includes a comprehensive test suite.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-02-07 11:21:51 0000</bug_when>
            <thetext>Daniel, thanks for the heads up.  Looks like the last version gives trouble though:

*** Warning: linker path does not have real file for library -lSystemStubs.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libSystemStubs and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libSystemStubs.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
g++ -shared /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/crt2.o  .libs/dummy.o cxx/.libs/isfuns.o cxx/.libs/ismpf.o cxx/.libs/ismpq.o cxx/.libs/ismpz.o cxx/.libs/osdoprnti.o cxx/.libs/osfuns.o cxx/.libs/osmpf.o cxx/.libs/osmpq.o cxx/.libs/osmpz.o  ./.libs/libgmp.dylib -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../.. -lstdc++ -lgcc_s.10.4 -lSystem -lc   -o .libs/libgmpxx.3.0.5.dylib
powerpc-apple-darwin8-g++-4.0.1: unrecognized option &apos;-shared&apos;
/usr/bin/ld: multiple definitions of symbol ___darwin_gcc3_preregister_frame_info
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/crt2.o definition of ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/crt2.o definition of ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text)
collect2: ld returned 1 exit status
make[2]: *** [libgmpxx.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

!!! ERROR: dev-libs/gmp-4.1.4-r3 failed.
Call stack:

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-02-14 11:50:56 0000</bug_when>
            <thetext>to be a bit more precise, 4.1.4-r3 doesn&apos;t compile for me, -r1 does, and dev-lang/parrot (that new perl super engine virtual machine thing) is quite happy with it.  4.1.4-r1 is now in portage as ~ppc-macos.  Keeping bug open for compilation problem on higher version numbers.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-03-24 13:36:00 0000</bug_when>
            <thetext>think it&apos;s fine like this.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>