Your message dated Sun, 3 Dec 2023 13:55:59 +0100
with message-id <zwx63_tk83rmp...@aurel32.net>
and subject line Re: Bug#1056739: -static-pie fails on i386
has caused the Debian Bug report #1056739,
regarding -static-pie fails on i386
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1056739: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056739
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Version: 2.38-1

Hi,

On 2023-11-25 21:49, Michael Tokarev wrote:
> 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.

i386 is not really used anymore, so this went unnoticed until now. It
appears that the issue is fixed in glibc 2.38, probably as a side effect
of other changes. I am not sure it is worth backporting the related
changes to 2.37 in sid, with the risk of breaking things.  Anyway, the
goal is to push glibc 2.38 to sid in the next weeks.

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

It seems that you disabled PIE on i386 in the latest qemu upload. Could
it be kept like that until we get glibc 2.38 in sid?

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurel...@aurel32.net                     http://aurel32.net

--- End Message ---

Reply via email to