Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815775 - dev-libs/ntl-11.5.1-r1 fails to compile: ../include/NTL/FFT_impl.h:12:2: error: #error "NTL_ENABLE_AVX_FFT: not supported on this platform"
Summary: dev-libs/ntl-11.5.1-r1 fails to compile: ../include/NTL/FFT_impl.h:12:2: erro...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-02 06:12 UTC by Agostino Sarubbo
Modified: 2022-10-30 00:21 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,55.96 KB, text/plain)
2021-10-02 06:12 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-10-02 06:12:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/ntl-11.4.4 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-10-02 06:12:29 UTC
Created attachment 742491 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-02 06:12:30 UTC
Possible context of error(s):

../include/NTL/FFT_impl.h:12:2: error: #error "NTL_ENABLE_AVX_FFT: not supported on this platform"
Comment 3 Agostino Sarubbo gentoo-dev 2021-11-09 07:43:35 UTC
ci has reproduced this issue with version 11.4.4-r1 - Updating summary.
Comment 4 Michael Orlitzky gentoo-dev 2022-01-18 14:38:18 UTC
This one looks fun. NTL determines that you don't have AVX2 support:

  *** Checking for feature: AVX2 [no]

But that check consists of,

  #if (!defined(__GNUC__) || !defined(__x86_64__) || !defined(__AVX2__))
  #error "AVX2 not supported"
  #endif

  #if (NTL_BITS_PER_LONG != 64 || NTL_BITS_PER_INT != 32 
                               || NTL_DOUBLE_PRECISION != 53)
  #error "AVX2 not supported"
  // sanity check -- code that uses this feature also relies on this              
  #endif

  #ifndef NTL_HAVE_ALIGNED_ARRAY
  #error "AVX2 not supported"
  #endif

and to me it looks like all the sub-checks are satisfied. From the build log again,

  bits per long = 64
  bits per int = 32
  double precision = 53
  *** Checking for feature: ALIGNED_ARRAY [yes]

So I guess it must be defined(__GNUC__) or defined(__x86_64__) that is causing the problem? Can you check?
Comment 5 Michael Orlitzky gentoo-dev 2022-01-18 14:44:30 UTC
Or I guess your CPU flags could be wrong (no avx2?)...
Comment 6 Agostino Sarubbo gentoo-dev 2022-01-18 19:47:43 UTC
ci has reproduced this issue with version 11.5.1 - Updating summary.
Comment 7 Agostino Sarubbo gentoo-dev 2022-01-24 07:53:51 UTC
ci has reproduced this issue with version 11.5.1-r1 - Updating summary.