kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
535 stars 240 forks source link

blake2b-sse2: incompatible type for argument #589

Closed heitbaum closed 1 year ago

heitbaum commented 1 year ago

With both 6.2 and 6.2.1 the following blake2b-sse2 - incompatible type for argument build errors.

docker@280b00be4b8d:/var/media/DATA/home-rudi/LibreELEC.tv$ s/build btrfs-progs
UNPACK      btrfs-progs
BUILD      btrfs-progs (target)
    TOOLCHAIN      configure

Generate build-system by:
   aclocal:    aclocal (GNU automake) 1.16.5
   autoconf:   autoconf (GNU Autoconf) 2.71
   autoheader: autoheader (GNU Autoconf) 2.71
   automake:   automake (GNU automake) 1.16.5

Now type './configure' and 'make' to compile.

Executing (target): /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/build/btrfs-progs-6.2.1/configure --host=x86_64-libreelec-linux-gnu --build=x86_64-linux-gnu --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --disable-static --enable-shared --disable-backtrace --disable-convert --disable-documentation --disable-python --disable-zstd
checking for x86_64-libreelec-linux-gnu-gcc... /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc accepts -g... yes
checking for /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for x86_64-libreelec-linux-gnu-gcc... (cached) /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc accepts -g... (cached) yes
checking for /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc option to enable C11 features... (cached) none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-libreelec-linux-gnu
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking whether byte ordering is bigendian... no
checking whether C compiler accepts -msse2... yes
checking whether C compiler accepts -msse4.1... yes
checking whether C compiler accepts -mavx2... yes
checking whether C compiler accepts -msha... yes
checking whether C compiler accepts -std=gnu11... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for x86_64-libreelec-linux-gnu-ar... /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-ar
checking for rm... /usr/bin/rm
checking for rmdir... /usr/bin/rmdir
checking for openat... yes
checking for reallocarray... yes
checking for clock_gettime... yes
checking for __builtin_add_overflow... yes
checking for __builtin_sub_overflow... yes
checking for __builtin_mul_overflow... yes
checking for linux/perf_event.h... yes
checking for linux/hw_breakpoint.h... yes
checking for linux/fsverity.h... yes
checking pkg-config is at least version 0.9.0... yes
checking for FIEMAP_EXTENT_SHARED defined in linux/fiemap.h... yes
checking for EXT4_EPOCH_MASK defined in ext2fs/ext2_fs.h... no
checking for struct ext2_inode_large.i_atime_extra... no
configure: WARNING: It seems that ext2_inode_large don't includes tv_nsec related info, probably old e2fsprogs, no 64bit time precision of converted images
checking for linux/blkzoned.h... yes
checking for struct blk_zone.capacity... yes
checking for BLKGETZONESZ defined in linux/blkzoned.h... yes
checking for blkid... yes
checking for uuid... yes
checking for zlib... yes
checking for libudev... yes
checking for lzo_version in -llzo2... yes
configure: creating ./config.status
config.status: creating Makefile.inc
config.status: creating Documentation/Makefile
config.status: creating libbtrfs/version.h
config.status: creating libbtrfsutil/libbtrfsutil.pc
config.status: creating include/config.h

        btrfs-progs:        v6.2.1
        libbtrfs:           0.1.2 (deprecated)
        libbtrfsutil:       1.2.0

        prefix:             /usr
        exec prefix:        ${prefix}

        bindir:             /usr/bin
        libdir:             /usr/lib
        includedir:         ${prefix}/include
        pkgconfigdir:       ${libdir}/pkgconfig

        compiler:           /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc
        CFLAGS:             -march=x86-64-v3 -Wall -pipe  -O2 -fomit-frame-pointer -DNDEBUG
        LDFLAGS:             -Wl,--as-needed -fuse-ld=gold

        programs:           yes
        shared libraries:   yes
        static libraries:   no
        documentation:      no
        doc generator:      none
        backtrace support:  no
        btrfs-convert:      no 
        zstd support:       no
        lzo support:        yes
        fsverity support:   yes
        Python bindings:    no
        Python interpreter: 
        crypto provider:    builtin 
        libudev:            yes
        zoned device:       yes

        Type 'make' to compile.

Executing (target): make 
    [CC]     btrfs.o
    [CC]     kernel-lib/list_sort.o
    [CC]     kernel-lib/raid56.o
    [CC]     kernel-lib/rbtree.o
    [CC]     kernel-lib/tables.o
    [CC]     kernel-shared/backref.o
    [CC]     kernel-shared/ctree.o
    [CC]     kernel-shared/delayed-ref.o
    [CC]     kernel-shared/dir-item.o
    [CC]     kernel-shared/disk-io.o
kernel-shared/delayed-ref.c: In function 'btrfs_destroy_delayed_refs':
kernel-shared/delayed-ref.c:624:31: warning: unused variable 'fs_info' [-Wunused-variable]
  624 |         struct btrfs_fs_info *fs_info = trans->fs_info;
      |                               ^~~~~~~
    [CC]     kernel-shared/extent-tree.o
    [CC]     kernel-shared/extent_io.o
    [CC]     kernel-shared/file-item.o
kernel-shared/extent-tree.c: In function 'btrfs_convert_one_bg':
kernel-shared/extent-tree.c:4035:28: warning: unused variable 'old_root' [-Wunused-variable]
 4035 |         struct btrfs_root *old_root = btrfs_extent_root(fs_info, 0);
      |                            ^~~~~~~~
kernel-shared/extent-tree.c:4034:28: warning: unused variable 'new_root' [-Wunused-variable]
 4034 |         struct btrfs_root *new_root = fs_info->block_group_root;
      |                            ^~~~~~~~
    [CC]     kernel-shared/file.o
    [CC]     kernel-shared/free-space-cache.o
    [CC]     kernel-shared/free-space-tree.o
    [CC]     kernel-shared/inode-item.o
    [CC]     kernel-shared/inode.o
kernel-shared/free-space-tree.c: In function 'free_space_test_bit':
kernel-shared/free-space-tree.c:99:26: warning: variable 'found_end' set but not used [-Wunused-but-set-variable]
   99 |         u64 found_start, found_end;
      |                          ^~~~~~~~~
kernel-shared/free-space-tree.c: In function 'remove_block_group_free_space':
kernel-shared/free-space-tree.c:1166:13: warning: variable 'start' set but not used [-Wunused-but-set-variable]
 1166 |         u64 start, end;
      |             ^~~~~
    [CC]     kernel-shared/print-tree.o
    [CC]     kernel-shared/root-tree.o
    [CC]     kernel-shared/transaction.o
kernel-shared/print-tree.c: In function 'bg_flags_to_str':
kernel-shared/print-tree.c:197:25: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation]
  197 |                         strncpy(profile, name, BG_FLAG_STRING_LEN);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [CC]     kernel-shared/ulist.o
    [CC]     kernel-shared/uuid-tree.o
    [CC]     kernel-shared/volumes.o
kernel-shared/ulist.c: In function 'ulist_add_merge':
kernel-shared/ulist.c:208:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  208 |         int ret;
      |             ^~~
    [CC]     kernel-shared/zoned.o
    [CC]     common/cpu-utils.o
kernel-shared/volumes.c: In function 'find_free_dev_extent_start':
kernel-shared/volumes.c:668:13: warning: variable 'zone_size' set but not used [-Wunused-but-set-variable]
  668 |         u64 zone_size = 0;
      |             ^~~~~~~~~
kernel-shared/volumes.c: In function 'create_chunk':
kernel-shared/volumes.c:1362:13: warning: unused variable 'zone_size' [-Wunused-variable]
 1362 |         u64 zone_size = info->zone_size;
      |             ^~~~~~~~~
    [CC]     common/device-scan.o
kernel-shared/zoned.c: In function 'btrfs_sb_io':
kernel-shared/zoned.c:476:19: warning: unused variable 'sb_size_sector' [-Wunused-variable]
  476 |         const u64 sb_size_sector = (BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT);
      |                   ^~~~~~~~~~~~~~
    [CC]     common/device-utils.o
    [CC]     common/extent-cache.o
    [CC]     common/filesystem-utils.o
    [CC]     common/format-output.o
    [CC]     common/fsfeatures.o
    [CC]     common/help.o
    [CC]     common/messages.o
    [CC]     common/open-utils.o
common/help.c: In function 'usage':
common/help.c:313:58: warning: '%s' directive argument is null [-Wformat-overflow=]
  313 |                 fprintf(outf, "No short description for '%s'\n", token);
      |                                                          ^~
common/help.c:310:46: warning: '%s' directive argument is null [-Wformat-overflow=]
  310 |                 fprintf(outf, "No usage for '%s'\n", token);
      |                                              ^~
    [CC]     common/parse-utils.o
    [CC]     common/path-utils.o
    [CC]     common/rbtree-utils.o
    [CC]     common/send-stream.o
    [CC]     common/send-utils.o
    [CC]     common/string-table.o
    [CC]     common/string-utils.o
    [CC]     common/task-utils.o
    [CC]     common/units.o
    [CC]     common/utils.o
    [CC]     check/qgroup-verify.o
    [CC]     check/repair.o
    [CC]     cmds/receive-dump.o
    [CC]     crypto/crc32c.o
    [CC]     crypto/hash.o
    [CC]     crypto/xxhash.o
    [CC]     crypto/sha224-256.o
    [CC]     crypto/blake2b-ref.o
    [CC]     crypto/blake2b-sse2.o
    [CC]     crypto/blake2b-sse41.o
    [CC]     crypto/blake2b-avx2.o
    [CC]     libbtrfsutil/stubs.o
    [CC]     crypto/sha256-x86.o
    [CC]     libbtrfsutil/subvolume.o
    [CC]     cmds/subvolume.o
    [CC]     cmds/subvolume-list.o
    [CC]     cmds/filesystem.o
    [CC]     cmds/device.o
    [CC]     cmds/scrub.o
    [CC]     cmds/inspect.o
    [CC]     cmds/balance.o
cmds/scrub.c: In function 'scrub_start':
cmds/scrub.c:1368:17: warning: 'strncpy' output may be truncated copying 107 bytes from a string of length 4095 [-Wstringop-truncation]
 1368 |                 strncpy(addr.sun_path, sock_path, sizeof(addr.sun_path) - 1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [CC]     cmds/send.o
cmds/inspect.c: In function '__ino_to_path_fd':
cmds/inspect.c:81:35: warning: array subscript 2147483647 is outside the bounds of an interior zero-length array '__u64[0]' {aka 'long long unsigned int[]'} [-Wzero-length-bounds]
   81 |                 ptr += fspath->val[i];
      |                        ~~~~~~~~~~~^~~
In file included from ./kernel-shared/ctree.h:28,
                 from cmds/inspect.c:34:
./include/ioctl.h:499:17: note: while referencing 'val'
  499 |         __u64   val[0];         /* out */
      |                 ^~~
cmds/inspect.c: In function 'cmd_inspect_logical_resolve':
cmds/inspect.c:292:33: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation]
  292 |                                 strncpy(mount_path, mounted, PATH_MAX);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [CC]     cmds/receive.o
    [CC]     cmds/quota.o
    [CC]     cmds/qgroup.o
    [CC]     cmds/replace.o
    [CC]     check/main.o
    [CC]     cmds/restore.o
    [CC]     cmds/rescue.o
In function 'reset_balance',
    inlined from 'reinit_extent_tree' at check/main.c:9501:8,
    inlined from 'cmd_check' at check/main.c:10299:10:
check/main.c:9319:23: warning: 'del_slot' may be used uninitialized [-Wmaybe-uninitialized]
 9319 |                 ret = btrfs_del_items(trans, root, &path, del_slot, del_nr);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check/main.c: In function 'cmd_check':
check/main.c:9249:13: note: 'del_slot' was declared here
 9249 |         int del_slot, del_nr = 0;
      |             ^~~~~~~~
    [CC]     cmds/rescue-chunk-recover.o
    [CC]     cmds/rescue-super-recover.o
    [CC]     cmds/property.o
    [CC]     cmds/filesystem-usage.o
    [CC]     cmds/inspect-dump-tree.o
    [CC]     cmds/inspect-dump-super.o
    [CC]     cmds/inspect-tree-stats.o
    [CC]     cmds/filesystem-du.o
    [CC]     cmds/reflink.o
    [CC]     mkfs/common.o
    [CC]     check/mode-common.o
    [CC]     check/mode-lowmem.o
    [CC]     libbtrfsutil/errors.o
    [CC]     check/clear-cache.o
check/mode-common.c: In function 'insert_inode_item':
check/mode-common.c:389:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  389 |         int ret;
      |             ^~~
    [CC]     libbtrfsutil/filesystem.o
check/mode-lowmem.c: In function 'repair_inline_ram_bytes':
check/mode-lowmem.c:1897:13: warning: variable 'recover_ret' set but not used [-Wunused-but-set-variable]
 1897 |         int recover_ret;
      |             ^~~~~~~~~~~
    [CC]     libbtrfsutil/qgroup.o
check/clear-cache.c: In function 'truncate_free_ino_items':
check/clear-cache.c:503:29: warning: variable 'extent_offset' set but not used [-Wunused-but-set-variable]
  503 |                         u64 extent_offset;
      |                             ^~~~~~~~~~~~~
check/clear-cache.c:500:29: warning: variable 'extent_type' set but not used [-Wunused-but-set-variable]
  500 |                         int extent_type;
      |                             ^~~~~~~~~~~
    [CC]     mkfs/main.o
    [CC]     mkfs/rootdir.o
    [CC]     btrfs-map-logical.o
    [CC]     image/main.o
    [CC]     image/sanitize.o
    [CC]     btrfs-find-root.o
    [CC]     tune/main.o
    [CC]     tune/seeding.o
    [CC]     tune/change-uuid.o
    [CC]     tune/change-metadata-uuid.o
    [CC]     tune/convert-bgt.o
    [CC]     tune/change-csum.o
In file included from crypto/blake2b-round.h:140,
                 from crypto/blake2b-sse2.c:33:
crypto/blake2b-sse2.c: In function 'blake2b_compress_sse2':
crypto/blake2b-load-sse41.h:21:25: error: incompatible type for argument 1 of '_mm_unpacklo_epi64'
   21 | b0 = _mm_unpacklo_epi64(m0, m1); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro 'LOAD_MSG_0_1'
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
In file included from crypto/blake2b-sse2.c:25:
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1046:29: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:21:29: error: incompatible type for argument 2 of '_mm_unpacklo_epi64'
   21 | b0 = _mm_unpacklo_epi64(m0, m1); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro 'LOAD_MSG_0_1'
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1046:42: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:22:25: error: incompatible type for argument 1 of '_mm_unpacklo_epi64'
   22 | b1 = _mm_unpacklo_epi64(m2, m3); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro 'LOAD_MSG_0_1'
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1046:29: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:22:29: error: incompatible type for argument 2 of '_mm_unpacklo_epi64'
   22 | b1 = _mm_unpacklo_epi64(m2, m3); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro 'LOAD_MSG_0_1'
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1046:42: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:29:25: error: incompatible type for argument 1 of '_mm_unpackhi_epi64'
   29 | b0 = _mm_unpackhi_epi64(m0, m1); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro 'LOAD_MSG_0_2'
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1022:29: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:29:29: error: incompatible type for argument 2 of '_mm_unpackhi_epi64'
   29 | b0 = _mm_unpackhi_epi64(m0, m1); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro 'LOAD_MSG_0_2'
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1022:42: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:30:25: error: incompatible type for argument 1 of '_mm_unpackhi_epi64'
   30 | b1 = _mm_unpackhi_epi64(m2, m3); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro 'LOAD_MSG_0_2'
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1022:29: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:30:29: error: incompatible type for argument 2 of '_mm_unpackhi_epi64'
   30 | b1 = _mm_unpackhi_epi64(m2, m3); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro 'LOAD_MSG_0_2'
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/12.2.0/include/emmintrin.h:1022:42: note: expected '__m128i' but argument is of type 'uint64_t' {aka 'long unsigned int'}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:37:25: error: incompatible type for argument 1 of '_mm_unpacklo_epi64'
   37 | b0 = _mm_unpacklo_epi64(m4, m5); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:151:3: note: in expansion of macro 'LOAD_MSG_0_3'
  151 |   LOAD_MSG_ ##r ##_3(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro 'ROUND'
   80 |   ROUND( 0 );
      |   ^~~~~
…
make: *** [Makefile:440: crypto/blake2b-sse2.o] Error 1
make: *** Waiting for unfinished jobs....
    [CC]     btrfs-select-super.o
FAILURE: s/build btrfs-progs during make_target (default)
*********** FAILED COMMAND ***********
make ${PKG_MAKE_OPTS_TARGET}
**************************************
docker@280b00be4b8d:/var/media/DATA/home-rudi/LibreELEC.tv$ 
Forza-tng commented 1 year ago

Hi,

I am having the same issue with 6.2 and 6.2.1 on my Gentoo system where I use march=native. If I change to march=x86-64 the code compiles OK.

Gentoo Linux GCC 12.2.1 CFLAGS="-O2 -march=native" CPU=AMD Ryzen 3000G (gcc matches this as znver1)

-DBTRFSCONVERT_EXT2=1 -DBTRFSCONVERT_REISERFS=0 crypto/blake2b-ref.c
    [CC]     crypto/blake2b-ref.o
gcc -O2 -march=native -std=gnu11 -include include/config.h -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC -Wall -Wunused-but-set-parameter -I. -I./include -DCRYPTOPROVIDER_BUILTIN=1 -DCOMPRESSION_LZO=1 -DCOMPRESSION_ZSTD=1 -Wno-format-truncation -Wno-address-of-packed-member  -Wimplicit-fallthrough    -c crypto/blake2b-ref.c -o crypto/blake2b-ref.o  \

true -O2 -march=native -std=gnu11 -include include/config.h -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC -Wall -Wunused-but-set-parameter -I. -I./include -DCRYPTOPROVIDER_BUILTIN=1 -DCOMPRESSION_LZO=1 -DCOMPRESSION_ZSTD=1 -Wno-format-truncation -Wno-address-of-packed-member  -Wimplicit-fallthrough    -include .cc-defines.h -D__CHECKER__ -D__CHECK_ENDIAN__ -Wbitwise -Wuninitialized -Wshadow -Wundef -U_FORTIFY_SOURCE -Wdeclaration-after-statement -Wdefault-bitfield-sign -DBTRFSCONVERT_EXT2=1 -DBTRFSCONVERT_REISERFS=0 crypto/blake2b-sse2.c
    [CC]     crypto/blake2b-sse2.o
gcc -O2 -march=native -std=gnu11 -include include/config.h -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC -Wall -Wunused-but-set-parameter -I. -I./include -DCRYPTOPROVIDER_BUILTIN=1 -DCOMPRESSION_LZO=1 -DCOMPRESSION_ZSTD=1 -Wno-format-truncation -Wno-address-of-packed-member  -Wimplicit-fallthrough    -c crypto/blake2b-sse2.c -o crypto/blake2b-sse2.o -msse2 \

In file included from crypto/blake2b-round.h:140,
                 from crypto/blake2b-sse2.c:33:
crypto/blake2b-sse2.c: In function ‘blake2b_compress_sse2’:
crypto/blake2b-load-sse41.h:21:25: error: incompatible type for argument 1 of ‘_mm_unpacklo_epi64’
   21 | b0 = _mm_unpacklo_epi64(m0, m1); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro ‘LOAD_MSG_0_1’
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
In file included from crypto/blake2b-sse2.c:25:
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1046:29: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:21:29: error: incompatible type for argument 2 of ‘_mm_unpacklo_epi64’
   21 | b0 = _mm_unpacklo_epi64(m0, m1); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro ‘LOAD_MSG_0_1’
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1046:42: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:22:25: error: incompatible type for argument 1 of ‘_mm_unpacklo_epi64’
   22 | b1 = _mm_unpacklo_epi64(m2, m3); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro ‘LOAD_MSG_0_1’
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1046:29: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:22:29: error: incompatible type for argument 2 of ‘_mm_unpacklo_epi64’
   22 | b1 = _mm_unpacklo_epi64(m2, m3); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:146:3: note: in expansion of macro ‘LOAD_MSG_0_1’
  146 |   LOAD_MSG_ ##r ##_1(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1046:42: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:29:25: error: incompatible type for argument 1 of ‘_mm_unpackhi_epi64’
   29 | b0 = _mm_unpackhi_epi64(m0, m1); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro ‘LOAD_MSG_0_2’
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1022:29: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:29:29: error: incompatible type for argument 2 of ‘_mm_unpackhi_epi64’
   29 | b0 = _mm_unpackhi_epi64(m0, m1); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro ‘LOAD_MSG_0_2’
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1022:42: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:30:25: error: incompatible type for argument 1 of ‘_mm_unpackhi_epi64’
   30 | b1 = _mm_unpackhi_epi64(m2, m3); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro ‘LOAD_MSG_0_2’
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1022:29: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:30:29: error: incompatible type for argument 2 of ‘_mm_unpackhi_epi64’
   30 | b1 = _mm_unpackhi_epi64(m2, m3); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:148:3: note: in expansion of macro ‘LOAD_MSG_0_2’
  148 |   LOAD_MSG_ ##r ##_2(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1022:42: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1022 | _mm_unpackhi_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:37:25: error: incompatible type for argument 1 of ‘_mm_unpacklo_epi64’
   37 | b0 = _mm_unpacklo_epi64(m4, m5); \
      |                         ^~
      |                         |
      |                         uint64_t {aka long unsigned int}
crypto/blake2b-round.h:151:3: note: in expansion of macro ‘LOAD_MSG_0_3’
  151 |   LOAD_MSG_ ##r ##_3(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1046:29: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                     ~~~~~~~~^~~
crypto/blake2b-load-sse41.h:37:29: error: incompatible type for argument 2 of ‘_mm_unpacklo_epi64’
   37 | b0 = _mm_unpacklo_epi64(m4, m5); \
      |                             ^~
      |                             |
      |                             uint64_t {aka long unsigned int}
crypto/blake2b-round.h:151:3: note: in expansion of macro ‘LOAD_MSG_0_3’
  151 |   LOAD_MSG_ ##r ##_3(b0, b1); \
      |   ^~~~~~~~~
crypto/blake2b-sse2.c:80:3: note: in expansion of macro ‘ROUND’
   80 |   ROUND( 0 );
      |   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/emmintrin.h:1046:42: note: expected ‘__m128i’ but argument is of type ‘uint64_t’ {aka ‘long unsigned int’}
 1046 | _mm_unpacklo_epi64 (__m128i __A, __m128i __B)
      |                                  ~~~~~~~~^~~
... 
... snip
several pages of errors like the above..
# gcc -march=native -Q --help=target
The following options are target specific:
  -m128bit-long-double                  [enabled]
  -m16                                  [disabled]
  -m32                                  [disabled]
  -m3dnow                               [disabled]
  -m3dnowa                              [disabled]
  -m64                                  [enabled]
  -m80387                               [enabled]
  -m8bit-idiv                           [disabled]
  -m96bit-long-double                   [disabled]
  -mabi=                                sysv
  -mabm                                 [enabled]
  -maccumulate-outgoing-args            [disabled]
  -maddress-mode=                       long
  -madx                                 [enabled]
  -maes                                 [enabled]
  -malign-data=                         compat
  -malign-double                        [disabled]
  -malign-functions=                    0
  -malign-jumps=                        0
  -malign-loops=                        0
  -malign-stringops                     [enabled]
  -mamx-bf16                            [disabled]
  -mamx-int8                            [disabled]
  -mamx-tile                            [disabled]
  -mandroid                             [disabled]
  -march=                               znver1
  -masm=                                att
  -mavx                                 [enabled]
  -mavx2                                [enabled]
  -mavx256-split-unaligned-load         [disabled]
  -mavx256-split-unaligned-store        [enabled]
  -mavx5124fmaps                        [disabled]
  -mavx5124vnniw                        [disabled]
  -mavx512bf16                          [disabled]
  -mavx512bitalg                        [disabled]
  -mavx512bw                            [disabled]
  -mavx512cd                            [disabled]
  -mavx512dq                            [disabled]
  -mavx512er                            [disabled]
  -mavx512f                             [disabled]
  -mavx512fp16                          [disabled]
  -mavx512ifma                          [disabled]
  -mavx512pf                            [disabled]
  -mavx512vbmi                          [disabled]
  -mavx512vbmi2                         [disabled]
  -mavx512vl                            [disabled]
  -mavx512vnni                          [disabled]
  -mavx512vp2intersect                  [disabled]
  -mavx512vpopcntdq                     [disabled]
  -mavxvnni                             [disabled]
  -mbionic                              [disabled]
  -mbmi                                 [enabled]
  -mbmi2                                [enabled]
  -mbranch-cost=<0,5>                   3
  -mcall-ms2sysv-xlogues                [disabled]
  -mcet-switch                          [disabled]
  -mcld                                 [disabled]
  -mcldemote                            [disabled]
  -mclflushopt                          [enabled]
  -mclwb                                [disabled]
  -mclzero                              [enabled]
  -mcmodel=                             [default]
  -mcpu=                        
  -mcrc32                               [enabled]
  -mcx16                                [enabled]
  -mdirect-extern-access                [enabled]
  -mdispatch-scheduler                  [disabled]
  -mdump-tune-features                  [disabled]
  -menqcmd                              [disabled]
  -mf16c                                [enabled]
  -mfancy-math-387                      [enabled]
  -mfentry                              [disabled]
  -mfentry-name=                
  -mfentry-section=             
  -mfma                                 [enabled]
  -mfma4                                [disabled]
  -mforce-drap                          [disabled]
  -mforce-indirect-call                 [disabled]
  -mfp-ret-in-387                       [enabled]
  -mfpmath=                             sse
  -mfsgsbase                            [enabled]
  -mfunction-return=                    keep
  -mfused-madd                          -ffp-contract=fast
  -mfxsr                                [enabled]
  -mgeneral-regs-only                   [disabled]
  -mgfni                                [disabled]
  -mglibc                               [enabled]
  -mhard-float                          [enabled]
  -mharden-sls=                         none
  -mhle                                 [disabled]
  -mhreset                              [disabled]
  -miamcu                               [disabled]
  -mieee-fp                             [enabled]
  -mincoming-stack-boundary=            0
  -mindirect-branch-cs-prefix           [disabled]
  -mindirect-branch-register            [disabled]
  -mindirect-branch=                    keep
  -minline-all-stringops                [disabled]
  -minline-stringops-dynamically        [disabled]
  -minstrument-return=                  none
  -mintel-syntax                        -masm=intel
  -mkl                                  [disabled]
  -mlarge-data-threshold=<number>       65536
  -mlong-double-128                     [disabled]
  -mlong-double-64                      [disabled]
  -mlong-double-80                      [enabled]
  -mlwp                                 [disabled]
  -mlzcnt                               [enabled]
  -mmanual-endbr                        [disabled]
  -mmemcpy-strategy=            
  -mmemset-strategy=            
  -mmitigate-rop                        [disabled]
  -mmmx                                 [enabled]
  -mmovbe                               [enabled]
  -mmovdir64b                           [disabled]
  -mmovdiri                             [disabled]
  -mmove-max=                           128
  -mmpx                                 [disabled]
  -mms-bitfields                        [disabled]
  -mmusl                                [disabled]
  -mmwait                               [enabled]
  -mmwaitx                              [enabled]
  -mneeded                              [disabled]
  -mno-align-stringops                  [disabled]
  -mno-default                          [disabled]
  -mno-fancy-math-387                   [disabled]
  -mno-push-args                        [disabled]
  -mno-red-zone                         [disabled]
  -mno-sse4                             [disabled]
  -mnop-mcount                          [disabled]
  -momit-leaf-frame-pointer             [disabled]
  -mpc32                                [disabled]
  -mpc64                                [disabled]
  -mpc80                                [disabled]
  -mpclmul                              [enabled]
  -mpcommit                             [disabled]
  -mpconfig                             [disabled]
  -mpku                                 [disabled]
  -mpopcnt                              [enabled]
  -mprefer-avx128                       -mprefer-vector-width=128
  -mprefer-vector-width=                128
  -mpreferred-stack-boundary=           0
  -mprefetchwt1                         [disabled]
  -mprfchw                              [enabled]
  -mptwrite                             [disabled]
  -mpush-args                           [enabled]
  -mrdpid                               [disabled]
  -mrdrnd                               [enabled]
  -mrdseed                              [enabled]
  -mrecip                               [disabled]
  -mrecip=                      
  -mrecord-mcount                       [disabled]
  -mrecord-return                       [disabled]
  -mred-zone                            [enabled]
  -mregparm=                            6
  -mrelax-cmpxchg-loop                  [disabled]
  -mrtd                                 [disabled]
  -mrtm                                 [disabled]
  -msahf                                [enabled]
  -mserialize                           [disabled]
  -msgx                                 [disabled]
  -msha                                 [enabled]
  -mshstk                               [disabled]
  -mskip-rax-setup                      [disabled]
  -msoft-float                          [disabled]
  -msse                                 [enabled]
  -msse2                                [enabled]
  -msse2avx                             [disabled]
  -msse3                                [enabled]
  -msse4                                [enabled]
  -msse4.1                              [enabled]
  -msse4.2                              [enabled]
  -msse4a                               [enabled]
  -msse5                                -mavx
  -msseregparm                          [disabled]
  -mssse3                               [enabled]
  -mstack-arg-probe                     [disabled]
  -mstack-protector-guard-offset= 
  -mstack-protector-guard-reg=  
  -mstack-protector-guard-symbol= 
  -mstack-protector-guard=              tls
  -mstackrealign                        [disabled]
  -mstore-max=                          128
  -mstringop-strategy=                  [default]
  -mstv                                 [enabled]
  -mtbm                                 [disabled]
  -mtls-dialect=                        gnu
  -mtls-direct-seg-refs                 [enabled]
  -mtsxldtrk                            [disabled]
  -mtune-ctrl=                  
  -mtune=                               znver1
  -muclibc                              [disabled]
  -muintr                               [disabled]
  -mvaes                                [disabled]
  -mveclibabi=                          [default]
  -mvect8-ret-in-mem                    [disabled]
  -mvpclmulqdq                          [disabled]
  -mvzeroupper                          [enabled]
  -mwaitpkg                             [disabled]
  -mwbnoinvd                            [disabled]
  -mwidekl                              [disabled]
  -mx32                                 [disabled]
  -mxop                                 [disabled]
  -mxsave                               [enabled]
  -mxsavec                              [enabled]
  -mxsaveopt                            [enabled]
  -mxsaves                              [enabled]

  Known assembler dialects (for use with the -masm= option):
    att intel

  Known ABIs (for use with the -mabi= option):
    ms sysv

  Known code models (for use with the -mcmodel= option):
    32 kernel large medium small

  Valid arguments to -mfpmath=:
    387 387+sse 387,sse both sse sse+387 sse,387

  Known choices for mitigation against straight line speculation with -mharden-sls=:
    all indirect-jmp none return

  Known indirect branch choices (for use with the -mindirect-branch=/-mfunction-return= options):
    keep thunk thunk-extern thunk-inline

  Known choices for return instrumentation with -minstrument-return=:
    call none nop5

  Known data alignment choices (for use with the -malign-data= option):
    abi cacheline compat

  Known vectorization library ABIs (for use with the -mveclibabi= option):
    acml svml

  Known address mode (for use with the -maddress-mode= option):
    long short

  Known preferred register vector length (to use with the -mprefer-vector-width= option):
    128 256 512 none

  Known stack protector guard (for use with the -mstack-protector-guard= option):
    global tls

  Valid arguments to -mstringop-strategy=:
    byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop vector_loop

  Known TLS dialects (for use with the -mtls-dialect= option):
    gnu gnu2

  Known valid arguments for -march= option:
    i386 i486 i586 pentium lakemont pentium-mmx winchip-c6 winchip2 c3 samuel-2 c3-2 nehemiah c7 esther i686 pentiumpro pentium2 pentium3 pentium3m pentium-m pentium4 pentium4m prescott nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel geode k6 k6-2 k6-3 athlon athlon-tbird athlon-4 athlon-xp athlon-mp x86-64 x86-64-v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 generic native

  Known valid arguments for -mtune= option:
    generic i386 i486 pentium lakemont pentiumpro pentium4 nocona core2 nehalem sandybridge haswell bonnell silvermont goldmont goldmont-plus tremont knl knm skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake rocketlake intel geode k6 athlon k8 amdfam10 bdver1 bdver2 bdver3 bdver4 btver1 btver2 znver1 znver2 znver3
tinomai commented 1 year ago

Please have a look at #591

kdave commented 1 year ago

Fixed by #591, thanks for the report.

heitbaum commented 1 year ago

Fixed by #591, thanks for the report.

Thanks @kdave - build tested fine 👍