Package: libc6-dev Version: 2.37-12 Severity: normal X-Debbugs-Cc: pkg-qemu-de...@lists.alioth.debian.org
When building a statically-linked application with -static-pie flag (which is not supported on every platform), on i386 where it seems to be supported (at least -static-pie flag is accepted), the link fails like this: /usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/13/../../../i386-linux-gnu/libc.a(memset_chk-nonshared.o): unsupported non-PIC call to IFUNC `memset' /usr/bin/ld: failed to set dynamic section sizes: bad value This can be observed, for example, here: https://buildd.debian.org/status/fetch.php?pkg=qemu&arch=i386&ver=1%3A8.2.0%7Erc1%2Bds-1&stamp=1700774780&raw=0 There are some architectures where -static-pie build is supported and works (eg amd64, arm64, s390x), where it is not supported at all (most other architectures), and where it is supported but does not work, and this is i386, - this is what this bug is about. I guess it needs to be either rejected entirely as unsupported, or to be working. Does it make sense to enable pic build of glibc on i386 architecture? Right now I'm not sure what to do with qemu which is FTBFS on i386 due to this. Thanks, /mjt