Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89644 - dev-libs/gmp-4.1.4-r3 doesn't compile
Summary: dev-libs/gmp-4.1.4-r3 doesn't compile
Status: RESOLVED LATER
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
: 68722 (view as bug list)
Depends on:
Blocks: 105281 109649
  Show dependency tree
 
Reported: 2005-04-19 04:59 UTC by Tobias Hahn
Modified: 2015-04-08 06:59 UTC (History)
2 users (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 Tobias Hahn 2005-04-19 04:59:38 UTC
gmp 4.1.4 compiles fine, seems to work. recommand adding ppc-macos keyword.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tobias Hahn 2005-04-19 05:01:42 UTC
!!! 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="ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss ncurses ppc-macos readline"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 2 Fabian Groffen gentoo-dev 2005-09-02 10:10:00 UTC
the library compiles (4.1.4-r1), but I cannot find a (simple) tool that compiles
so I can test the library.  Any suggestions?
Comment 3 Lina Pezzella (RETIRED) gentoo-dev 2005-09-02 13:36:49 UTC
Suggestion: media-gfx/surf. All of it's dependencies are already keyworded or USE masked except for 
gmp.
Comment 4 Fabian Groffen gentoo-dev 2005-09-02 14:13:21 UTC
too bad, doesn't compile for me.
Comment 5 Lina Pezzella (RETIRED) gentoo-dev 2005-09-02 14:18:04 UTC
Last suggestion I got:

sci-mathematics/singular

Everything else looks like it might break all by itself...
Comment 6 Fabian Groffen gentoo-dev 2005-09-02 14:30:49 UTC
somewhere I'm happy those 9 MB's of gzipped source code don't compile cleanly too :/
Comment 7 Tobias Hahn 2005-09-08 10:54:09 UTC
USE="crypt -java" emerge -a clamav

clamav depends on gmp for crypt. See bug 105281, bug 105278 and bug 105267 on
how to emerge clamav.
Comment 8 Fabian Groffen gentoo-dev 2005-09-10 12:05:31 UTC
it may work, but media-gfx/surf doesn't compile against it:

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


Looks like the includes it installs are not GCC4 proof.
Comment 9 Fabian Groffen gentoo-dev 2005-09-10 12:36:42 UTC
from http://www.swox.com/gmp/

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

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

Something tells me this package has a long way to go on OSX...
Comment 10 Fabian Groffen gentoo-dev 2005-10-18 08:21:43 UTC
*** Bug 68722 has been marked as a duplicate of this bug. ***
Comment 11 Daniel Black (RETIRED) gentoo-dev 2006-02-07 05:06:14 UTC
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.
Comment 12 Fabian Groffen gentoo-dev 2006-02-07 11:21:51 UTC
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 '-shared'
/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.
Comment 13 Fabian Groffen gentoo-dev 2006-02-14 11:50:56 UTC
to be a bit more precise, 4.1.4-r3 doesn'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.
Comment 14 Fabian Groffen gentoo-dev 2006-03-24 13:36:00 UTC
think it's fine like this.