← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2117696] Re: libext2fs-dev installation of ARM64 version in parallel to AMD64 not possible

 

If you work for a company, I'm sure you could find a contractor familiar
with Debian who could create a proposed set of patches to make e2fsprogs
full multiarch.   However, it might be cheaper for your company to
either (a) just purchase a AMD64 build server, or (b) use a ARM64 Cloud
VM from Amazon Web Services, Google Compute Engine, or Micrsoft Azure
(disclosure: I work for Google, but my opinions here are my own and not
Google).

Alternatively, (c) I would encourage that you take a look at my build
chroot script[1].

[1] https://github.com/tytso/xfstests-bld/blob/master/setup-buildchroot

Once it's set up it';s just a matter of "schroot -c bookworm-arm64 --
build-command".   Changing the built-chroot to use an Unbuntu version
such as Jammy instead of Bookworm or Trixie is pretty simple.     Once
it's built, you could then run "schroot-c bookworm-arm64 -u root" and
then you could run "apt update; apt install package1 package2 ..."   Or
you could edit set of packages in the setup-buildchroot script.

If you want to see an example of how I use the build chroot, see the
"build-appliance" script[2], and how I actualy do a release is to run
the command "./selftests/appliance" script[3].  The selftest script
builds test appliances for i386, amd64, and arm64 for use with qemu, and
it also build Google Compute Engine test appliances images for amd64 and
arm64, and runs selftests to make sure the appliance works correctly.
This is how I create the test applince images found here[4].

[2] https://github.com/tytso/xfstests-bld/blob/master/build-appliance
[3] https://github.com/tytso/xfstests-bld/blob/master/selftests/appliance
[4] https://www.kernel.org/pub/linux/kernel/people/tytso/kvm-xfstests/

My build runs taks a bit over an hour for arm64 and 20 minutes for
amd64.   So even though I'm running the compiler under qemu, it really
doesn't take that long.   And again, hardware is cheap; software
engineers are expensive.  My build server is a Dell AMD server with 64
GiB memory, and 48 AMD Threadripper cores.    It costs less than $7k in
May 2025.

Now figure out how much hiring a contractor would cost (and it won't be
me; Google keeps me busy enough as it is --- but even if I were on the
market as a contractor, I'd likely tell you that buying hardware would
be cheaper; you can get a 128-core ARM64 workstation for under $2700).

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to e2fsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/2117696

Title:
  libext2fs-dev installation of ARM64 version in parallel to AMD64 not
  possible

Status in e2fsprogs package in Ubuntu:
  New

Bug description:
  I need to build software for both AMD and ARM on one system (build-server)
  Therefore i want to install the libext2fs-dev:amd64 and libext2fs-dev:arm64 in parallel.
  Via apt install this doesn't work  - it always wants to uninstall the other package

      sudo apt install libext2fs-dev:arm64
      ...
      The following packages will be REMOVED:
        libext2fs-dev

  I also cannot use e.g. libarchive-dev:arm64, because it depends on
  libext2fs-dev

  Diff of the data in the two packages (libext2fs-
  dev_1.47.0-2.4~exp1ubuntu4.1_amd64.deb vs libext2fs-
  dev_1.47.0-2.4~exp1ubuntu4.1_arm64.deb) shows no reason for this:
  (headers are the same, binaries are in architecture-specific folders)

      sudo diff --brief -sr  ext2fs-dev-amd64/data ext2fs-dev-arm64/data
      Files ext2fs-dev-amd64/data/usr/include/e2p/e2p.h and ext2fs-dev-arm64/data/usr/include/e2p/e2p.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/bitops.h and ext2fs-dev-arm64/data/usr/include/ext2fs/bitops.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/ext2_err.h and ext2fs-dev-arm64/data/usr/include/ext2fs/ext2_err.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/ext2_ext_attr.h and ext2fs-dev-arm64/data/usr/include/ext2fs/ext2_ext_attr.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/ext2_fs.h and ext2fs-dev-arm64/data/usr/include/ext2fs/ext2_fs.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/ext2fs.h and ext2fs-dev-arm64/data/usr/include/ext2fs/ext2fs.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/ext2_io.h and ext2fs-dev-arm64/data/usr/include/ext2fs/ext2_io.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/ext2_types.h and ext2fs-dev-arm64/data/usr/include/ext2fs/ext2_types.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/ext3_extents.h and ext2fs-dev-arm64/data/usr/include/ext2fs/ext3_extents.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/hashmap.h and ext2fs-dev-arm64/data/usr/include/ext2fs/hashmap.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/qcow2.h and ext2fs-dev-arm64/data/usr/include/ext2fs/qcow2.h are identical
      Files ext2fs-dev-amd64/data/usr/include/ext2fs/tdb.h and ext2fs-dev-arm64/data/usr/include/ext2fs/tdb.h are identical
      Only in ext2fs-dev-arm64/data/usr/lib: aarch64-linux-gnu
      Only in ext2fs-dev-amd64/data/usr/lib: x86_64-linux-gnu
      Files ext2fs-dev-amd64/data/usr/share/doc/libext2fs2/html-info/libext2fs.html and ext2fs-dev-arm64/data/usr/share/doc/libext2fs2/html-info/libext2fs.html are identical
      Files ext2fs-dev-amd64/data/usr/share/doc/libext2fs2/libext2fs.texi.gz and ext2fs-dev-arm64/data/usr/share/doc/libext2fs2/libext2fs.texi.gz are identical
      ...
      Files ext2fs-dev-amd64/data/usr/share/doc/libext2fs-dev/copyright and ext2fs-dev-arm64/data/usr/share/doc/libext2fs-dev/copyright are identical
      Files ext2fs-dev-amd64/data/usr/share/doc-base/libext2fs-dev.libext2fs and ext2fs-dev-arm64/data/usr/share/doc-base/libext2fs-dev.libext2fs are identical
      Files ext2fs-dev-amd64/data/usr/share/info/libext2fs.info.gz and ext2fs-dev-arm64/data/usr/share/info/libext2fs.info.gz are identical

  Thank you!

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: libext2fs-dev 1.47.0-2.4~exp1ubuntu4.1
  ProcVersionSignature: Ubuntu 6.14.0-24.24~24.04.3-generic 6.14.6
  Uname: Linux 6.14.0-24-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.8
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Jul 23 13:30:07 2025
  InstallationDate: Installed on 2025-07-23 (0 days ago)
  InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250215)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: e2fsprogs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/2117696/+subscriptions



References