Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926891 - app-text/ghostscript-gpl-10.03.1 fails to compile on arm: simddetect.cpp:(.text+0x5b4): undefined reference to tesseract::DotProductNEON(double const, double const, int)
Summary: app-text/ghostscript-gpl-10.03.1 fails to compile on arm: simddetect.cpp:(.te...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: Codec Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 930914 935302 945129
  Show dependency tree
 
Reported: 2024-03-13 09:08 UTC by Agostino Sarubbo
Modified: 2024-12-08 07:12 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,70.66 KB, application/x-xz)
2024-03-13 09:08 UTC, Agostino Sarubbo
Details
build.log and emerge --info (build.log.gz,110.28 KB, application/gzip)
2024-09-19 16:41 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-13 09:08:44 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/ghostscript-gpl-10.03.0 fails to compile.
Discovered on: arm (internal ref: tinderbox_arm)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-13 09:08:46 UTC
Created attachment 887511 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-13 09:08:47 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/13/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: ./sobin/libgs.so: undefined reference to `tesseract::DotProductNEON(double const*, double const*, int)'
simddetect.cpp:(.text+0x5b4): undefined reference to `tesseract::DotProductNEON(double const*, double const*, int)'
simddetect.cpp:(.text+0x728): undefined reference to `tesseract::DotProductNEON(double const*, double const*, int)'
collect2: error: ld returned 1 exit status
Comment 3 Agostino Sarubbo gentoo-dev 2024-03-17 20:39:02 UTC
tinderbox_arm has reproduced this issue with version 10.03.0-r1 - Updating summary.
Comment 4 matoro archtester 2024-08-31 03:09:42 UTC
Still present on 10.03.1
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-01 02:24:31 UTC
(In reply to Sam James from comment #5)
> https://git.ghostscript.com/?p=ghostpdl.git;a=commit;
> h=b49bf7ac006c50d8ee65bf682e1fe22668cee5ea may help.

No, I think that's in the release..
Comment 7 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=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(+)

Additionally, it has been referenced in 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(+)
Comment 8 matoro archtester 2024-09-19 16:41:36 UTC
Created attachment 903347 [details]
build.log and emerge --info

I'm still getting this issue, just the error is slightly different now.

/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/13/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: ./sobin/libgs.so: undefined reference to `tesseract::DotProductNEON(double const*, double const*, int)'
Comment 9 Larry the Git Cow gentoo-dev 2024-12-08 07:10:29 UTC
The bug has been closed via the following commit(s):

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

commit 648670d3df48a16e7657bde8c7c4d1836d5359b7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-08 07:09:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-08 07:09:36 +0000

    app-text/ghostscript-gpl: wire up cpu_flags_arm_neon
    
    negril pointed out the existence of the configure option.
    
    Closes: https://bugs.gentoo.org/926891
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 10 Larry the Git Cow gentoo-dev 2024-12-08 07:12:40 UTC
The bug has been referenced in the following commit(s):

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

commit fef88d5a518705308359f8135d92e60a3a9a64f3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-08 07:12:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-08 07:12:07 +0000

    app-text/ghostscript-gpl: backport neon fix
    
    Backport the fix from 648670d3df48a16e7657bde8c7c4d1836d5359b7 so the
    security stablereq can proceed.
    
    Bug: https://bugs.gentoo.org/926891
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/ghostscript-gpl/ghostscript-gpl-10.03.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)