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. )
Created attachment 922981 [details] build.log
I don't use -march=native because the compiler failed because I have a hybrid processor with different L1 cache sizes 32 and 48.
Please pick a suitable -march setting and drop the -mno-xxx options from your CFLAGS.
Or simply do *not* USE=custom-cflags, this is handled automatically when you do not enable that.
(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)