MTD 248-645A Manual de usuario Pagina 127

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 347
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 126
Linux From Scratch - Version 7.0
107
If everything is working correctly, there should be no errors, and the output of the last command will be:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../crt1.o succeeded
/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../crti.o succeeded
/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../crtn.o succeeded
Depending on your machine architecture, the above may differ slightly, the difference usually being the name of the
directory after /usr/lib/gcc. If your machine is a 64-bit system, you may also see a directory named lib64
towards the end of the string. The important thing to look for here is that gcc has found all three crt*.o files under
the /usr/lib directory.
Verify that the compiler is searching for the correct header files:
grep -B4 '^ /usr/include' dummy.log
This command should return successfully with the following output:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/include
/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/include-fixed
/usr/include
Again, note that the directory named after your target triplet may be different than the above, depending on your
architecture.
Note
As of version 4.3.0, GCC now unconditionally installs the limits.h file into the private include-
fixed directory, and that directory is required to be in place.
Next, verify that the new linker is being used with the correct search paths:
grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
If everything is working correctly, there should be no errors, and the output of the last command (allowing for
platform-specific target triplets) will be:
SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");
A 64-bit system may see a few more directories. For example, here is the output from an x86_64 machine:
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
SEARCH_DIR("/usr/local/lib64")
SEARCH_DIR("/lib64")
SEARCH_DIR("/usr/lib64")
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");
Vista de pagina 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 346 347

Comentarios a estos manuales

Sin comentarios