This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] test-in-container: fix Arch Linux build-programs bug?


Hi,

From commit 561b0bec444 onward, my cross-build for ARM target from X64
host started failing with the following error:

arm-linux-gnueabi-gcc -nostdlib -nostartfiles
-o /home/3adev/src/siemens/y2038/glibc/build/support/links-dso-program
-Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both /home/3adev/src/siemens/y2038/glibc/build/csu/crt1.o /home/3adev/src/siemens/y2038/glibc/build/csu/crti.o
`arm-linux-gnueabi-gcc  --print-file-name=crtbegin.o` /home/3adev/src/siemens/y2038/glibc/build/support/links-dso-program.o -lstdc++ -lgcc_s -Wl,-dynamic-linker=/lib/ld-linux.so.3 -Wl,-rpath-link=/home/3adev/src/siemens/y2038/glibc/build:/home/3adev/src/siemens/y2038/glibc/build/math:/home/3adev/src/siemens/y2038/glibc/build/elf:/home/3adev/src/siemens/y2038/glibc/build/dlfcn:/home/3adev/src/siemens/y2038/glibc/build/nss:/home/3adev/src/siemens/y2038/glibc/build/nis:/home/3adev/src/siemens/y2038/glibc/build/rt:/home/3adev/src/siemens/y2038/glibc/build/resolv:/home/3adev/src/siemens/y2038/glibc/build/mathvec:/home/3adev/src/siemens/y2038/glibc/build/support:/home/3adev/src/siemens/y2038/glibc/build/crypt:/home/3adev/src/siemens/y2038/glibc/build/nptl /home/3adev/src/siemens/y2038/glibc/build/libc.so.6 /home/3adev/src/siemens/y2038/glibc/build/libc_nonshared.a -Wl,--as-needed /home/3adev/src/siemens/y2038/glibc/build/elf/ld.so -Wl,--no-as-needed -lgcc /home/3adev/src/siemens/y2038/glibc/build/elf/libgcc-stubs.a `arm-linux-gnueabi-gcc  --print-file-name=crtend.o` /home/3adev/src/siemens/y2038/glibc/build/csu/crtn.o
/home/3adev/src/siemens/y2038/glibc/build/support/links-dso-program.o:
file not recognized: Format de fichier non reconnu

(build is French; this means unrecognized file format)

Doing a

	$ file support/*.o

Results in:

support/echo-container.o:    ELF 32-bit LSB relocatable, ARM, EABI5
version 1 (SYSV), with debug_info, not stripped
support/links-dso-program.o: ELF 64-bit LSB relocatable, x86-64,
version 1 (SYSV), with debug_info, not stripped
support/shell-container.o:   ELF 32-bit LSB relocatable, ARM, EABI5
version 1 (SYSV), with debug_info, not stripped
support/stamp.o:             empty
support/test-container.o:    ELF 32-bit LSB relocatable, ARM, EABI5
version 1 (SYSV), with debug_info, not stripped
support/true-container.o:    ELF 32-bit LSB relocatable, ARM, EABI5
version 1 (SYSV), with debug_info, not stripped

Apparently, links-dso-program.o is built native for x86-64 then linked
for ARM.

Did the way to cross-build change with the advent of test-in-container?

Cordialement,
Albert ARIBAUD
3ADEV


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]