[Bug librt/23273] New: glibc 2.27 doesn't build on arm: .../librtld.os: In function `process_dl_debug': raise.c:(.text+0x4f0): undefined reference to `memcpy'

dilfridge at gentoo dot org sourceware-bugzilla@sourceware.org
Sun Jun 10 20:29:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23273

            Bug ID: 23273
           Summary: glibc 2.27 doesn't build on arm: .../librtld.os: In
                    function `process_dl_debug': raise.c:(.text+0x4f0):
                    undefined reference to `memcpy'
           Product: glibc
           Version: 2.27
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: librt
          Assignee: unassigned at sourceware dot org
          Reporter: dilfridge at gentoo dot org
  Target Milestone: ---

Forwarding this for our (Gentoo) arm maintainers; the original bug report with
full logs is
https://bugs.gentoo.org/657760

This glibc package builds fine on other architectures (it even passes the
testsuite on x86 and x86_64 for me). However, on arm the following happens:

gcc 7.3.0
binutils 2.30

CFLAGS="-O2 -pipe -march=armv7-a -mfpu=neon -mfloat-abi=hard"


armv7a-hardfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed -Wl,-O1
-Wl,--as-needed  -nostdlib -nostartfiles -r -o
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os
'-Wl,-('
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/dl-allobjs.os
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/rtld-libc.a
-lgcc '-Wl,-)' \
         
-Wl,-Map,/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os.map
armv7a-hardfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed -Wl,-O1
-Wl,--as-needed  -nostdlib -nostartfiles -shared -o
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/ld.so.new
              \
          -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,-z,now  \
         
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os
-Wl,--version-script=/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/ld.map
         \
          -Wl,-soname=ld-linux-armhf.so.3                       \
          -Wl,-defsym=_begin=0
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `process_dl_debug':
raise.c:(.text+0x4f0): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `dso_name_valid_for_suid':
raise.c:(.text+0x60c): undefined reference to `memchr'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `_dl_start':
raise.c:(.text+0xc48): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `handle_ld_preload':
raise.c:(.text+0x1124): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `dl_main':
raise.c:(.text+0x1370): undefined reference to `memcpy'
raise.c:(.text+0x2700): undefined reference to `memcpy'
raise.c:(.text+0x3068): undefined reference to `memcpy'
raise.c:(.text+0x3410): undefined reference to `memchr'
raise.c:(.text+0x4068): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `add_name_to_object.isra.4':
raise.c:(.text+0x4e80): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `_dl_map_object_from_fd':
raise.c:(.text+0x5d90): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `open_verify.constprop.7':
raise.c:(.text+0x66d8): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:
In function `open_path':
raise.c:(.text+0x6acc): undefined reference to `memcpy'
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/librtld.os:raise.c:(.text+0x75b4):
more undefined references to `memcpy' follow
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld:
/mnt/distfiles/tmp/portage/sys-libs/glibc-2.27-r3/work/build-arm-armv7a-hardfloat-linux-gnueabi-nptl/elf/ld.so.new:
hidden symbol `memchr' isn't defined
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld:
final link failed: Bad value
collect2: error: ld returned 1 exit status

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list