Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829398 - media-gfx/hugin-2021.0_rc1 fails to compile: undefined reference to LZ4_resetStreamHC
Summary: media-gfx/hugin-2021.0_rc1 fails to compile: undefined reference to LZ4_reset...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-17 06:56 UTC by Agostino Sarubbo
Modified: 2021-12-26 03:03 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,478.00 KB, text/plain)
2021-12-17 06:56 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-12-17 06:56:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/hugin-2020.0.0-r1 fails to compile.
Discovered on: amd64 (internal ref: ci)

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

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-12-17 06:56:48 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


PanoDetectorLogic.cpp:(.text._ZN5flann11KMeansIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE[_ZN5flann11KMeansIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE]+0x7b): undefined reference to `LZ4_resetStreamHC'
PanoDetectorLogic.cpp:(.text._ZN5flann11LinearIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE[_ZN5flann11LinearIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE]+0x7b): undefined reference to `LZ4_resetStreamHC'
PanoDetectorLogic.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0x3e): undefined reference to `LZ4_compress_HC_continue'
PanoDetectorLogic.cpp:(.text._ZN5flann14AutotunedIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE[_ZN5flann14AutotunedIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE]+0x82): undefined reference to `LZ4_resetStreamHC'
PanoDetectorLogic.cpp:(.text._ZN5flann27HierarchicalClusteringIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE[_ZN5flann27HierarchicalClusteringIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE]+0x81): undefined reference to `LZ4_resetStreamHC'
PanoDetectorLogic.cpp:(.text._ZN5flann8LshIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IdEEE9saveIndexEP8_IO_FILE]+0x7d): undefined reference to `LZ4_resetStreamHC'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: PanoDetectorLogic.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0xd1): undefined reference to `LZ4_compress_HC_continue'
collect2: error: ld returned 1 exit status
Comment 3 younky.yang 2021-12-19 23:43:28 UTC
Had same issue here with a brand new build with Intel EVO platform.
Comment 4 Agostino Sarubbo gentoo-dev 2021-12-25 12:25:17 UTC
ci has reproduced this issue with version 2021.0_rc1 - Updating summary.
Comment 5 Larry the Git Cow gentoo-dev 2021-12-26 03:03:47 UTC
The bug has been closed via the following commit(s):

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

commit 65f96213bd1cc2f77a9c5c5fb5665c91d8279909
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-26 03:02:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-26 03:03:39 +0000

    sci-libs/flann: fix pkgconfig file format (no semicolons)
    
    Not sure why but a semicolon seems to have started appearing more
    recently, probably with a newer CMake version. Anyway, a problem
    from the past resurfaced (in a slightly different way, but
    same outcome).
    
    flann's malformed pkgconfig file was causing consumers to be
    underlinked against lz4 and libflann* (and usually fail to build).
    
    Closes: https://bugs.gentoo.org/827263
    Closes: https://bugs.gentoo.org/829398
    Bug: https://bugs.gentoo.org/681898
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/flann-1.9.1-system-lz4-pkgconfig.patch   | 38 ++++++++++++++++++++++
 ...flann-1.9.1-r3.ebuild => flann-1.9.1-r4.ebuild} |  3 +-
 2 files changed, 40 insertions(+), 1 deletion(-)