Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Problems building mpfr during boostrap on OSX
Date: Mon, 20 Oct 2008 06:15:54
Message-Id: 20081020061544.GA29568@gentoo.org
In Reply to: Re: [gentoo-alt] Problems building mpfr during boostrap on OSX by Logan Bowers
1 On 19-10-2008 18:37:38 -0700, Logan Bowers wrote:
2 > Hmmmm, no luck using latest_tree (and binutils-apple). mpfr still fails
3 > to compile with the following error:
4 >
5 > ld warning: codegen in ___gmpn_popcount (offset 0x00000007) prevents
6 > image from loading in dyld shared cache
7 > ld warning: codegen in ___gmpn_popcount (offset 0x0000000E) prevents
8 > image from loading in dyld shared cache
9 > ld warning: codegen in ___gmpn_popcount (offset 0x00000015) prevents
10 > image from loading in dyld shared cache
11 > ld: absolute addressing (perhaps -mdynamic-no-pic) used in ___gmpn_add_n
12 > from /usr/local/lib/libgmp.a(add_n.o) not allowed in slidable image. Use
13 > '-read_only_relocs suppress' to enable text relocs
14 > collect2: ld returned 1 exit status
15 > make[1]: *** [libmpfr.la] Error 1
16 > make[1]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/dev-libs/
17 > mpfr-2.3.2/work/mpfr-2.3.2'
18 > make: *** [all-recursive] Error 1
19 >
20 > I did find a workaround though. From poking around the Internet it
21 > looks like it's related to the quirky behavior of Apple's compiler/
22
23 It makes me wonder which version of Xcode you have installed. You may
24 have a bug in there, whereas a newer edition fixes the problem.
25
26 > linker that the gmp folks complain about (http://gmplib.org/macos.html).
27 > It also looks like Apple's toolchain behaves better on x86-64 machines;
28 > is it possible that gmp is using the 64-bit ABI on your MBP? (mine is
29 > only a CoreDuo and thus 32-bit)
30
31 Well, since also on x86_64 the compiler is a 32-bits targetting
32 compiler, I doubt this makes a difference.
33
34 > I was able to work around the problem by building only static versions
35 > of gmp and mpfr. In each case I added --disable-shared to the command
36 > line of ./configure and the libs built successfully.
37
38 The compiler built on top of those?
39
40
41 --
42 Fabian Groffen
43 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] Problems building mpfr during boostrap on OSX Logan Bowers <logan@×××××××××××.com>