1 |
Hmmmm, no luck using latest_tree (and binutils-apple). mpfr still |
2 |
fails to compile with the following error: |
3 |
|
4 |
ld warning: codegen in ___gmpn_popcount (offset 0x00000007) prevents |
5 |
image from loading in dyld shared cache |
6 |
ld warning: codegen in ___gmpn_popcount (offset 0x0000000E) prevents |
7 |
image from loading in dyld shared cache |
8 |
ld warning: codegen in ___gmpn_popcount (offset 0x00000015) prevents |
9 |
image from loading in dyld shared cache |
10 |
ld: absolute addressing (perhaps -mdynamic-no-pic) used in |
11 |
___gmpn_add_n from /usr/local/lib/libgmp.a(add_n.o) not allowed in |
12 |
slidable image. Use '-read_only_relocs suppress' to enable text relocs |
13 |
collect2: ld returned 1 exit status |
14 |
make[1]: *** [libmpfr.la] Error 1 |
15 |
make[1]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/dev-libs/ |
16 |
mpfr-2.3.2/work/mpfr-2.3.2' |
17 |
make: *** [all-recursive] Error 1 |
18 |
* ERROR: dev-libs/mpfr-2.3.2 failed: |
19 |
* emake failed |
20 |
* |
21 |
* Call stack: |
22 |
* ebuild.sh: 49: <call src_compile> |
23 |
* environment:2091: <call _eapi0_src_compile> |
24 |
* ebuild.sh: 616: <call _eapi2_src_compile> |
25 |
* ebuild.sh: 650: emake || die "emake failed" |
26 |
* |
27 |
* If you need support, post the topmost build error, and the call |
28 |
stack if relevant. |
29 |
* build log: '/Volumes/Gentoo/var/tmp/portage/dev-libs/mpfr-2.3.2/ |
30 |
temp/build.log' |
31 |
* ebuild environment: '/Volumes/Gentoo/var/tmp/portage/dev-libs/ |
32 |
mpfr-2.3.2/temp/environment' |
33 |
* S: '/Volumes/Gentoo/var/tmp/portage/dev-libs/mpfr-2.3.2/work/ |
34 |
mpfr-2.3.2' |
35 |
|
36 |
I did find a workaround though. From poking around the Internet it |
37 |
looks like it's related to the quirky behavior of Apple's compiler/ |
38 |
linker that the gmp folks complain about (http://gmplib.org/ |
39 |
macos.html). It also looks like Apple's toolchain behaves better on |
40 |
x86-64 machines; is it possible that gmp is using the 64-bit ABI on |
41 |
your MBP? (mine is only a CoreDuo and thus 32-bit) |
42 |
|
43 |
I was able to work around the problem by building only static versions |
44 |
of gmp and mpfr. In each case I added --disable-shared to the command |
45 |
line of ./configure and the libs built successfully. |
46 |
|
47 |
Can anyone else repro this? |
48 |
|
49 |
Logan Bowers |
50 |
|
51 |
On Oct 18, 2008, at 12:42 AM, Fabian Groffen wrote: |
52 |
|
53 |
> I build from the current snapshot a few weeks ago on my own MacBook |
54 |
> Pro |
55 |
> without problems, however by that time odcctools was still the way to |
56 |
> go. |
57 |
> |
58 |
> I'll create a new snapshot today, with which I've successfully |
59 |
> bootstrapped on my iMac G5. If it's not too much efforts, please |
60 |
> restart the bootstrap process. You need the following changes: |
61 |
> |
62 |
> Code Listing 1.3: |
63 |
> ./bootstrap-prefix.sh $EPREFIX tree -> ./bootstrap-prefix.sh |
64 |
> $EPREFIX latest_tree |
65 |
> Code Listing 1.8: |
66 |
> emerge --oneshot --nodeps odcctools -> emerge --oneshot --nodeps |
67 |
> binutils-apple |
68 |
> |
69 |
> |
70 |
> On 17-10-2008 16:15:25 -0700, Logan Bowers wrote: |
71 |
>> John, |
72 |
>> |
73 |
>> Thanks for the info. That solution, however, leads to problem |
74 |
>> #2. :) I |
75 |
>> masked out gcc-apple 4.2, so `emerge gcc-apple` attempts to emerge |
76 |
>> sys-devel/gcc-apple-4.0.1_p5488 but that fails with: |
77 |
>> |
78 |
>> checking for getpagesize... (cached) yes |
79 |
>> checking for working mmap... yes |
80 |
>> checking for working strncmp... yes |
81 |
>> updating cache ./config.cache |
82 |
>> configure: creating ./config.status |
83 |
>> config.status: creating Makefile |
84 |
>> config.status: creating testsuite/Makefile |
85 |
>> config.status: creating config.h |
86 |
>> config.status: executing default commands |
87 |
>> * ERROR: sys-devel/gcc-apple-4.0.1_p5488 failed: |
88 |
>> * emake failed |
89 |
>> * |
90 |
>> * Call stack: |
91 |
>> * ebuild.sh: 49: <call src_compile> |
92 |
>> * environment:4751: emake bootstrap || die "emake failed" |
93 |
>> |
94 |
>> It doesn't seem to give any error at all and I have no idea what to |
95 |
>> do |
96 |
>> with that. :/ Does it generate an error log somewhere? |
97 |
>> |
98 |
>> |
99 |
>> Logan Bowers |
100 |
>> |
101 |
>> On Oct 17, 2008, at 1:59 PM, John Gibson wrote: |
102 |
>> |
103 |
>>> On Oct 17, 2008, at 4:14 PM, Logan Bowers wrote: |
104 |
>>> |
105 |
>>>> Hello all, |
106 |
>>>> |
107 |
>>>> I'm unsuccessfully attempting to boostrap gentoo-alt on my MacBook |
108 |
>>>> Pro (CoreDuo, Leopard). I can make it to code listing 1.14 in the |
109 |
>>>> instructions |
110 |
>>>> (http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap- |
111 |
>>>> macos.xml |
112 |
>>>> ) before I get the following build error when compiling dev-libs/ |
113 |
>>>> mpfr: |
114 |
>>>> |
115 |
>>>> ld: warning codegen in ___gmpn_popcount (offset 0x00000007) |
116 |
>>>> prevents |
117 |
>>>> image from loading in dyld shared cache |
118 |
>>>> ld: warning codegen in ___gmpn_popcount (offset 0x0000000E) |
119 |
>>>> prevents |
120 |
>>>> image from loading in dyld shared cache |
121 |
>>>> ld: warning codegen in ___gmpn_popcount (offset 0x00000015) |
122 |
>>>> prevents |
123 |
>>>> image from loading in dyld shared cache |
124 |
>>>> ld: absolute addressing (perhaps -mdynamic-no-pic) used in |
125 |
>>>> ___gmpn_add_n from /usr/local/lib/libgmp.a(add_n.o) not allowed in |
126 |
>>>> slidable image |
127 |
>>>> collect2: ld returned 1 exit status |
128 |
>>>> make[1]: *** [libmpfr.la] Error 1 |
129 |
>>>> make[1]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/dev- |
130 |
>>>> libs/mpfr-2.3.1/work/mpfr-2.3.1' |
131 |
>>>> make: *** [all-recursive] Error 1 |
132 |
>>>> * ERROR: dev-libs/mpfr-2.3.1 failed: |
133 |
>>>> * emake failed |
134 |
>>>> * |
135 |
>>>> |
136 |
>>>> For reference: |
137 |
>>>> |
138 |
>>>> bash-3.2$ emerge mpfr gmp -pv |
139 |
>>>> |
140 |
>>>> These are the packages that would be merged, in order: |
141 |
>>>> |
142 |
>>>> Calculating dependencies... done! |
143 |
>>>> [ebuild R ] dev-libs/gmp-4.2.4 USE="-nocxx" 0 kB |
144 |
>>>> [ebuild N ] dev-libs/mpfr-2.3.2 0 kB |
145 |
>>>> |
146 |
>>>> Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 kB |
147 |
>>>> |
148 |
>>>> I've tried fiddling with the but CFLAGS in an attempt to get gmp to |
149 |
>>>> compile PIC but to no avail. Anyone have some ideas on other |
150 |
>>>> things |
151 |
>>>> to try? Thanks! |
152 |
>>>> |
153 |
>>>> Logan Bowers |
154 |
>>> |
155 |
>>> On my CoreDuo Tiger machine IIRC gmp and mpfr are only required by |
156 |
>>> later versions of gcc. You might want to try restricting your |
157 |
>>> version |
158 |
>>> of gcc (say with package.mask) to 4.2 or 4.0 instead of the latest |
159 |
>>> version. |
160 |
>>> |
161 |
>>> John |
162 |
>>> |
163 |
>>> |
164 |
>> |
165 |
> |
166 |
> |
167 |
> |
168 |
> -- |
169 |
> Fabian Groffen |
170 |
> Gentoo on a different level |
171 |
> |