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

Bug 924757

Summary: app-text/tesseract-5.3.4 fails to compile: ld: libtesseract.so: undefined reference to tesseract::IntSimdMatrix::intSimdMatrixNEON
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal CC: chutzpah, kuraga333, matoro_gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=926891
https://github.com/tesseract-ocr/tesseract/issues/3918
https://github.com/tesseract-ocr/tesseract/pull/4154
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 933635    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-02-17 08:00:48 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/tesseract-5.3.4 fails to compile.
Discovered on: arm (internal ref: tinderbox_arm)
System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-02-17 08:00:50 UTC
Created attachment 885186 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-17 08:00:50 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/14/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: ./.libs/libtesseract.so: undefined reference to `tesseract::DotProductNEON(double const*, double const*, int)'
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/14/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: ./.libs/libtesseract.so: undefined reference to `tesseract::IntSimdMatrix::intSimdMatrixNEON'
configure: WARNING: icu 52.1 or higher is required, but was not found.
configure: WARNING: pango 1.38.0 or higher is required, but was not found.
collect2: error: ld returned 1 exit status
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-01 02:55:59 UTC
https://github.com/tesseract-ocr/tesseract/pull/4154 perhaps.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-01 07:20:31 UTC
Fedora used a similar one at https://src.fedoraproject.org/rpms/tesseract/blob/rawhide/f/tesseract_neon.patch.
Comment 5 Larry the Git Cow gentoo-dev 2024-09-01 07:33:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8db9f66124d9c5620f4f2f6db921125ba9c6fa74

commit 8db9f66124d9c5620f4f2f6db921125ba9c6fa74
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-09-01 07:32:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-01 07:32:49 +0000

    app-text/tesseract: fix arm* build w/o neon
    
    Bug: https://bugs.gentoo.org/926891
    Closes: https://bugs.gentoo.org/924757
    Signed-off-by: Sam James <sam@gentoo.org>

 .../tesseract-5.4.1-arm64-neon-tesseract.patch     | 57 ++++++++++++++++++++++
 app-text/tesseract/tesseract-5.3.4.ebuild          |  4 ++
 app-text/tesseract/tesseract-5.4.1.ebuild          |  4 ++
 app-text/tesseract/tesseract-9999.ebuild           |  4 ++
 4 files changed, 69 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a122be2eff3e44ef7c039d052ac47da8361fd6ae

commit a122be2eff3e44ef7c039d052ac47da8361fd6ae
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-09-01 07:29:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-01 07:29:58 +0000

    app-text/ghostscript-gpl: fix arm* build w/o neon
    
    Bug: https://bugs.gentoo.org/924757
    Closes: https://bugs.gentoo.org/926891
    Signed-off-by: Sam James <sam@gentoo.org>

 ...stscript-gpl-10.03.1-arm64-neon-tesseract.patch | 35 ++++++++++++++++++++++
 .../ghostscript-gpl/ghostscript-gpl-10.03.1.ebuild |  1 +
 2 files changed, 36 insertions(+)