Vince Greg wrote:
Hi,
I want to create my own lfs liveCD but I want to optimize the compilation
So I execute advices that I had on this mailing list :
export CFLAGS = "-Os -s -fno-strict-aliasing"
export CXXFLAGS=$CFLAGS
But for each package the compilation is ok but lots of errors on test ?
The official LFS LiveCD has the following errors on tests:
Binutils:
FAIL: visibility (hidden_normal) (non PIC)
FAIL: visibility (hidden_normal) (non PIC, load offset)
FAIL: visibility (hidden_normal) (PIC main, non PIC so)
FAIL: visibility (hidden_weak) (non PIC)
FAIL: visibility (hidden_weak) (non PIC, load offset)
FAIL: visibility (hidden_weak) (PIC main, non PIC so)
FAIL: visibility (protected) (non PIC)
FAIL: visibility (protected) (non PIC, load offset)
FAIL: visibility (protected) (PIC main, non PIC so)
FAIL: visibility (protected_undef_def) (non PIC)
FAIL: visibility (protected_undef_def) (non PIC, load offset)
FAIL: visibility (protected_undef_def) (PIC main, non PIC so)
FAIL: visibility (protected_weak) (non PIC)
FAIL: visibility (protected_weak) (non PIC, load offset)
FAIL: visibility (protected_weak) (PIC main, non PIC so)
FAIL: visibility (normal) (non PIC)
FAIL: visibility (normal) (non PIC, load offset)
FAIL: visibility (normal) (PIC main, non PIC so)
FAIL: shared (non PIC)
FAIL: shared (non PIC, load offset)
FAIL: shared (PIC main, non PIC so)
All of these failures are not present in the book. However, all of them
go away if one runs the testsuite as:
make CFLAGS="" check
(but this only hides the real problem, that's why I don't do that)
GCC:
FAIL: abi_check
FAIL: libmudflap.cth/pass40-frag.c execution test
FAIL: libmudflap.cth/pass40-frag.c output pattern test
FAIL: libmudflap.cth/pass40-frag.c (-O2) execution test
FAIL: libmudflap.cth/pass40-frag.c (-O2) output pattern test
FAIL: libmudflap.cth/pass40-frag.c (-O3) execution test
FAIL: libmudflap.cth/pass40-frag.c (-O3) output pattern test
Of these, only abi_check is new to the book.
Glibc:
make[5]: ***
[/lfs-livecd/packages/glibc/glibc-build/math/test-float.out] Error 1
make[5]: ***
[/lfs-livecd/packages/glibc/glibc-build/math/test-double.out] Error 1
make[5]: ***
[/lfs-livecd/packages/glibc/glibc-build/math/test-ifloat.out] Error 1
make[5]: ***
[/lfs-livecd/packages/glibc/glibc-build/math/test-idouble.out] Error 1
These glibc failures are indeed related to optimization. But the
precision loss in Bessel functions is just one bit. Everyone except
upstream should ignore it.
The CD also removes almost all static libraries. If a package tests the
functionality provided by its static library, the test obviously fails.
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page