Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905438 - sys-fs/zfs-kmod fails to compile with sys-devel/gcc:13 on arm64: the register specified for ‘w0’ is not general enough to be used as a register variable
Summary: sys-fs/zfs-kmod fails to compile with sys-devel/gcc:13 on arm64: the register...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL: https://github.com/openzfs/zfs/issues...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-05-02 01:20 UTC by matoro
Modified: 2023-06-07 09:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,945.29 KB, text/x-log)
2023-05-02 01:22 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2023-05-02 01:20:54 UTC
Inline assembly for arm64 in sys-fs/zfs-kmod fails to compile with sys-devel/gcc:13.  No problems with sys-devel/gcc:12.  Already tracked upstream at https://github.com/openzfs/zfs/issues/14624.  No upstream patch yet.

In file included from /var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:30:
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h: In function ‘raidz_zero_abd_cb’:
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon_common.h:540:24: error: the register specified for ‘w0’ is not general enough to be used as a register variable
  540 | register unsigned char w0 asm("v0") __attribute__((vector_size(16)));   \
      |                        ^~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:36:9: note: in expansion of macro ‘GEN_X_DEFINE_0_3’
   36 |         GEN_X_DEFINE_0_3() \
      |         ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h:165:9: note: in expansion of macro ‘ZERO_DEFINE’
  165 |         ZERO_DEFINE();
      |         ^~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon_common.h:541:24: error: the register specified for ‘w1’ is not general enough to be used as a register variable
  541 | register unsigned char w1 asm("v1") __attribute__((vector_size(16)));   \
      |                        ^~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:36:9: note: in expansion of macro ‘GEN_X_DEFINE_0_3’
   36 |         GEN_X_DEFINE_0_3() \
      |         ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h:165:9: note: in expansion of macro ‘ZERO_DEFINE’
  165 |         ZERO_DEFINE();
      |         ^~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon_common.h:542:24: error: the register specified for ‘w2’ is not general enough to be used as a register variable
  542 | register unsigned char w2 asm("v2") __attribute__((vector_size(16)));   \
      |                        ^~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:36:9: note: in expansion of macro ‘GEN_X_DEFINE_0_3’
   36 |         GEN_X_DEFINE_0_3() \
      |         ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h:165:9: note: in expansion of macro ‘ZERO_DEFINE’
  165 |         ZERO_DEFINE();
      |         ^~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon_common.h:543:24: error: the register specified for ‘w3’ is not general enough to be used as a register variable
  543 | register unsigned char w3 asm("v3") __attribute__((vector_size(16)));
      |                        ^~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:36:9: note: in expansion of macro ‘GEN_X_DEFINE_0_3’
   36 |         GEN_X_DEFINE_0_3() \
      |         ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h:165:9: note: in expansion of macro ‘ZERO_DEFINE’
  165 |         ZERO_DEFINE();
      |         ^~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h: In function ‘raidz_copy_abd_cb’:
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon_common.h:540:24: error: the register specified for ‘w0’ is not general enough to be used as a register variable
  540 | register unsigned char w0 asm("v0") __attribute__((vector_size(16)));   \
      |                        ^~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:42:9: note: in expansion of macro ‘GEN_X_DEFINE_0_3’
   42 |         GEN_X_DEFINE_0_3() \
      |         ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h:201:9: note: in expansion of macro ‘COPY_DEFINE’
  201 |         COPY_DEFINE();
      |         ^~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon_common.h:541:24: error: the register specified for ‘w1’ is not general enough to be used as a register variable
  541 | register unsigned char w1 asm("v1") __attribute__((vector_size(16)));   \
      |                        ^~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:42:9: note: in expansion of macro ‘GEN_X_DEFINE_0_3’
   42 |         GEN_X_DEFINE_0_3() \
      |         ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h:201:9: note: in expansion of macro ‘COPY_DEFINE’
  201 |         COPY_DEFINE();
      |         ^~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon_common.h:542:24: error: the register specified for ‘w2’ is not general enough to be used as a register variable
  542 | register unsigned char w2 asm("v2") __attribute__((vector_size(16)));   \
      |                        ^~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_aarch64_neon.c:42:9: note: in expansion of macro ‘GEN_X_DEFINE_0_3’
   42 |         GEN_X_DEFINE_0_3() \
      |         ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.11/work/zfs-2.1.11/module/zfs/vdev_raidz_math_impl.h:201:9: note: in expansion of macro ‘COPY_DEFINE’
  201 |         COPY_DEFINE();
      |         ^~~~~~~~~~~



...and so on.

Reproducible: Always




Portage 3.0.47 (python 3.11.3-final-0, default/linux/arm64/17.0, gcc-12, glibc-2.37-r2, 6.1.24-gentoo-dist aarch64)
=================================================================
System uname: Linux-6.1.24-gentoo-dist-aarch64-with-glibc2.37
KiB Mem:    65138760 total,  15238796 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 02 May 2023 00:50:06 +0000
Head commit of repository gentoo: c3e243f484840c3487f2e7afddb915540f9c9422

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p4) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo, 13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.2::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    sync-user: portage:portage
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: True

guru
    location: /var/lib/layman/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50
    volatile: True

lto-overlay
    location: /var/lib/layman/lto-overlay
    sync-type: laymansync
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv
    priority: 50
    volatile: True

matoro
    location: /var/lib/layman/matoro
    sync-type: laymansync
    sync-uri: https://github.com/matoro/overlay.git
    masters: gentoo
    priority: 50
    volatile: True

mv
    location: /var/lib/layman/mv
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo
    priority: 50
    volatile: True

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O3 -march=native -mtune=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=10 -fuse-linker-plugin -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -mtune=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=10 -fuse-linker-plugin -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --autounmask=n --complete-graph --with-bdeps=y --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirror.leaseweb.com/gentoo/ https://mirror.rackspace.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j10"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl arm64 bash-completion bzip2 caps cli crypt dist-kernel dri elogind fortran gdbm gentoo-vm graphite headless-awt iconv ipv6 libbsd libglvnd libtirpc lm-sensors lto ncurses nls nptl openmp pam pcre pgo readline seccomp split-usr ssl system-bootstrap system-llvm test-rust threads udev unicode verify-sig vim-syntax xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="aes crc32 edsp sha1 sha2 thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 matoro archtester 2023-05-02 01:22:17 UTC
Created attachment 861027 [details]
build.log
Comment 2 Larry the Git Cow gentoo-dev 2023-06-07 09:52:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eea962b6f1c889ed86f814c99e7f415ae3f452a

commit 9eea962b6f1c889ed86f814c99e7f415ae3f452a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-07 09:42:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-07 09:46:41 +0000

    sys-fs/zfs-kmod: add 2.1.12
    
    Closes: https://bugs.gentoo.org/905438
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs-kmod/Manifest               |   2 +
 sys-fs/zfs-kmod/zfs-kmod-2.1.12.ebuild | 177 +++++++++++++++++++++++++++++++++
 sys-fs/zfs-kmod/zfs-kmod-9999.ebuild   |   2 +-
 3 files changed, 180 insertions(+), 1 deletion(-)