Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952117 - dev-qt/qtbase-6.8.2-r2: Unknown arguments: ( // AVX512VBMI (CNL)
Summary: dev-qt/qtbase-6.8.2-r2: Unknown arguments: ( // AVX512VBMI (CNL)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-27 00:03 UTC by d
Modified: 2025-03-28 04:46 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,15.46 KB, text/plain)
2025-03-27 00:03 UTC, d
Details
build.log (build.log,79.21 KB, text/x-log)
2025-03-27 00:07 UTC, d
Details

Note You need to log in before you can comment on or make changes to this bug.
Description d 2025-03-27 00:03:47 UTC
Created attachment 922980 [details]
emerge --info

CMake Error at cmake/QtPublicCMakeHelpers.cmake:533 (message):
  Unknown arguments: ( // AVX512VBMI (CNL)

        |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

  In file included from
  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/immintrin.h:55:

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512fintrin.h:7489:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm512_broadcast_i64x4(long long __vector(4))’: target specific option
  mismatch

   7489 | _mm512_broadcast_i64x4 (__m256i __A)
        | ^~~~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:38:43:
  note: called from here

     38 |     __m512i data2 = _mm512_broadcast_i64x4(ptrs);           // AVX512DQ (SKX)
        |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~

  In file included from
  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/immintrin.h:63:

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512vlintrin.h:853:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm256_maskz_loadu_epi64(unsigned char, void const*)’: target specific
  option mismatch

    853 | _mm256_maskz_loadu_epi64 (__mmask8 __U, void const *__P)
        | ^~~~~~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:37:44:
  note: called from here

     37 |     __m256i ptrs = _mm256_maskz_loadu_epi64(mask, argv);    // AVX512VL (SKX)
        |                    ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~

  In file included from
  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/immintrin.h:65:

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512bwintrin.h:482:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm512_maskz_loadu_epi8(unsigned long long, void const*)’: target
  specific option mismatch

    482 | _mm512_maskz_loadu_epi8 (__mmask64 __U, void const *__P)
        | ^~~~~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:36:43:
  note: called from here

     36 |     __m512i data = _mm512_maskz_loadu_epi8(mask, argv[0]);  // AVX512BW (SKX)
        |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512fintrin.h:4119:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm512_setzero_si512()’: target specific option mismatch

   4119 | _mm512_setzero_si512 (void)
        | ^~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:35:40:
  note: called from here

     35 |     __m512i zero = _mm512_setzero_si512();                  // AVX512F (SKX)
        |                    ~~~~~~~~~~~~~~~~~~~~^~

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512vbmiintrin.h:60:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm512_multishift_epi64_epi8(long long __vector(8), long long
  __vector(8))’: target specific option mismatch

     60 | _mm512_multishift_epi64_epi8 (__m512i __X, __m512i __Y)
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:40:41:
  note: called from here

     40 |     data2 = _mm512_multishift_epi64_epi8(data, data2);      // AVX512VBMI (CNL)
        |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512fintrin.h:7489:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm512_broadcast_i64x4(long long __vector(4))’: target specific option
  mismatch

   7489 | _mm512_broadcast_i64x4 (__m256i __A)
        | ^~~~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:38:43:
  note: called from here

     38 |     __m512i data2 = _mm512_broadcast_i64x4(ptrs);           // AVX512DQ (SKX)
        |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512vlintrin.h:853:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm256_maskz_loadu_epi64(unsigned char, void const*)’: target specific
  option mismatch

    853 | _mm256_maskz_loadu_epi64 (__mmask8 __U, void const *__P)
        | ^~~~~~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:37:44:
  note: called from here

     37 |     __m256i ptrs = _mm256_maskz_loadu_epi64(mask, argv);    // AVX512VL (SKX)
        |                    ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512bwintrin.h:482:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm512_maskz_loadu_epi8(unsigned long long, void const*)’: target
  specific option mismatch

    482 | _mm512_maskz_loadu_epi8 (__mmask64 __U, void const *__P)
        | ^~~~~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:36:43:
  note: called from here

     36 |     __m512i data = _mm512_maskz_loadu_epi8(mask, argv[0]);  // AVX512BW (SKX)
        |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~

  /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/avx512fintrin.h:4119:1: error:
  inlining failed in call to ‘always_inline’
  ‘_mm512_setzero_si512()’: target specific option mismatch

   4119 | _mm512_setzero_si512 (void)
        | ^~~~~~~~~~~~~~~~~~~~

  
  /var/tmp/portage/dev-qt/qtbase-6.8.2-r2/work/qtbase-everywhere-src-6.8.2/config.tests/x86intrin/main.cpp:35:40:
  note: called from here

     35 |     __m512i zero = _mm512_setzero_si512();                  // AVX512F (SKX)
        |                    ~~~~~~~~~~~~~~~~~~~~^~

  ninja: build stopped: subcommand failed.



  )
Comment 1 d 2025-03-27 00:07:09 UTC
Created attachment 922981 [details]
build.log
Comment 2 d 2025-03-27 00:25:52 UTC
I don't use -march=native because the compiler failed because I have a hybrid processor with different L1 cache sizes 32 and 48.
Comment 3 Mike Gilbert gentoo-dev 2025-03-27 18:43:13 UTC
Please pick a suitable -march setting and drop the -mno-xxx options from your CFLAGS.
Comment 4 Ionen Wolkens gentoo-dev 2025-03-28 04:44:48 UTC
Or simply do *not* USE=custom-cflags, this is handled automatically when you do not enable that.
Comment 5 Ionen Wolkens gentoo-dev 2025-03-28 04:46:30 UTC
(In reply to Ionen Wolkens from comment #4)
> Or simply do *not* USE=custom-cflags, this is handled automatically when you
> do not enable that.
(aka it will drop all the -mno-* and pass an roughly equivalent -march=x86-64-v* that will work fine even for those quirky cpus)