public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dilfridge at gentoo dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/30721] New: 2.38 build fails for  --disable-multiarch --enable-fortify-source , undefined reference to `__GI___memset_chk' and others
Date: Fri, 04 Aug 2023 19:43:27 +0000	[thread overview]
Message-ID: <bug-30721-131@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 30721
           Summary: 2.38 build fails for  --disable-multiarch
                    --enable-fortify-source , undefined reference to
                    `__GI___memset_chk' and others
           Product: glibc
           Version: 2.38
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: dilfridge at gentoo dot org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

This is a clone of https://bugs.gentoo.org/911580 , please see the original
report for more information. 

Build fails for --disable-multiarch --enable-fortify-source with e.g.


x86_64-pc-linux-gnu-gcc -m64 -march=nocona -mtune=native -pipe -O2
-fcf-protection=none -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed  -shared
-static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/lib64/ld-linux-x86-64.so.2 -Wl,-z,pack-relative-relocs 
-B/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/

-Wl,--version-script=/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.map
-Wl,-soname=libc.so.6 -Wl,-z,relro -Wl,-z,now -nostdlib -nostartfiles -e
__libc_main
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/math
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/dlfcn
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/nss
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/nis
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/rt
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/resolv
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/mathvec
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/support
-L/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/nptl
-Wl,-rpath-link=/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/math:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/dlfcn:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/nss:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/nis:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/rt:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/resolv:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/mathvec:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/support:/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/nptl
-o
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.so
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/abi-note.o
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/interp.os
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/ld.so
-lgcc
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/sofini.os
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `__GI___gconv_open':
(.text+0x9a7): undefined reference to `__GI___memset_chk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `add_module':
gconv_conf.c:(.text+0x298e): undefined reference to `__GI___memcpy_chk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `add_alias2.part.0':
gconv_conf.c:(.text+0x2b19): undefined reference to `__GI___memcpy_chk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `__gconv_find_shlib':
(.text+0xb113): undefined reference to `__GI___memcpy_chk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `new_composite_name':
setlocale.c:(.text+0xb85c): undefined reference to `__GI___memcpy_chk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `_nl_find_locale':
(.text+0xc289): undefined reference to `__GI___memcpy_chk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `_nl_intern_locale_data':
(.text+0xca53): undefined reference to `__GI___memset_chk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/portage/sys-libs/glibc-2.38/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.os.clean:
in function `newlocale':
(.text+0xde42): undefined reference to `__GI___memcpy_chk'
...

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

             reply	other threads:[~2023-08-04 19:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-04 19:43 dilfridge at gentoo dot org [this message]
2023-08-04 19:43 ` [Bug libc/30721] " dilfridge at gentoo dot org
2023-08-04 19:48 ` sam at gentoo dot org
2023-08-04 19:50 ` sam at gentoo dot org
2023-08-05 11:35 ` siddhesh at sourceware dot org
2023-08-08 16:22 ` siddhesh at sourceware dot org
2023-08-08 20:23 ` adhemerval.zanella at linaro dot org
2023-08-08 21:02 ` [Bug libc/30721] 2.38 build fails for --disable-multi-arch " sam at gentoo dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30721-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).