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