Created attachment 593988 [details] partial emerge output Compile sci-libs/fftw-3.3.6_p2 fails with this error: /var/tmp/portage/portage/sci-libs/fftw-3.3.6_p2/work/fftw-3.3.6-pl2/simd-support/simd-avx2.h:43:2: error: #error "compiling simd-avx2.h without avx2 support" #error "compiling simd-avx2.h without avx2 support" But flag -march=core-avx2 is not part of my configuration. Other packages with cpu_flags_x86_avx2 compiles successfully. # uname -p AMD Ryzen 7 1700 Eight-Core Processor # cpuid2cpuflags CPU_FLAGS_X86: aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
Created attachment 593990 [details] emerge --info
Sorry, I miss this part of error with -march=core-avx2: libtool: compile: x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/portage/sci-libs/fftw-3.3.6_p2/work/fftw-3.3.6-pl2/dft/simd/avx2 -I../../.. -I/var/tmp/portage/portage/sci-libs/fftw-3.3.6_p2/work/fftw-3.3.6-pl2/kernel -I/var/tmp/portage/portage/sci-libs/fftw-3.3.6_p2/work/fftw-3.3.6-pl2/dft -I/var/tmp/portage/portage/sci-libs/fftw-3.3.6_p2/work/fftw-3.3.6-pl2/dft/simd -I/var/tmp/portage/portage/sci-libs/fftw-3.3.6_p2/work/fftw-3.3.6-pl2/simd-support -march=core-avx2 -mfma -O2 -pipe -march=x86-64 -mfpmath=sse -ftree-vectorize -c n1fv_3.c -fPIC -DPIC -o .libs/n1fv_3.o
Comment on attachment 593988 [details] partial emerge output * If you need support, post the output of `emerge --info '=sci-libs/fftw-3.3.6_p2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/fftw-3.3.6_p2::gentoo'`. * The complete build log is located at '/var/tmp/portage/portage/sci-libs/fftw-3.3.6_p2/temp/build.log'. Please attach the entire build log to this bug report.
Created attachment 594054 [details] full build.log
I was having the same problem with 3.3.6 but it seems to be fixed on 3.3.8.
Definitely still happening with 3.3.8-r1. I suppose we need to add appopriate -m flags if upstream doesn't do it for us.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2424a31e9abdafb42ce3f7da50457677d6209eb1 commit 2424a31e9abdafb42ce3f7da50457677d6209eb1 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2020-05-13 08:18:09 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-05-13 09:02:57 +0000 sci-libs/fftw: Workaround missing -mavx2 with avx2 flag Bug: https://bugs.gentoo.org/698572 Signed-off-by: Michał Górny <mgorny@gentoo.org> sci-libs/fftw/fftw-3.3.8-r1.ebuild | 4 ++++ 1 file changed, 4 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f518d741e19775185bb29d5239311450c0ecbbc commit 6f518d741e19775185bb29d5239311450c0ecbbc Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-11-05 11:59:44 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-11-05 11:59:44 +0000 sci-libs/fftw: remove append-flags -mavx2 Closes: https://bugs.gentoo.org/698572 Bug: https://bugs.gentoo.org/821916 Signed-off-by: David Seifert <soap@gentoo.org> sci-libs/fftw/fftw-3.3.10.ebuild | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)