LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-17-2009, 03:02 PM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
LFS live CD 6.5 chapter 6.14. MPFR-2.4.1 make check 2 errors


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...

Last edited by bucovaina78; 10-17-2009 at 03:05 PM. Reason: adding bold to code to make it clear where the error is
 
Old 10-18-2009, 11:09 AM   #2
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
You could try setting the CFLAGS temporarily like the comment stated. try this

e.g.
Code:
export CFLAGS="-fPIC" && ./configure 
make
make test
make install
unset CFLAGS
This set a global CFLAG for GCC of "-fPIC" its a frame-pointer... for more information on CFLAGS read these.

http://forums.remote-exploit.org/bt4beta-howtos/21764-gcc-optimisations-cflags-cxxflags.html


http://en.gentoo-wiki.com/wiki/Safe_Cflags

As an alternative to this, read the README or INSTALL and look for the configure option to add custom CFLAGS to the ./configure

Or... if you send me your specfic cpu type, and I can set you up with some safe global GCC build flags to put into your .bashrc file.

Its overly complicated, whenever your building source.

Last edited by manwithaplan; 10-18-2009 at 11:12 AM.
 
Old 10-20-2009, 02:04 PM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by manwithaplan View Post
Its overly complicated, whenever your building source.
Well, don't tell me I threw myself in the adventure and it's even harder than expected . But I learned a lot about "what makes linux tick" so far, I think I have a long way to go

Really thanks lot! A great piece of advice man! And good links, now I have an idea what I'm doing and have to do with the CFLAGS. I was thinking how or where to export it, some textfile??? Nope a lot easier
 
Old 10-21-2009, 07:21 PM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Quote:
Originally Posted by wannessmet View Post
Well, don't tell me I threw myself in the adventure and it's even harder than expected . But I learned a lot about "what makes linux tick" so far, I think I have a long way to go

Really thanks lot! A great piece of advice man! And good links, now I have an idea what I'm doing and have to do with the CFLAGS. I was thinking how or where to export it, some textfile??? Nope a lot easier
No problem ... I have been where your at ... If your interested in adding package management to your LFS, I'm writing a blog piece that adds Arch's pacman and ABS to your LFS install. Its almost complete, should be finished shortly.

http://manwithaplan.blogetery.com/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS live CD 6.5 Binutils-2.19.1 make check # of expected failures bucovaina78 Linux From Scratch 2 10-17-2009 02:42 PM
LFS version 6.5, chapter 6.12.1, make check Binutils-2.19.1 errors jbee Linux From Scratch 5 10-06-2009 09:41 AM
MPFR-2.4.1 Check Failures in LFS 6.5 RC2 GuyWhoKilledBear Linux From Scratch 1 08-12-2009 06:53 PM
Chapter 6.12 GCC make -k check errors kz_chopper Linux From Scratch 2 02-20-2007 11:54 PM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration