public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/29938] New: glibc-2.36 fails to build with Os with undefined reference to strcpy
@ 2022-12-23 12:52 john.frankish at outlook dot com
  2022-12-24  1:09 ` [Bug build/29938] " goldstein.w.n at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: john.frankish at outlook dot com @ 2022-12-23 12:52 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 29938
           Summary: glibc-2.36 fails to build with Os with undefined
                    reference to strcpy
           Product: glibc
           Version: 2.36
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: john.frankish at outlook dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

glibc-2.36 fails to build with Os, but builds without error with O2.

Built using:

echo "rootsbindir=/usr/sbin" > configparms

CC="gcc -mtune=generic -Os -pipe" ../configure --prefix=/usr --disable-werror
--enable-kernel=5.4.3 --enable-stack-protector=strong
--with-headers=/usr/include libc_cv_slibdir=/lib --enable-obsolete-rpc
--libexecdir=/usr/lib/glibc

find . -name config.make -type f -exec sed -i 's/-g -O2//g' {} \;
find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \;
find ../ -name Makeconfig -type f -exec sed -i 's/-g -O2//g' {} \;

make

/usr/lib/gcc/x86_64-tc-linux-gnu/12.2.0/../../../../x86_64-tc-linux-gnu/bin/ld:
/sources/glibc-2.36/build/elf/librtld.os: in function `_dl_start_profile':
(.text+0x9587): undefined reference to `strcpy'
/usr/lib/gcc/x86_64-tc-linux-gnu/12.2.0/../../../../x86_64-tc-linux-gnu/bin/ld:
/sources/glibc-2.36/build/elf/librtld.os: in function `_dl_load_cache_lookup':
(.text+0xe5fd): undefined reference to `strcpy'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1346: /sources/glibc-2.36/build/elf/ld.so] Error 1

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-01-03 16:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23 12:52 [Bug build/29938] New: glibc-2.36 fails to build with Os with undefined reference to strcpy john.frankish at outlook dot com
2022-12-24  1:09 ` [Bug build/29938] " goldstein.w.n at gmail dot com
2022-12-25  9:26 ` john.frankish at outlook dot com
2022-12-26 20:23 ` goldstein.w.n at gmail dot com
2022-12-27 14:17 ` john.frankish at outlook dot com
2022-12-27 14:18 ` john.frankish at outlook dot com
2022-12-29 12:59 ` adhemerval.zanella at linaro dot org
2022-12-29 13:00 ` adhemerval.zanella at linaro dot org
2022-12-31 11:35 ` john.frankish at outlook dot com
2022-12-31 13:32 ` adhemerval.zanella at linaro dot org
2022-12-31 15:50 ` john.frankish at outlook dot com
2023-01-03 15:13 ` adhemerval.zanella at linaro dot org
2023-01-03 16:28 ` john.frankish at outlook dot com

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).