1 |
On Wednesday 07 May 2008, Ned Ludd wrote: |
2 |
> On Wed, 2008-05-07 at 00:26 -0400, Mike Frysinger wrote: |
3 |
> > On Tuesday 06 May 2008, Ned Ludd wrote: |
4 |
> > > On Tue, 2008-05-06 at 17:24 -0400, Mike Frysinger wrote: |
5 |
> > > > On Tuesday 06 May 2008, Christopher Friedt wrote: |
6 |
> > > > > This is a 'chicken / egg' problem. In order to build a cross |
7 |
> > > > > compiler for arch X you need mpfr compiled for arch X. In order to |
8 |
> > > > > build mpfr for arch X you need a toolchain for arch X. |
9 |
> > > > > |
10 |
> > > > > Try building the cross-compiler without mpfr first, then build |
11 |
> > > > > libmpfr, and then rebuild the cross compiler. |
12 |
> > > > |
13 |
> > > > you cant build gcc-4.3 without gmp and mpfr. they're hard |
14 |
> > > > requirements. but they're requirements that the host system has it, |
15 |
> > > > not that they are cross-compiled for the target. |
16 |
> > > |
17 |
> > > this might pose a problem at Gentoo as I don't think mpfr can even be |
18 |
> > > cross compiled in the first place. I might be wrong but I seem to |
19 |
> > > recall fighting with it in the last week using ( |
20 |
> > > arm-softfloat-linux-uclibc || arm*-softloat-linux-gnueabi). |
21 |
> > |
22 |
> > i said they are host libraries, not target libraries. gcc itself uses |
23 |
> > them in order to even execute in the first place starting with gcc-4.3. |
24 |
> > |
25 |
> > what Christopher is probably referring to is gfortran support ... it |
26 |
> > requires mpfr/gmp to be cross-compiled. |
27 |
> > |
28 |
> > but to address your question, they both do cross-compile fine. i just |
29 |
> > did it two days ago for mingw32 target so that i could build up a |
30 |
> > gfortran cross-compiler. |
31 |
> |
32 |
> Really? I'm getting (just reproduced on a few crossdev install) |
33 |
> |
34 |
> |
35 |
> Notice the LDFLAGS.. yet still. |
36 |
> |
37 |
> armv5te-softfloat-linux-gnueabi-gcc |
38 |
> -shared .libs/exceptions.o .libs/extract.o .libs/uceil_exp2.o |
39 |
> .libs/uceil_log2.o .libs/ufloor_log2.o .libs/add.o .libs/add1.o |
40 |
> .libs/add_ui.o .libs/agm.o .libs/clear.o .libs/cmp.o .libs/cmp_abs.o |
41 |
> .libs/cmp_si.o .libs/cmp_ui.o .libs/comparisons.o .libs/div_2exp.o |
42 |
> .libs/div_2si.o .libs/div_2ui.o .libs/div.o .libs/div_ui.o .libs/dump.o |
43 |
> .libs/eq.o .libs/exp10.o .libs/exp2.o .libs/exp3.o .libs/exp.o .libs/frac.o |
44 |
> .libs/get_d.o .libs/get_exp.o .libs/get_str.o .libs/init.o .libs/inp_str.o |
45 |
> .libs/isinteger.o .libs/isinf.o .libs/isnan.o .libs/isnum.o |
46 |
> .libs/const_log2.o .libs/log.o .libs/mul_2exp.o .libs/mul_2si.o |
47 |
> .libs/mul_2ui.o .libs/mul.o .libs/mul_ui.o .libs/neg.o .libs/next.o |
48 |
> .libs/out_str.o .libs/const_pi.o .libs/pow.o .libs/pow_si.o .libs/pow_ui.o |
49 |
> .libs/print_raw.o .libs/print_rnd_mode.o .libs/random2.o .libs/random.o |
50 |
> .libs/reldiff.o .libs/round_prec.o .libs/set.o .libs/setmax.o |
51 |
> .libs/setmin.o .libs/set_d.o .libs/set_dfl_prec.o .libs/set_exp.o |
52 |
> .libs/set_rnd.o .libs/set_f.o .libs/set_prc_raw.o .libs/set_prec.o |
53 |
> .libs/set_q.o .libs/set_si.o .libs/set_str.o .libs/set_str_raw.o |
54 |
> .libs/set_ui.o .libs/set_z.o .libs/sqrt.o .libs/sqrt_ui.o .libs/sub.o |
55 |
> .libs/sub1.o .libs/sub_ui.o .libs/rint.o .libs/ui_div.o .libs/ui_sub.o |
56 |
> .libs/urandomb.o .libs/get_z_exp.o .libs/swap.o .libs/factorial.o |
57 |
> .libs/cosh.o .libs/sinh.o .libs/tanh.o .libs/acosh.o .libs/asinh.o |
58 |
> .libs/atanh.o .libs/atan.o .libs/cmp2.o .libs/exp_2.o .libs/asin.o |
59 |
> .libs/const_euler.o .libs/cos.o .libs/sin.o .libs/tan.o .libs/fma.o |
60 |
> .libs/fms.o .libs/hypot.o .libs/log1p.o .libs/expm1.o .libs/log2.o |
61 |
> .libs/log10.o .libs/ui_pow.o .libs/ui_pow_ui.o .libs/minmax.o .libs/dim.o |
62 |
> .libs/signbit.o .libs/copysign.o .libs/setsign.o .libs/gmp_op.o |
63 |
> .libs/init2.o .libs/acos.o .libs/sin_cos.o .libs/set_nan.o .libs/set_inf.o |
64 |
> .libs/powerof2.o .libs/gamma.o .libs/set_ld.o .libs/get_ld.o .libs/cbrt.o |
65 |
> .libs/volatile.o .libs/fits_sshort.o .libs/fits_sint.o .libs/fits_slong.o |
66 |
> .libs/fits_ushort.o .libs/fits_uint.o .libs/fits_ulong.o |
67 |
> .libs/fits_uintmax.o .libs/fits_intmax.o .libs/get_si.o .libs/get_ui.o |
68 |
> .libs/zeta.o .libs/cmp_d.o .libs/erf.o .libs/inits.o .libs/inits2.o |
69 |
> .libs/clears.o .libs/sgn.o .libs/check.o .libs/sub1sp.o .libs/version.o |
70 |
> .libs/mpn_exp.o .libs/mpfr-gmp.o .libs/mp_clz_tab.o .libs/sum.o |
71 |
> .libs/add1sp.o .libs/free_cache.o .libs/si_op.o .libs/cmp_ld.o |
72 |
> .libs/set_ui_2exp.o .libs/set_si_2exp.o .libs/set_uj.o .libs/set_sj.o |
73 |
> .libs/get_sj.o .libs/get_uj.o .libs/get_z.o .libs/iszero.o .libs/cache.o |
74 |
> .libs/sqr.o .libs/int_ceil_log2.o .libs/isqrt.o .libs/strtofr.o |
75 |
> .libs/pow_z.o .libs/logging.o .libs/mulders.o .libs/get_f.o .libs/round_p.o |
76 |
> .libs/erfc.o .libs/atan2.o .libs/subnormal.o .libs/const_catalan.o |
77 |
> .libs/root.o .libs/sec.o .libs/csc.o .libs/cot.o .libs/eint.o .libs/sech.o |
78 |
> .libs/csch.o .libs/coth.o .libs/round_near_x.o .libs/constant.o |
79 |
> .libs/abort_prec_max.o .libs/stack_interface.o .libs/lngamma.o |
80 |
> .libs/zeta_ui.o .libs/set_d64.o .libs/get_d64.o .libs/jn.o .libs/yn.o |
81 |
> .libs/remquo.o .libs/get_patches.o -L/home/solar/Desktop/gizard/usr/lib |
82 |
> -L/home/solar/Desktop/gizard/lib |
83 |
> -L/usr/armv5te-softfloat-linux-gnueabi/usr/lib |
84 |
> -L/usr/armv5te-softfloat-linux-gnueabi/lib /usr/lib/libgmp.so -Wl,-soname |
85 |
> -Wl,libmpfr.so.1 -o .libs/libmpfr.so.1.1.1 /usr/lib/libgmp.so: file not |
86 |
> recognized: File format not recognized collect2: ld returned 1 exit status |
87 |
> make[1]: *** [libmpfr.la] Error 1 |
88 |
> make[1]: Leaving directory |
89 |
> `/home/solar/Desktop/gizard/tmp/portage/dev-libs/mpfr-2.3.1/work/mpfr-2.3.1 |
90 |
>' make: *** [all-recursive] Error 1 |
91 |
|
92 |
looks like libtool hate, probably due to the stupid -rpath /usr/lib given to |
93 |
the libtool link line. i bet if you deleted /usr/lib/libgmp.la it'd work ... |
94 |
-mike |