Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858251 - dev-scheme/chez-9.5.8 fails to compile (lto): undefined reference to LZ4F_isError
Summary: dev-scheme/chez-9.5.8 fails to compile (lto): undefined reference to LZ4F_isE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Smith
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-15 17:11 UTC by Agostino Sarubbo
Modified: 2022-07-16 07:52 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,70.63 KB, text/plain)
2022-07-15 17:11 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 2022-07-15 17:11:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-scheme/chez-9.5.8 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-15 17:11:22 UTC
Created attachment 791591 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-15 17:11:24 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x10e0): undefined reference to `LZ4F_isError'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x11bc): undefined reference to `LZ4F_decompress'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x11cf): undefined reference to `LZ4F_isError'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x12ba): undefined reference to `LZ4F_isError'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x1889): undefined reference to `gzclose'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x18c3): undefined reference to `LZ4F_createDecompressionContext'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x18cb): undefined reference to `LZ4F_isError'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x193b): undefined reference to `LZ4F_freeDecompressionContext'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x1952): undefined reference to `LZ4F_freeDecompressionContext'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x29b4): undefined reference to `gzdopen'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x29d5): undefined reference to `gzsetparams'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x2a36): undefined reference to `gzclose'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x2b1d): undefined reference to `gzclose'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x8f5b): undefined reference to `compress2'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x8fb3): undefined reference to `LZ4_compress_default'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x9159): undefined reference to `LZ4_decompress_safe'
<artificial>:(.text+0x10cd): undefined reference to `LZ4F_decompress'
<artificial>:(.text+0x12ac): undefined reference to `LZ4F_compressFrame'
<artificial>:(.text+0x1839): undefined reference to `gzdopen'
<artificial>:(.text+0x19a5): undefined reference to `gzdirect'
<artificial>:(.text+0x2415): undefined reference to `gzerror'
<artificial>:(.text+0x2475): undefined reference to `gzclearerr'
<artificial>:(.text+0x294a): undefined reference to `LZ4F_compressFrameBound'
<artificial>:(.text+0x2aa0): undefined reference to `LZ4F_freeDecompressionContext'
<artificial>:(.text+0x2bcd): undefined reference to `gzread'
<artificial>:(.text+0x2c0d): undefined reference to `gzwrite'
<artificial>:(.text+0x2d09): undefined reference to `gzseek'
<artificial>:(.text+0x2d36): undefined reference to `LZ4F_resetDecompressionContext'
<artificial>:(.text+0x2e35): undefined reference to `gzgetc'
<artificial>:(.text+0x2eb5): undefined reference to `gzungetc'
<artificial>:(.text+0x56f1): undefined reference to `compressBound'
<artificial>:(.text+0x56f9): undefined reference to `LZ4_compressBound'
<artificial>:(.text+0x8855): undefined reference to `gzdirect'
<artificial>:(.text+0x8a5d): undefined reference to `gzdirect'
<artificial>:(.text+0x8f17): undefined reference to `LZ4_compress_HC'
<artificial>:(.text+0x90f0): undefined reference to `uncompress'
collect2: error: ld returned 1 exit status
Comment 3 Larry the Git Cow gentoo-dev 2022-07-16 07:52:50 UTC
The bug has been closed via the following commit(s):

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

commit 290ee32ea6a501a008ebbfe97a13d2ea33d2291e
Author:     Matthew Smith <matthew@gentoo.org>
AuthorDate: 2022-07-16 07:49:40 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2022-07-16 07:52:17 +0000

    dev-scheme/chez: use system lz4 and zlib
    
    Also fixes LTO error related to the linking of the vendored versions of
    these libraries.
    
    Closes: https://bugs.gentoo.org/858251
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 dev-scheme/chez/chez-9.5.8-r1.ebuild | 76 ++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)