Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

711 views
Skip to first unread message

Reiner Buehl

unread,
Mar 27, 2022, 8:40:04 AM3/27/22
to
Hi all!

I am trying to build an amd64 Debian package from sources but the
command dpkg-buildpackage -us -uc fails with a number of the following
error messages:

ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be
preloaded (wrong ELF class: ELFCLASS64): ignored.

I have installed (and re-installed) the devscripts, fakeroot and
build-essential packages but still get the error. The system was
crossgraded from i386 to amd64 and still runs a mix of i386 and amd64
but the build packages seem to be all amd64:

bilbo:~# dpkg -l | grep fake
ii  fakeroot 1.23-1                                amd64        tool for
simulating superuser privileges
ii  libfakeroot:amd64 1.23-1                                amd64       
tool for simulating superuser privileges - shared libraries
bilbo:~# dpkg -l | grep devscripts
ii  devscripts 2.19.5+deb10u1                        amd64       
scripts to make the life of a Debian Package maintainer easier
bilbo:~# dpkg -l | grep build-essentila
bilbo:~# dpkg -l | grep build-essential
ii  build-essential 12.6                                  amd64       
Informational list of build-essential packages

Is there anything else that I need to (manually) change?

Reiner

Nicholas Geovanis

unread,
Mar 27, 2022, 12:20:05 PM3/27/22
to

On Sun, Mar 27, 2022, 7:31 AM Reiner Buehl <reiner...@gmail.com> wrote:
Hi all!

I am trying to build an amd64 Debian package from sources but the
command dpkg-buildpackage -us -uc fails with a number of the following
error messages:

ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be
preloaded (wrong ELF class: ELFCLASS64): ignored.

Is it possible that you are already setting the
LD_LIBRARY_PATH environment variable for your shell? And that its contents are pointing the loader at the wrong libraries?

Only other thing I can think of: Were there any newer header-file packages that needed to be installed along with? Again maybe finding an older include file ahead of the newer confused the loader at runtime. HTH.

Reiner Buehl

unread,
Mar 27, 2022, 5:40:05 PM3/27/22
to


On 27.03.2022 18:12, Nicholas Geovanis wrote:

On Sun, Mar 27, 2022, 7:31 AM Reiner Buehl <reiner...@gmail.com> wrote:
Hi all!

I am trying to build an amd64 Debian package from sources but the
command dpkg-buildpackage -us -uc fails with a number of the following
error messages:

ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be
preloaded (wrong ELF class: ELFCLASS64): ignored.

Is it possible that you are already setting the
LD_LIBRARY_PATH environment variable for your shell? And that its contents are pointing the loader at the wrong libraries?

The environment has no LD_LIBRARY_PATH set (env | grep LD is empty). /etc/ld.so.conf and the files in /etc/ld.so.conf.d (i386-linux-gnu.conf, libc.conf, x86_64-linux-gnu.conf) are unmodified according to dpkg --verify libc-bin libc6:i386 libc6:amd64


Only other thing I can think of: Were there any newer header-file packages that needed to be installed along with? Again maybe finding an older include file ahead of the newer confused the loader at runtime. HTH.

Do you know how to verify this?


0 new messages