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

Bug 863860

Summary: app-text/tesseract-5.2.0: error: inlining failed in call to 'always_ inline' '__m512d _mm512_setzero_pd()': target specific option mismatch
Product: Gentoo Linux Reporter: Luke-Jr <luke-jr+gentoobugs>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: UNCONFIRMED ---    
Severity: normal CC: chutzpah
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://github.com/tesseract-ocr/tesseract/issues/3891
Whiteboard:
Package list:
Runtime testing required: ---

Description Luke-Jr 2022-08-05 20:14:34 UTC
configure tests -mavx512f (and other variants) with $CXX $CXXFLAGS -mavx512f (simplified) which detects compiler AVX512F support, but then builds with $CXX -mavx512f $CXXFLAGS which fails because my CXXFLAGS includes -mno-avx512f.

Probably the configure check should be adjusted so it detects no AVX512F support when the user specifies -mno-avx512f in CXXFLAGS. Or at the very least (if there's reason to enforce runtime detection even when the user has said "no"), building should use the same order so AVX512F is force-enabled for the files that use it.

Upstream bug: https://github.com/tesseract-ocr/tesseract/issues/3891
Comment 1 Luke-Jr 2022-09-15 13:41:21 UTC
Upstream is apparently not planning to fix this