openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.45k stars 1.73k forks source link

Fail to build aarch64 rpms on Amazon Linux 2023 #15222

Open daniejstriata opened 1 year ago

daniejstriata commented 1 year ago

I wanted to see if I can build the SRC RPM for OpenZFS 2.1.12 on Amazon Linux 2023 (AL2023) on a aarch64 architecture.

I was able to install all the SPEC's dependencies as found on the host. Building it created the following output and failed as attached here as a text file

System information

Type Version/Name
Distribution Name Amazon Linux
Distribution Version AL2023
Kernel Version 6.1.41-63.114.amzn2023.aarch64
Architecture aarch64
OpenZFS Version 2.1.12

-->

Describe the problem you're observing

The build fails to create the RPM files.

Describe how to reproduce the problem

On the AL2023 aarch64 host:

  1. Download SRC RPM http://download.zfsonlinux.org/epel/9/SRPMS/zfs-2.1.12-1.el9.src.rpm (I decided to try build from the EL9 SRC)
  2. Install required devel packages
  3. run: rpmbuild -bb SPEC/zfs.spec

Include any warning/errors/backtraces from the system logs

amzn2023_ZFS.log Last portion of the build log:

Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/ec2-user/rpmbuild/BUILDROOT/zfs-2.1.12-1.amzn2023.aarch64
error: Installed (but unpackaged) file(s) found:
   /etc/default/zfs

RPM build errors:
    File not found: /home/ec2-user/rpmbuild/BUILDROOT/zfs-2.1.12-1.amzn2023.aarch64/etc/sysconfig/zfs
    absolute symlink: /etc/zfs/zed.d/all-syslog.sh -> /usr/libexec/zfs/zed.d/all-syslog.sh
    absolute symlink: /etc/zfs/zed.d/data-notify.sh -> /usr/libexec/zfs/zed.d/data-notify.sh
    absolute symlink: /etc/zfs/zed.d/history_event-zfs-list-cacher.sh -> /usr/libexec/zfs/zed.d/history_event-zfs-list-cacher.sh
    absolute symlink: /etc/zfs/zed.d/pool_import-led.sh -> /usr/libexec/zfs/zed.d/pool_import-led.sh
    absolute symlink: /etc/zfs/zed.d/resilver_finish-notify.sh -> /usr/libexec/zfs/zed.d/resilver_finish-notify.sh
    absolute symlink: /etc/zfs/zed.d/resilver_finish-start-scrub.sh -> /usr/libexec/zfs/zed.d/resilver_finish-start-scrub.sh
    absolute symlink: /etc/zfs/zed.d/scrub_finish-notify.sh -> /usr/libexec/zfs/zed.d/scrub_finish-notify.sh
    absolute symlink: /etc/zfs/zed.d/statechange-led.sh -> /usr/libexec/zfs/zed.d/statechange-led.sh
    absolute symlink: /etc/zfs/zed.d/statechange-notify.sh -> /usr/libexec/zfs/zed.d/statechange-notify.sh
    absolute symlink: /etc/zfs/zed.d/vdev_attach-led.sh -> /usr/libexec/zfs/zed.d/vdev_attach-led.sh
    absolute symlink: /etc/zfs/zed.d/vdev_clear-led.sh -> /usr/libexec/zfs/zed.d/vdev_clear-led.sh
    absolute symlink: /etc/zfs/zpool.d/ata_err -> /usr/libexec/zfs/zpool.d/ata_err
    absolute symlink: /etc/zfs/zpool.d/cmd_to -> /usr/libexec/zfs/zpool.d/cmd_to
    absolute symlink: /etc/zfs/zpool.d/defect -> /usr/libexec/zfs/zpool.d/defect
    absolute symlink: /etc/zfs/zpool.d/dm-deps -> /usr/libexec/zfs/zpool.d/dm-deps
    absolute symlink: /etc/zfs/zpool.d/enc -> /usr/libexec/zfs/zpool.d/enc
    absolute symlink: /etc/zfs/zpool.d/encdev -> /usr/libexec/zfs/zpool.d/encdev
    absolute symlink: /etc/zfs/zpool.d/fault_led -> /usr/libexec/zfs/zpool.d/fault_led
    absolute symlink: /etc/zfs/zpool.d/health -> /usr/libexec/zfs/zpool.d/health
    absolute symlink: /etc/zfs/zpool.d/hours_on -> /usr/libexec/zfs/zpool.d/hours_on
    absolute symlink: /etc/zfs/zpool.d/iostat -> /usr/libexec/zfs/zpool.d/iostat
    absolute symlink: /etc/zfs/zpool.d/iostat-10s -> /usr/libexec/zfs/zpool.d/iostat-10s
    absolute symlink: /etc/zfs/zpool.d/iostat-1s -> /usr/libexec/zfs/zpool.d/iostat-1s
    absolute symlink: /etc/zfs/zpool.d/label -> /usr/libexec/zfs/zpool.d/label
    absolute symlink: /etc/zfs/zpool.d/locate_led -> /usr/libexec/zfs/zpool.d/locate_led
    absolute symlink: /etc/zfs/zpool.d/lsblk -> /usr/libexec/zfs/zpool.d/lsblk
    absolute symlink: /etc/zfs/zpool.d/media -> /usr/libexec/zfs/zpool.d/media
    absolute symlink: /etc/zfs/zpool.d/model -> /usr/libexec/zfs/zpool.d/model
    absolute symlink: /etc/zfs/zpool.d/nonmed -> /usr/libexec/zfs/zpool.d/nonmed
    absolute symlink: /etc/zfs/zpool.d/nvme_err -> /usr/libexec/zfs/zpool.d/nvme_err
    absolute symlink: /etc/zfs/zpool.d/off_ucor -> /usr/libexec/zfs/zpool.d/off_ucor
    absolute symlink: /etc/zfs/zpool.d/pend_sec -> /usr/libexec/zfs/zpool.d/pend_sec
    absolute symlink: /etc/zfs/zpool.d/pwr_cyc -> /usr/libexec/zfs/zpool.d/pwr_cyc
    absolute symlink: /etc/zfs/zpool.d/r_proc -> /usr/libexec/zfs/zpool.d/r_proc
    absolute symlink: /etc/zfs/zpool.d/r_ucor -> /usr/libexec/zfs/zpool.d/r_ucor
    absolute symlink: /etc/zfs/zpool.d/realloc -> /usr/libexec/zfs/zpool.d/realloc
    absolute symlink: /etc/zfs/zpool.d/rep_ucor -> /usr/libexec/zfs/zpool.d/rep_ucor
    absolute symlink: /etc/zfs/zpool.d/serial -> /usr/libexec/zfs/zpool.d/serial
    absolute symlink: /etc/zfs/zpool.d/ses -> /usr/libexec/zfs/zpool.d/ses
    absolute symlink: /etc/zfs/zpool.d/size -> /usr/libexec/zfs/zpool.d/size
    absolute symlink: /etc/zfs/zpool.d/slot -> /usr/libexec/zfs/zpool.d/slot
    absolute symlink: /etc/zfs/zpool.d/smart -> /usr/libexec/zfs/zpool.d/smart
    absolute symlink: /etc/zfs/zpool.d/smart_test -> /usr/libexec/zfs/zpool.d/smart_test
    absolute symlink: /etc/zfs/zpool.d/smartx -> /usr/libexec/zfs/zpool.d/smartx
    absolute symlink: /etc/zfs/zpool.d/temp -> /usr/libexec/zfs/zpool.d/temp
    absolute symlink: /etc/zfs/zpool.d/test_ended -> /usr/libexec/zfs/zpool.d/test_ended
    absolute symlink: /etc/zfs/zpool.d/test_progress -> /usr/libexec/zfs/zpool.d/test_progress
    absolute symlink: /etc/zfs/zpool.d/test_status -> /usr/libexec/zfs/zpool.d/test_status
    absolute symlink: /etc/zfs/zpool.d/test_type -> /usr/libexec/zfs/zpool.d/test_type
    absolute symlink: /etc/zfs/zpool.d/upath -> /usr/libexec/zfs/zpool.d/upath
    absolute symlink: /etc/zfs/zpool.d/vendor -> /usr/libexec/zfs/zpool.d/vendor
    absolute symlink: /etc/zfs/zpool.d/w_proc -> /usr/libexec/zfs/zpool.d/w_proc
    absolute symlink: /etc/zfs/zpool.d/w_ucor -> /usr/libexec/zfs/zpool.d/w_ucor
    File listed twice: /sbin/zgenhostid
    File listed twice: /usr/lib/.build-id/fa/59d3cbec9aeb9faa5bde18e88cc60665912b64
    absolute symlink: /usr/lib/systemd/system/zfs-import.service -> /dev/null
    absolute symlink: /usr/lib/systemd/system/zfs-load-key.service -> /dev/null
    Installed (but unpackaged) file(s) found:
   /etc/default/zfs
daniejstriata commented 1 year ago

I was able to compile and create the rpms with the source.tar.gz ./configure --enable-systemd make -j1 rpm-utils rpm-dkms

Created:

libnvpair3-2.1.12-1.amzn2023.aarch64.rpm
libnvpair3-debuginfo-2.1.12-1.amzn2023.aarch64.rpm
libuutil3-2.1.12-1.amzn2023.aarch64.rpm
libuutil3-debuginfo-2.1.12-1.amzn2023.aarch64.rpm
libzfs5-2.1.12-1.amzn2023.aarch64.rpm
libzfs5-debuginfo-2.1.12-1.amzn2023.aarch64.rpm
libzfs5-devel-2.1.12-1.amzn2023.aarch64.rpm
libzpool5-2.1.12-1.amzn2023.aarch64.rpm
libzpool5-debuginfo-2.1.12-1.amzn2023.aarch64.rpm
python3-pyzfs-2.1.12-1.amzn2023.noarch.rpm
zfs-2.1.12-1.amzn2023.aarch64.rpm
zfs-2.1.12-1.amzn2023.src.rpm
zfs-debuginfo-2.1.12-1.amzn2023.aarch64.rpm
zfs-debugsource-2.1.12-1.amzn2023.aarch64.rpm
zfs-dkms-2.1.12-1.amzn2023.noarch.rpm
zfs-dkms-2.1.12-1.amzn2023.src.rpm
zfs-dracut-2.1.12-1.amzn2023.noarch.rpm
zfs-test-2.1.12-1.amzn2023.aarch64.rpm
zfs-test-debuginfo-2.1.12-1.amzn2023.aarch64.rpm