Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 667220

Summary: sci-libs/fftw-3.3.8: error: #error "compiling simd-avx2.h without avx2 support"
Product: Gentoo Linux Reporter: Geoff Madden <mgmadden>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
fftw-3.3.8
Runtime testing required: ---
Attachments: evironment file for fftw-3.3.8
build log for a ryzen5 cpu
emerge info

Description Geoff Madden 2018-09-28 11:59:56 UTC
Created attachment 548104 [details]
evironment file for fftw-3.3.8

run emerge fftw,compilegdets to multilib-double and fails
Comment 1 Geoff Madden 2018-09-28 12:03:25 UTC
Created attachment 548106 [details]
build log for a ryzen5 cpu
Comment 2 Geoff Madden 2018-09-28 12:07:00 UTC
The complcation is that I travelled to the work dir & bootstrapped the file,compiled
and there were no error messages & it compiled up just fine.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-09-28 12:36:44 UTC
/bin/sh ../../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sci-libs/fftw-3.3.8/work/fftw-3.3.8/dft/simd/avx2 -I../../..  -I /var/tmp/portage/sci-libs/fftw-3.3.8/work/fftw-3.3.8  -march=core-avx2 -mfma -O2 -march=athlon64 -pipe -c -o n1fv_10.lo /var/tmp/portage/sci-libs/fftw-3.3.8/work/fftw-3.3.8/dft/simd/avx2/n1fv_10.c

Note that -march=athlon64 appears there which trumps the previous -march=core-avx2. athlon64 does not have AVX2. Fix your CFLAGS.
Comment 4 Geoff Madden 2018-09-29 08:10:30 UTC
(In reply to Brian Evans from comment #3)
> /bin/sh ../../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc
> -DHAVE_CONFIG_H -I.
> -I/var/tmp/portage/sci-libs/fftw-3.3.8/work/fftw-3.3.8/dft/simd/avx2
> -I../../..  -I /var/tmp/portage/sci-libs/fftw-3.3.8/work/fftw-3.3.8 
> -march=core-avx2 -mfma -O2 -march=athlon64 -pipe -c -o n1fv_10.lo
> /var/tmp/portage/sci-libs/fftw-3.3.8/work/fftw-3.3.8/dft/simd/avx2/n1fv_10.c
> 
> Note that -march=athlon64 appears there which trumps the previous
> -march=core-avx2. athlon64 does not have AVX2. Fix your CFLAGS.

noted and have changed it to native as there does not appear to be an alternative
for the ryzen series cpu's
Comment 5 Geoff Madden 2018-09-29 08:13:21 UTC
Created attachment 548164 [details]
emerge info