MTD 248-645A Manual de usuario Pagina 108

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 347
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 107
Linux From Scratch - Version 7.0
88
The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:
mkdir -v ../glibc-build
cd ../glibc-build
As in Chapter 5, add the needed compiler flags to CFLAGS for x86 machines. Here, the optimization of the library
is also set for the gcc compiler to enhance compilation speed (-pipe) and package performance (-O3).
case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms ;;
esac
Prepare Glibc for compilation:
../glibc-2.14.1/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.25 --libexecdir=/usr/lib/glibc
The meaning of the new configure options:
--libexecdir=/usr/lib/glibc
This changes the location of the pt_chown program from its default of /usr/libexec to /usr/lib/
glibc.
Compile the package:
make
Important
In this section, the test suite for Glibc is considered critical. Do not skip it under any circumstance.
Before running the tests, copy a file from the source tree into our build tree to prevent a couple of test failures, then
test the results:
cp -v ../glibc-2.14.1/iconvdata/gconv-modules iconvdata
make -k check 2>&1 | tee glibc-check-log
grep Error glibc-check-log
You will probably see an expected (ignored) failure in the posix/annexc test. In addition the Glibc test suite is
somewhat dependent on the host system. This is a list of the most common issues:
The nptl/tst-clock2, nptl/tst-attr3, and rt/tst-cpuclock2 tests have been known to fail. The reason is not
completely understood, but indications are that minor timing issues can trigger these failures.
The math tests sometimes fail when running on systems where the CPU is not a relatively new genuine Intel or
authentic AMD processor.
If you have mounted the LFS partition with the noatime option, the atime test will fail. As mentioned in
Section 2.4, “Mounting the New Partition”, do not use the noatime option while building LFS.
When running on older and slower hardware or on systems under load, some tests can fail because of test
timeouts being exceeded. Modifying the make check command to set a TIMEOUTFACTOR is reported to help
eliminate these errors (e.g. TIMEOUTFACTOR=16 make -k check).
Other tests known to fail on some architectures are posix/bug-regex32, misc/tst-writev, elf/check-textrel, nptl/tst-
getpid2, and stdio-common/bug22.
Vista de pagina 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 346 347

Comentarios a estos manuales

Sin comentarios