build failure on gcc10 and --disable-multi-arch
H.J. Lu
hjl.tools@gmail.com
Fri Jan 29 12:50:38 GMT 2021
On Thu, Jan 28, 2021 at 10:44 PM Paul Zimmermann
<Paul.Zimmermann@inria.fr> wrote:
>
> Hi,
>
> with master 6032ae6 I get a build failure on gcc10 (GCC compile farm), with:
>
> $ ../configure --disable-multi-arch --prefix=/usr
>
> The default gcc version is 6.3.0, admittedly quite old, but accepted by
> configure. It works without --disable-multi-arch.
>
> gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib64/ld-linux-x86-64.so.2 -B/home/zimmerma/glibc/build/csu/ -Wl,--version-script=/home/zimmerma/glibc/build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/home/zimmerma/glibc/build -L/home/zimmerma/glibc/build/math -L/home/zimmerma/glibc/build/elf -L/home/zimmerma/glibc/build/dlfcn -L/home/zimmerma/glibc/build/nss -L/home/zimmerma/glibc/build/nis -L/home/zimmerma/glibc/build/rt -L/home/zimmerma/glibc/build/resolv -L/home/zimmerma/glibc/build/mathvec -L/home/zimmerma/glibc/build/support -L/home/zimmerma/glibc/build/crypt -L/home/zimmerma/glibc/build/nptl -Wl,-rpath-link=/home/zimmerma/glibc/build:/home/zimmerma/glibc/build/math:/home/zimmerma/glibc/build/elf:/home/zimmerma/glibc/build/dlfcn:/home/zimmerma/glibc/build/nss:/home/zimmerma/glibc/build/nis:/home/zimmerma/glibc/build/rt:/home/zimmerma/glibc/build/resolv:/home/zimmerma/glibc
> /build/mathvec:/home/zimmerma/glibc/build/support:/home/zimmerma/glibc/build/crypt:/home/zimmerma/glibc/build/nptl -o /home/zimmerma/glibc/build/linkobj/libc.so -T /home/zimmerma/glibc/build/shlib.lds /home/zimmerma/glibc/build/csu/abi-note.o -Wl,--whole-archive /home/zimmerma/glibc/build/linkobj/libc_pic.a -Wl,--no-whole-archive /home/zimmerma/glibc/build/elf/interp.os /home/zimmerma/glibc/build/elf/ld.so -lgcc /home/zimmerma/glibc/build/elf/sofini.os
> /home/zimmerma/glibc/build/linkobj/libc_pic.a(memmove.os): In function `memmove':
> /home/zimmerma/glibc/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:124: multiple definition of `memcpy@GLIBC_2.2.5'
> /home/zimmerma/glibc/build/linkobj/libc_pic.a(memmove-sse2-unaligned-erms.os):/home/zimmerma/glibc/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:124: first defined here
I got
[hjl@gnu-skx-1 build-x86_64-linux]$ ls */memmove*.os
debug/memmove_chk.os string/memmove.os
[hjl@gnu-skx-1 build-x86_64-linux]$
Where does memmove-sse2-unaligned-erms.os come frome?
> /home/zimmerma/glibc/build/linkobj/libc_pic.a(memset.os): In function `__bzero':
> /home/zimmerma/glibc/string/../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:68: multiple definition of `__bzero'
> /home/zimmerma/glibc/build/linkobj/libc_pic.a(memset-sse2-unaligned-erms.os):/home/zimmerma/glibc/string/../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:68: first defined here
> /home/zimmerma/glibc/build/linkobj/libc_pic.a(strstr-sse2-unaligned.os): In function `__strstr_sse2_unaligned':
> /home/zimmerma/glibc/string/../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:270: undefined reference to `__strstr_sse2'
> /usr/bin/ld: /home/zimmerma/glibc/build/linkobj/libc_pic.a(strstr-sse2-unaligned.os): relocation R_X86_64_PC32 against undefined symbol `__strstr_sse2' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> Makerules:706: recipe for target '/home/zimmerma/glibc/build/linkobj/libc.so' failed
> make[1]: *** [/home/zimmerma/glibc/build/linkobj/libc.so] Error 1
> make[1]: Leaving directory '/home/zimmerma/glibc'
> Makefile:9: recipe for target 'all' failed
> make: *** [all] Error 2
>
> Paul
BUILD_CC="gcc" CC="/usr/gcc-6.3.1-x32/bin/gcc"
CXX="/usr/gcc-6.3.1-x32/bin/g++" CFLAGS="-O2 -g"
/export/gnu/import/git/gitlab/x86-glibc/configure --disable-multi-arch
--prefix=/usr --without-selinux --target=x86_64-linux
--build=x86_64-linux --host=x86_64-linux
--enable-hardcoded-path-in-tests -
works for me.
--
H.J.
More information about the Libc-alpha
mailing list