Well, things were going too smooth I guess
I'm a little concerned because the book says when you check everything MUST go smooth. When I make mpfr-2.4.1 and do a check I get the following:
Code:
a lot more code above this
...
...
make[2]: Leaving directory `/usr/src/mpfr-2.4.1/tests'
make check-TESTS
make[2]: Entering directory `/usr/src/mpfr-2.4.1/tests'
PASS: tversion
PASS: tinternals
PASS: tinits
PASS: tisqrt
PASS: tsgn
PASS: tcheck
PASS: tisnan
PASS: texceptions
PASS: tset_exp
PASS: tset
PASS: tabs
PASS: tset_d
PASS: tset_f
PASS: tset_q
PASS: tset_si
PASS: tset_str
PASS: tset_z
Error: mpfr_get_ld o mpfr_set_ld <> Id
r=0
d=4.903496529371628469751533710223e-4943 get_ld(set_ld(d))=0.000000000000000000000000000000e+00
d=[FA 99 04 08 00 00 00 00 00 00 8F BF] 4.903825107657432356e-4943
x=4.024cfd0000000000@-4105
e=[00 00 00 00 00 00 00 00 00 00 04 08] 4.9038254357253902254e-4943
FAIL: tset_ld
PASS: tset_sj
PASS: tswap
PASS: tcopysign
PASS: tcmp
PASS: tcmp2
PASS: tcmpabs
PASS: tcmp_d
Error in mpfr_cmp_ld 2.34763465 and 2.34763464999999982296685629990
FAIL: tcmp_ld
PASS: tcomparisons
PASS: teq
PASS: tadd
PASS: tsub
PASS: tmul
PASS: tdiv
PASS: tsub1sp
PASS: tadd1sp
PASS: tadd_ui
PASS: tsub_ui
PASS: tcmp_ui
PASS: tdiv_ui
PASS: tmul_ui
PASS: tsqrt_ui
PASS: tui_div
PASS: tui_sub
PASS: tadd_d
PASS: tsub_d
PASS: td_sub
PASS: tmul_d
PASS: tdiv_d
PASS: td_div
PASS: tgmpop
PASS: tsi_op
PASS: tmul_2exp
PASS: tfma
PASS: tfms
PASS: tsum
PASS: tdim
PASS: tminmax
PASS: tnext
PASS: tfits
PASS: tget_d
PASS: tget_d_2exp
PASS: tget_z
PASS: tget_str
PASS: tget_sj
PASS: tout_str
PASS: tinp_str
PASS: toutimpl
PASS: tcan_round
PASS: tround_prec
PASS: tsqrt
PASS: tconst_log2
PASS: tconst_pi
PASS: tconst_euler
PASS: trandom
PASS: ttrunc
PASS: trint
PASS: tfrac
PASS: tmodf
PASS: texp
PASS: texp2
PASS: texp10
PASS: texpm1
PASS: tlog
PASS: tlog2
PASS: tlog10
PASS: tlog1p
PASS: tpow
PASS: tui_pow
PASS: tpow3
PASS: tcosh
PASS: tsinh
PASS: ttanh
PASS: tsinh_cosh
PASS: tacosh
PASS: tasinh
PASS: tatanh
PASS: thyperbolic
PASS: tasin
PASS: tacos
PASS: tcos
PASS: tatan
PASS: tsin
PASS: ttan
PASS: tsin_cos
PASS: tagm
PASS: thypot
PASS: tfactorial
PASS: tgamma
PASS: terf
PASS: tcbrt
PASS: tzeta
PASS: mpf_compat
PASS: mpfr_compat
PASS: reuse
PASS: tsqr
PASS: tstrtofr
PASS: tpow_z
PASS: tget_f
PASS: tconst_catalan
PASS: troot
PASS: tsec
PASS: tcsc
PASS: tcot
PASS: teint
PASS: tcoth
PASS: tcsch
PASS: tsech
PASS: tstckintc
PASS: tsubnormal
PASS: tlngamma
PASS: tlgamma
PASS: tzeta_ui
PASS: tget_ld_2exp
PASS: tget_set_d64
PASS: tj0
PASS: tj1
PASS: tjn
PASS: ty0
PASS: ty1
PASS: tyn
PASS: tremquo
PASS: tfmod
PASS: tl2b
PASS: tli2
PASS: tprintf
PASS: tsprintf
PASS: tfprintf
PASS: trec_sqrt
PASS: tpow_all
=====================
2 of 148 tests failed
=====================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/usr/src/mpfr-2.4.1/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/usr/src/mpfr-2.4.1/tests'
make: *** [check-recursive] Error 1
summary of fails:
FAIL: tcmp_ld
Error: mpfr_get_ld o mpfr_set_ld <> Id
What is this? I'm a litle afraid that things went wrong at compiling zlib, there was a note in the book that I didn't understand
Quote:
Note
Zlib is known to build its shared library incorrectly if CFLAGS is specified in the environment. If using a specified CFLAGS variable, be sure to add the -fPIC directive to the CFLAGS variable for the duration of the configure command below, then remove it when building the static library.
|
what is CFLAGS and how do I add the -fPIC directive to ./configure? I tried a lot of syntaxes but always I get something like unknown option...