GNU bug report logs -
#8960
stdbuf on bi-arch systems
Previous Next
To reply to this bug, email your comments to 8960 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#8960
; Package
coreutils
.
(Wed, 29 Jun 2011 20:48:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Bruno Haible <bruno <at> clisp.org>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 29 Jun 2011 20:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
The program 'stdbuf' on bi-arch x86 / x86_64 systems cannot work on all kinds
of programs.
I'm using 'stdbuf' from coreutils-8.12 on a glibc x86 / x86_64 system.
The binary built for x86 cannot be called on x86_64 programs:
$ /arch/x86-linux/gnu/bin/stdbuf -o 0 /bin/pwd
ERROR: ld.so: object '/arch/x86-linux/gnu/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored.
/home/bruno
The binary built for x86_64 cannot be called on x86 programs:
$ /arch/x86_64-linux/gnu/bin/stdbuf -o 0 /arch/x86-linux/gnu/bin/pwd
ERROR: ld.so: object '/arch/x86_64-linux/gnu/lib64/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored.
/home/bruno
I would like to have a single binary that works on both x86 and x86_64 programs.
Bruno
--
In memoriam José Olaya <http://es.wikipedia.org/wiki/José_Olaya>
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#8960
; Package
coreutils
.
(Mon, 04 Jul 2011 16:17:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 8960 <at> debbugs.gnu.org (full text, mbox):
On 29/06/11 21:47, Bruno Haible wrote:
> Hi,
>
> The program 'stdbuf' on bi-arch x86 / x86_64 systems cannot work on all kinds
> of programs.
>
> I'm using 'stdbuf' from coreutils-8.12 on a glibc x86 / x86_64 system.
>
> The binary built for x86 cannot be called on x86_64 programs:
>
> $ /arch/x86-linux/gnu/bin/stdbuf -o 0 /bin/pwd
> ERROR: ld.so: object '/arch/x86-linux/gnu/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored.
> /home/bruno
>
> The binary built for x86_64 cannot be called on x86 programs:
>
> $ /arch/x86_64-linux/gnu/bin/stdbuf -o 0 /arch/x86-linux/gnu/bin/pwd
> ERROR: ld.so: object '/arch/x86_64-linux/gnu/lib64/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored.
> /home/bruno
>
> I would like to have a single binary that works on both x86 and x86_64 programs.
Hmm, I haven't look at this, but it seems like
if stdbuf sets both LD_PRELOAD_32 and LD_PRELOAD_64 to the
appropriate libstdbuf.so, it should just work.
However these libs would be in separate builds so
I need to look into, how best to support this.
cheers,
Pádraig.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#8960
; Package
coreutils
.
(Fri, 18 Jan 2019 09:52:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 8960 <at> debbugs.gnu.org (full text, mbox):
severity 8960 wishlist
stop
(triaging old bugs)
Hello,
On 2011-07-04 10:15 a.m., Pádraig Brady wrote:
> On 29/06/11 21:47, Bruno Haible wrote:
>> The program 'stdbuf' on bi-arch x86 / x86_64 systems cannot work on all kinds
>> of programs.
[...]
>> I would like to have a single binary that works on both x86 and x86_64 programs.
[...]
> if stdbuf sets both LD_PRELOAD_32 and LD_PRELOAD_64 to the
> appropriate libstdbuf.so, it should just work.
It's been more than 7 years since last comments/progress on this issue.
Is it still relevant / needed ?
If no one replies, I'll close it as "wontfix" in a few days.
regards,
- assaf
Severity set to 'wishlist' from 'normal'
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 18 Jan 2019 10:55:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#8960
; Package
coreutils
.
(Fri, 18 Jan 2019 18:10:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 8960 <at> debbugs.gnu.org (full text, mbox):
Hi Assaf,
> >> The program 'stdbuf' on bi-arch x86 / x86_64 systems cannot work on all kinds
> >> of programs.
> [...]
> >> I would like to have a single binary that works on both x86 and x86_64 programs.
> [...]
> > if stdbuf sets both LD_PRELOAD_32 and LD_PRELOAD_64 to the
> > appropriate libstdbuf.so, it should just work.
>
> It's been more than 7 years since last comments/progress on this issue.
> Is it still relevant / needed ?
Yes, it is still relevant:
* Bi-arch systems are still frequent. Large packages are still often
provided as 32-bit binaries, from some vendors.
* The behaviour of stdbuf in coreutils-8.30 is still the same:
$ /arch/x86-linux/gnu/bin/stdbuf -o 0 /bin/pwd
ERROR: ld.so: object '/arch/x86-linux/gnu/libexec/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/bruno
$ /arch/x86_64-linux/gnu/bin/stdbuf -o 0 /arch/x86-linux/gnu/bin/pwd
ERROR: ld.so: object '/arch/x86_64-linux/gnu/libexec/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
/home/bruno
* The distributor (Ubuntu 16.04 in my case) has not fixed the problem either:
$ /usr/bin/stdbuf --version
stdbuf (GNU coreutils) 8.25
...
$ /usr/bin/stdbuf -o 0 /arch/x86-linux/gnu/bin/pwd
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
/home/bruno
Bruno
This bug report was last modified 6 years and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.