install.log:
[...]
gcc -std=gnu99 -shared .libs/assert.o .libs/compat.o .libs/
errno.o .libs/extract-dbl.o .libs/invalid.o .libs/memory.o .libs/
mp_bpl.o .libs/mp_clz_tab.o .libs/mp_dv_tab.o .libs/
mp_minv_tab.o .libs/mp_get_fns.o .libs/mp_set_fns.o .libs/rand.o .libs/
randclr.o .libs/randdef.o .libs/randiset.o .libs/randlc2s.o .libs/
randlc2x.o .libs/randmt.o .libs/randmts.o .libs/rands.o .libs/
randsd.o .libs/randsdui.o .libs/randbui.o .libs/randmui.o .libs/
version.o .libs/tal-reent.o mpf/.libs/init.o mpf/.libs/init2.o
mpf/.libs/set.o mpf/.libs/set_ui.o mpf/.libs/set_si.o mpf/.libs/
set_str.o mpf/.libs/set_d.o mpf/.libs/set_z.o mpf/.libs/iset.o
mpf/.libs/iset_ui.o mpf/.libs/iset_si.o mpf/.libs/iset_str.o mpf/.libs/
iset_d.o mpf/.libs/clear.o mpf/.libs/get_str.o mpf/.libs/dump.o
mpf/.libs/size.o mpf/.libs/eq.o mpf/.libs/reldiff.o mpf/.libs/sqrt.o
mpf/.libs/random2.o mpf/.libs/inp_str.o mpf/.libs/out_str.o mpf/.libs/
add.o mpf/.libs/add_ui.o mpf/.libs/sub.o mpf/.libs/sub_ui.o mpf/.libs/
ui_sub.o mpf/.libs/mul.o mpf/.libs/mul_ui.o mpf/.libs/div.o mpf/.libs/
div_ui.o mpf/.libs/cmp.o mpf/.libs/cmp_d.o mpf/.libs/cmp_ui.o
mpf/.libs/cmp_si.o mpf/.libs/mul_2exp.o mpf/.libs/div_2exp.o mpf/.libs/
abs.o mpf/.libs/neg.o mpf/.libs/set_q.o mpf/.libs/get_d.o mpf/.libs/
get_d_2exp.o mpf/.libs/set_dfl_prec.o mpf/.libs/set_prc.o mpf/.libs/
set_prc_raw.o mpf/.libs/get_dfl_prec.o mpf/.libs/get_prc.o mpf/.libs/
ui_div.o mpf/.libs/sqrt_ui.o mpf/.libs/ceilfloor.o mpf/.libs/trunc.o
mpf/.libs/pow_ui.o mpf/.libs/urandomb.o mpf/.libs/swap.o mpf/.libs/
fits_sint.o mpf/.libs/fits_slong.o mpf/.libs/fits_sshort.o mpf/.libs/
fits_uint.o mpf/.libs/fits_ulong.o mpf/.libs/fits_ushort.o mpf/.libs/
get_si.o mpf/.libs/get_ui.o mpf/.libs/int_p.o mpz/.libs/abs.o
mpz/.libs/add.o mpz/.libs/add_ui.o mpz/.libs/aorsmul.o mpz/.libs/
aorsmul_i.o mpz/.libs/and.o mpz/.libs/array_init.o mpz/.libs/bin_ui.o
mpz/.libs/bin_uiui.o mpz/.libs/cdiv_q.o mpz/.libs/cdiv_q_ui.o
mpz/.libs/cdiv_qr.o mpz/.libs/cdiv_qr_ui.o mpz/.libs/cdiv_r.o
mpz/.libs/cdiv_r_ui.o mpz/.libs/cdiv_ui.o mpz/.libs/cfdiv_q_2exp.o
mpz/.libs/cfdiv_r_2exp.o mpz/.libs/clear.o mpz/.libs/clrbit.o
mpz/.libs/cmp.o mpz/.libs/cmp_d.o mpz/.libs/cmp_si.o mpz/.libs/
cmp_ui.o mpz/.libs/cmpabs.o mpz/.libs/cmpabs_d.o mpz/.libs/cmpabs_ui.o
mpz/.libs/com.o mpz/.libs/combit.o mpz/.libs/cong.o mpz/.libs/
cong_2exp.o mpz/.libs/cong_ui.o mpz/.libs/divexact.o mpz/.libs/
divegcd.o mpz/.libs/dive_ui.o mpz/.libs/divis.o mpz/.libs/divis_ui.o
mpz/.libs/divis_2exp.o mpz/.libs/dump.o mpz/.libs/export.o mpz/.libs/
fac_ui.o mpz/.libs/fdiv_q.o mpz/.libs/fdiv_q_ui.o mpz/.libs/fdiv_qr.o
mpz/.libs/fdiv_qr_ui.o mpz/.libs/fdiv_r.o mpz/.libs/fdiv_r_ui.o
mpz/.libs/fdiv_ui.o mpz/.libs/fib_ui.o mpz/.libs/fib2_ui.o mpz/.libs/
fits_sint.o mpz/.libs/fits_slong.o mpz/.libs/fits_sshort.o mpz/.libs/
fits_uint.o mpz/.libs/fits_ulong.o mpz/.libs/fits_ushort.o mpz/.libs/
gcd.o mpz/.libs/gcd_ui.o mpz/.libs/gcdext.o mpz/.libs/get_d.o
mpz/.libs/get_d_2exp.o mpz/.libs/get_si.o mpz/.libs/get_str.o
mpz/.libs/get_ui.o mpz/.libs/getlimbn.o mpz/.libs/hamdist.o mpz/.libs/
import.o mpz/.libs/init.o mpz/.libs/init2.o mpz/.libs/inp_raw.o
mpz/.libs/inp_str.o mpz/.libs/invert.o mpz/.libs/ior.o mpz/.libs/
iset.o mpz/.libs/iset_d.o mpz/.libs/iset_si.o mpz/.libs/iset_str.o
mpz/.libs/iset_ui.o mpz/.libs/jacobi.o mpz/.libs/kronsz.o mpz/.libs/
kronuz.o mpz/.libs/kronzs.o mpz/.libs/kronzu.o mpz/.libs/lcm.o
mpz/.libs/lcm_ui.o mpz/.libs/lucnum_ui.o mpz/.libs/lucnum2_ui.o
mpz/.libs/millerrabin.o mpz/.libs/mod.o mpz/.libs/mul.o mpz/.libs/
mul_2exp.o mpz/.libs/mul_si.o mpz/.libs/mul_ui.o mpz/.libs/n_pow_ui.o
mpz/.libs/neg.o mpz/.libs/nextprime.o mpz/.libs/out_raw.o mpz/.libs/
out_str.o mpz/.libs/perfpow.o mpz/.libs/perfsqr.o mpz/.libs/popcount.o
mpz/.libs/pow_ui.o mpz/.libs/powm.o mpz/.libs/powm_ui.o mpz/.libs/
pprime_p.o mpz/.libs/random.o mpz/.libs/random2.o mpz/.libs/realloc.o
mpz/.libs/realloc2.o mpz/.libs/remove.o mpz/.libs/root.o mpz/.libs/
rootrem.o mpz/.libs/rrandomb.o mpz/.libs/scan0.o mpz/.libs/scan1.o
mpz/.libs/set.o mpz/.libs/set_d.o mpz/.libs/set_f.o mpz/.libs/set_q.o
mpz/.libs/set_si.o mpz/.libs/set_str.o mpz/.libs/set_ui.o mpz/.libs/
setbit.o mpz/.libs/size.o mpz/.libs/sizeinbase.o mpz/.libs/sqrt.o
mpz/.libs/sqrtrem.o mpz/.libs/sub.o mpz/.libs/sub_ui.o mpz/.libs/
swap.o mpz/.libs/tdiv_ui.o mpz/.libs/tdiv_q.o mpz/.libs/tdiv_q_2exp.o
mpz/.libs/tdiv_q_ui.o mpz/.libs/tdiv_qr.o mpz/.libs/tdiv_qr_ui.o
mpz/.libs/tdiv_r.o mpz/.libs/tdiv_r_2exp.o mpz/.libs/tdiv_r_ui.o
mpz/.libs/tstbit.o mpz/.libs/ui_pow_ui.o mpz/.libs/ui_sub.o mpz/.libs/
urandomb.o mpz/.libs/urandomm.o mpz/.libs/xor.o mpq/.libs/abs.o
mpq/.libs/aors.o mpq/.libs/canonicalize.o mpq/.libs/clear.o mpq/.libs/
cmp.o mpq/.libs/cmp_si.o mpq/.libs/cmp_ui.o mpq/.libs/div.o mpq/.libs/
get_d.o mpq/.libs/get_den.o mpq/.libs/get_num.o mpq/.libs/get_str.o
mpq/.libs/init.o mpq/.libs/inp_str.o mpq/.libs/inv.o mpq/.libs/
md_2exp.o mpq/.libs/mul.o mpq/.libs/neg.o mpq/.libs/out_str.o
mpq/.libs/set.o mpq/.libs/set_den.o mpq/.libs/set_num.o mpq/.libs/
set_si.o mpq/.libs/set_str.o mpq/.libs/set_ui.o mpq/.libs/equal.o
mpq/.libs/set_z.o mpq/.libs/set_d.o mpq/.libs/set_f.o mpq/.libs/swap.o
mpn/.libs/fib_table.o mpn/.libs/mp_bases.o mpn/.libs/add.o mpn/.libs/
add_1.o mpn/.libs/add_n.o mpn/.libs/sub.o mpn/.libs/sub_1.o mpn/.libs/
sub_n.o mpn/.libs/mul_1.o mpn/.libs/addmul_1.o mpn/.libs/submul_1.o
mpn/.libs/lshift.o mpn/.libs/rshift.o mpn/.libs/dive_1.o mpn/.libs/
diveby3.o mpn/.libs/divebyff.o mpn/.libs/divebyBm1of.o mpn/.libs/
divis.o mpn/.libs/divrem.o mpn/.libs/divrem_1.o mpn/.libs/divrem_2.o
mpn/.libs/divrem_euclidean_qr_1.o mpn/.libs/divrem_euclidean_qr_2.o
mpn/.libs/divrem_euclidean_r_1.o mpn/.libs/fib2_ui.o mpn/.libs/mod_1.o
mpn/.libs/mod_34lsub1.o mpn/.libs/mode1o.o mpn/.libs/pre_divrem_1.o
mpn/.libs/pre_mod_1.o mpn/.libs/dump.o mpn/.libs/mul.o mpn/.libs/
mul_fft.o mpn/.libs/mul_n.o mpn/.libs/mul_basecase.o mpn/.libs/
sqr_basecase.o mpn/.libs/random.o mpn/.libs/random2.o mpn/.libs/
pow_1.o mpn/.libs/rootrem.o mpn/.libs/sqrtrem.o mpn/.libs/get_str.o
mpn/.libs/set_str.o mpn/.libs/scan0.o mpn/.libs/scan1.o mpn/.libs/
popcount.o mpn/.libs/hamdist.o mpn/.libs/cmp.o mpn/.libs/perfsqr.o
mpn/.libs/bdivmod.o mpn/.libs/gcd.o mpn/.libs/gcd_1.o mpn/.libs/
gcdext.o mpn/.libs/tdiv_qr.o mpn/.libs/dc_divrem_n.o mpn/.libs/
sb_divrem_mn.o mpn/.libs/jacbase.o mpn/.libs/get_d.o mpn/.libs/
mullow_n.o mpn/.libs/mullow_basecase.o mpn/.libs/redc_basecase.o
mpn/.libs/copyi.o mpn/.libs/copyd.o mpn/.libs/com_n.o mpn/.libs/
and_n.o mpn/.libs/andn_n.o mpn/.libs/nand_n.o mpn/.libs/ior_n.o
mpn/.libs/iorn_n.o mpn/.libs/nior_n.o mpn/.libs/xor_n.o mpn/.libs/
xnor_n.o mpn/.libs/bgcd.o mpn/.libs/hgcd.o mpn/.libs/hgcd2.o mpn/.libs/
lgcd.o mpn/.libs/ngcd.o mpn/.libs/ngcd_matrix.o mpn/.libs/ngcd_step.o
mpn/.libs/nhgcd2.o mpn/.libs/rgcd.o mpn/.libs/sgcd.o mpn/.libs/mul_2.o
mpn/.libs/addmul_2.o mpn/.libs/addlsh1_n.o mpn/.libs/sublsh1_n.o
mpn/.libs/rsh1add_n.o mpn/.libs/rsh1sub_n.o mpn/.libs/sumdiff_n.o
mpn/.libs/addadd_n.o mpn/.libs/addsub_n.o mpn/.libs/subadd_n.o
mpn/.libs/toom3_mul.o mpn/.libs/toom3_mul_n.o mpn/.libs/toom4_mul_n.o
mpn/.libs/toom7_mul_n.o printf/.libs/asprintf.o printf/.libs/
asprntffuns.o printf/.libs/doprnt.o printf/.libs/doprntf.o
printf/.libs/doprnti.o printf/.libs/fprintf.o printf/.libs/obprintf.o
printf/.libs/obvprintf.o printf/.libs/obprntffuns.o printf/.libs/
printf.o printf/.libs/printffuns.o printf/.libs/snprintf.o
printf/.libs/snprntffuns.o printf/.libs/sprintf.o printf/.libs/
sprintffuns.o printf/.libs/vasprintf.o printf/.libs/vfprintf.o
printf/.libs/vprintf.o printf/.libs/vsnprintf.o printf/.libs/
vsprintf.o printf/.libs/repl-vsnprintf.o scanf/.libs/doscan.o
scanf/.libs/fscanf.o scanf/.libs/fscanffuns.o scanf/.libs/scanf.o
scanf/.libs/sscanf.o scanf/.libs/sscanffuns.o scanf/.libs/vfscanf.o
scanf/.libs/vscanf.o scanf/.libs/vsscanf.o -march=i686 -mtune=core2 -
Wl,-soname -Wl,libmpir.so.3 -o .libs/libmpir.so.3.4.4
mpn/.libs/add_n.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[4]: *** [libmpir.la] Error 1
make[4]: Leaving directory `/home/renato/src/sage-matematica/src/
sage-4.2.1/spkg/build/mpir-1.2.p9/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/renato/src/sage-matematica/src/
sage-4.2.1/spkg/build/mpir-1.2.p9/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/renato/src/sage-matematica/src/
sage-4.2.1/spkg/build/mpir-1.2.p9/src'
Error building MPIR.
real 2m52.064s
user 1m29.001s
sys 0m42.224s
sage: An error occurred while installing mpir-1.2.p9
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/renato/src/sage-matematica/src/sage-4.2.1/install.log.
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/renato/src/sage-matematica/src/sage-4.2.1/spkg/build/mpir-1.2.p9
and type 'make'.
Instead type "/home/renato/src/sage-matematica/src/sage-4.2.1/sage -
sh"
in order to set all environment variables correctly, then cd to
/home/renato/src/sage-matematica/src/sage-4.2.1/spkg/build/mpir-1.2.p9
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/mpir-1.2.p9] Error 1
make[1]: Leaving directory `/home/renato/src/sage-matematica/src/
sage-4.2.1/spkg'
real 13m47.280s
user 8m0.755s
sys 2m27.074s
Error building Sage.
I haven't got a clue of this error.
I'm on Archlinux, kernel 2.6.31 and the version of mpir included in
the sage's source seems to be 1.2.p9
thanks for any help
Thanks for the report.
This is an issue we haven't encountered before. The compiler does not
recognise the object files produced by the assembler, which just
shouldn't happen.
Unfortunately there isn't anything we can tell you to type to fix
this. The suggestion would be to insert ABI=32 or ABI=64 or -m64 or
-m32 into the configure or compiler options, depending on whether your
machine is 32 or 64 bits.
I think, from what it detected, that you have a (fairly old) 32 bit
machine. Does that sound right?
You will have to speak to the Sage people about how to modify the spkg
to try various things, unless you already know how.
In the mean time, if you wanted to help us track down the bug you
could download MPIR from our webpage http://www.mpir.org/ and see if
it builds on your machine outside of Sage itself:
./configure
make
make check
Please let us know what happens.
Bill.
2009/12/22 Nareto <ren...@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google Groups "mpir-devel" group.
> To post to this group, send email to mpir-...@googlegroups.com.
> To unsubscribe from this group, send email to mpir-devel+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.
>
>
>
Bill.
2009/12/22 Bill Hart <goodwi...@googlemail.com>:
so it's a 32bit. Old? It's no older than 3 years, which (sigh) I guess
is old in computer terms.
I did find out something. I downloaded as you suggested mpir 1.3.0-rc3
and it compiled without errors. 'make check' also didn't give errors
and reported "All 3 tests passed". I was looking at the ./configure
output and comparing it to the one from the sage compilation and I
spotted this difference:
mpir 1.2.p9 (from sage's sources):
using ABI="64"
CC="gcc -std=gnu99"
CFLAGS="-march=i686 -mtune=core2 -O2 -pipe"
CPPFLAGS=""
CXX="g++"
CXXFLAGS="-march=i686 -mtune=core2 -O2 -pipe"
MPN_PATH=" x86_64/core2 x86_64 generic"
mpir 1.3.0-rc3:
using ABI="32"
CC="gcc -std=gnu99"
CFLAGS="-m32 -O2 -fomit-frame-pointer -mtune=core2 -march=core2"
CPPFLAGS=""
MPN_PATH=" x86/core2 x86 generic"
is this relevant? I'll ask sage people how to get it to use ABI=32 and
see if it works
regards,
Renato
I think you have 64-bit *hardware* but you are running a 32-bit OS on
it. This is probably confusing the Sage build system somehow.
> I did find out something. I downloaded as you suggested mpir 1.3.0-rc3
> and it compiled without errors. 'make check' also didn't give errors
> and reported "All 3 tests passed". I was looking at the ./configure
> output and comparing it to the one from the sage compilation and I
> spotted this difference:
>
> mpir 1.2.p9 (from sage's sources):
> using ABI="64"
That's the problem. Try setting
export ABI=32
before building Sage.
We don't set ABI in the spkg-install for mpir, so I have no idea how
it's getting set to 64 instead of 32.
William
> CC="gcc -std=gnu99"
> CFLAGS="-march=i686 -mtune=core2 -O2 -pipe"
> CPPFLAGS=""
> CXX="g++"
> CXXFLAGS="-march=i686 -mtune=core2 -O2 -pipe"
> MPN_PATH=" x86_64/core2 x86_64 generic"
>
> mpir 1.3.0-rc3:
> using ABI="32"
> CC="gcc -std=gnu99"
> CFLAGS="-m32 -O2 -fomit-frame-pointer -mtune=core2 -march=core2"
> CPPFLAGS=""
> MPN_PATH=" x86/core2 x86 generic"
>
> is this relevant? I'll ask sage people how to get it to use ABI=32 and
> see if it works
>
> regards,
> Renato
>
> --
>
> You received this message because you are subscribed to the Google Groups "mpir-devel" group.
> To post to this group, send email to mpir-...@googlegroups.com.
> To unsubscribe from this group, send email to mpir-devel+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.
>
>
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
Note that you will get an approximately 2x speedup of much
mathematical software if you upgrade your linux to a 64 bit linux. So
it is worth considering.
Anyhow, the export thing should fix your problem.
Bill.
2009/12/23 William Stein <wst...@gmail.com>:
Renato
On Dec 24, 1:51 am, Bill Hart <goodwillh...@googlemail.com> wrote:
> I agree with William's synopsis. You definitely have 64 bit hardware,
> but a 32 bit OS. It's not that your hardware is "old". I was just
> wrong about that. We support much older hardware than Core 2's!
>
> Note that you will get an approximately 2x speedup of much
> mathematical software if you upgrade your linux to a 64 bit linux. So
> it is worth considering.
>
> Anyhow, the export thing should fix your problem.
>
> Bill.
>
> 2009/12/23 William Stein <wst...@gmail.com>:
>
> > 2009/12/23 Nareto <renn...@gmail.com>:
> >> For more options, visit this group athttp://groups.google.com/group/mpir-devel?hl=en.