I try to make a cross toolchain for the hand, but this is an error:
Dl-lookup.c: 28: 0 in the file: ../glibc-ports-2.11/sysdeps/arm/dl-machine.h:29:02 From: Warning: Dynamic-link in the "VALID_ELF_ABIVERSION" rescheduled file. H is included from: 88: 0, from DL-load: 34: ../glibc-ports-2.11/sysdeps/arm/dl-machine.h:xx: Warning: "VALID_ELF_ABIVERSION" rescheduled ../sysdeps/unix/ Sysv /linux/ldsodefs.h:62:02: Note: This is the location of the previous definition. /glib-ports-2.11/sysdeps/arm/dl-machine.h:30:02: Warning: "VALID_ELF_OSABI" reenir Hold ../sysdeps/unix/sysv/linux/ldsodefs.h:60:02: Note: This is the location of the previous definition. /glib-ports-2.11/sysdeps/arm/dl-machine.h:32: 0 : Warning: "VALID_ELF_HEADER" rescheduled ../sysdeps/unix/sysv/linux/ldsodefs.h..:03: This is the location of the previous definition. /glib-ports-2.11/sysdeps/arm/ Dl-machine .h: 'elf_machine_load_address' in function: ../gli Bc-ports-2.11 / sysdeps / arm / dl-machine.h: 81: 38: Warning: Detecting the expression of 'zero' .. / sysdeps / unix /sysv/linux/ldsodefs.h:62:02: Note: This is the location of the previous definition. /glib-ports-2.11/sysdeps/arm/dl-machine.h:30:02: Warning: "VALID_ELF_OSABI" Rescheduled ../sy Sdeps / unix / sysv / linux / ldsodefs.h: 60: 0: Note: This is the location of the previous definition. /glib-ports-2.11/sysdeps/arm/dl-machine.h:32:02: Warning: " VALID_ELF_HEADER "Rescheduled ../Sysdeps / unix / sysv / linux / ldsodefs.h: 58: 0: Note: This is the location of the previous definition. /glib-ports-2.11/sysdeps/arm/dl-machine.h: function In 'elf_machine_load_address': ../glib-ports-2.11/sysdeps/arm/dl-machine.h:81:38: Warning: Finding the expression of 'zero' type-dl-load.c: 'open_verify' in the function ': Dl-load C: 1663: 41: Error: The macro "VALID_ELF_ABIVERSION" has passed 2 arguments, but only 1 dl-load.c: 1662: 12: Error: 'VALID_ELF_ABIVERSION' undeclared (first time in this function) dl-load .c: 1662: 12: N Ote: Every unauthorized identifier is reported only once for each function, it appears in DL-Load.c: 1708: 36: Error: Macro "VALID_ELF_ABIVERSION" 2 arguments Passes only, but only 1 DL-load. C: 1577: 3: Warning: Make the 'expected 2' unused variable [2]: *** [/ Home / pahlevan / desktop / rezaee / sources / glibc-build / elf / dl-load.o] making error 1 [2]: Waiting for *** Incomplete jobs .... making [2]: Directory Excluding [1] `/home/pahlevan/Desktop/rezaee/sources/glib-2.12.1/elf ': *** [Elf / Subidar_Lib] Make Error 2 [1]: Directory` / home / pahlevan / Desktop My configuration except for /rezaee/sources/glib-2.12.1 is: GCC- 4.5.1 + linux.2.6.35.4 + binutils-2.20.51 + glibc-2.12.1 + Port -2.11 CLFS_TARGET = "Handheld Linux-Gnu" CD / Source TAR-JXF GLBIC-1.22.1. tar Bz2 cd ./glibc.2.12.1 tr-jxf./glib-ports-2.11.tar.bz2 cp -v Makeconfig {, orig} sed -e k / -lgcc_eh // g 'Makeconfig.orig & gt; Makeconfig patch-np1 -i ../glib-2.12.1-gcc_fix-1.patch patch -np1 -i../glib.2.12.1- macphil_fix -1.patch mkdir-v //glibcbuild cd./ Glib-build export cc = "$ {CLFS_TARGET} -gcc" export LD = "$ {CLFS_TARGET} -LD" export AS = "$ {CLFS_TARGET} -if" export RANLIB = "$ {CLFS_TARGET} -nnlib". ./glib-2.12.1/configure --prefix = / tools \ --host = $ {CLFS_TARGET} --build = $ {CLFS_HOST} - Together-TLS - with -__ threads - Disabled-profile - enabled-add -on- with-binutils = / cross-tools / bin -with-headers = / tools / include \ --enable-kernel = 2.6.22.5 - accompany header = / tools / include libc_cv_forced_unwind = yes Libc_cv_c_cleanup = yes libc_cv_gnu89_inline = Yes install CD. Rm -rf glibc-2.12.1 glibc-build
You must remove this line:
#define VALID _ELF_ABIVERSION (see) (see == 0) #define VALID_ELF_OSABI (OSBI) (OSBI == ELFOSABI_S YSV || Osabi == ELFOSABI_ARM) # Validated VALID_ELF_HEADER (HDR, XP, Size) Memcamp (HDR, XP, Size-2) == 0 & amp; amp; amp; amp; VALID_ELF_OSABI (HDR [EI_OSABI]) & amp; amp; VALID_ELF_ABIVERSION ( HDR [EI_ABIVERSION])
and replace with lines:
#ifndef VALID_ELF_ABIVERSION #define VALID_ELF_ABIVERSION (see) (ver == 0) #endif # Ifndef VALID_ELF_OSABI #define VALID_ELF_OSABI (OSBI == ELFOSABI_SYSV || OSBI == ELFOSABI_ARM) #endif #ifndef VALID_ELF_HEADER # Validated VALID_ELF_HEADER (HDR, XP, Size) memcmp (HDR, XP, Size-2) == 0; & Amp; VALID_ELF_OSABI (HDR [EI_OSABI]) & amp; Amp; VALID_ELF_ABIVERSION (HDR [EI_ABIVERSION]) #endif
Comments
Post a Comment