Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956119 - app-arch/xz-utils-5.8.1 fails to build on llvm profiles/stages
Summary: app-arch/xz-utils-5.8.1 fails to build on llvm profiles/stages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL: https://github.com/tukaani-project/xz...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-17 21:57 UTC by Andreas K. Hüttel
Modified: 2025-05-20 16:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2025-05-17 21:57:01 UTC
During stage1 build, the following happens: 

libtool: link: clang -shared  -fPIC -DPIC  .libs/liblzma_la-tuklib_physmem.o .libs/liblzma_la-tuklib_cpucores.o .libs/liblzma_la-common.o .libs/liblzma_la-block_util.o .libs/liblzma_la-easy_preset.o .libs/liblzma_la-filter_common.o .libs/liblzma_la-hardware_physmem.o .libs/liblzma_la-index.o .libs/liblzma_la-stream_flags_common.o .libs/liblzma_la-string_conversion.o .libs/liblzma_la-vli_size.o .libs/liblzma_la-hardware_cputhreads.o .libs/liblzma_la-outqueue.o .libs/liblzma_la-alone_encoder.o .libs/liblzma_la-block_buffer_encoder.o .libs/liblzma_la-block_encoder.o .libs/liblzma_la-block_header_encoder.o .libs/liblzma_la-easy_buffer_encoder.o .libs/liblzma_la-easy_encoder.o .libs/liblzma_la-easy_encoder_memusage.o .libs/liblzma_la-filter_buffer_encoder.o .libs/liblzma_la-filter_encoder.o .libs/liblzma_la-filter_flags_encoder.o .libs/liblzma_la-index_encoder.o .libs/liblzma_la-stream_buffer_encoder.o .libs/liblzma_la-stream_encoder.o .libs/liblzma_la-stream_flags_encoder.o .libs/liblzma
 _la-vli_encoder.o .libs/liblzma_la-stream_encoder_mt.o .libs/liblzma_la-microlzma_encoder.o .libs/liblzma_la-alone_decoder.o .libs/liblzma_la-auto_decoder.o .libs/liblzma_la-block_buffer_decoder.o .libs/liblzma_la-block_decoder.o .libs/liblzma_la-block_header_decoder.o .libs/liblzma_la-easy_decoder_memusage.o .libs/liblzma_la-file_info.o .libs/liblzma_la-filter_buffer_decoder.o .libs/liblzma_la-filter_decoder.o .libs/liblzma_la-filter_flags_decoder.o .libs/liblzma_la-index_decoder.o .libs/liblzma_la-index_hash.o .libs/liblzma_la-stream_buffer_decoder.o .libs/liblzma_la-stream_decoder.o .libs/liblzma_la-stream_flags_decoder.o .libs/liblzma_la-vli_decoder.o .libs/liblzma_la-stream_decoder_mt.o .libs/liblzma_la-microlzma_decoder.o .libs/liblzma_la-lzip_decoder.o .libs/liblzma_la-check.o .libs/liblzma_la-crc32_fast.o .libs/liblzma_la-crc64_fast.o .libs/liblzma_la-lz_encoder.o .libs/liblzma_la-lz_encoder_mf.o .libs/liblzma_la-lz_decoder.o .libs/liblzma_la-lzma_encoder_presets.o .libs/lib
 lzma_la-lzma_encoder.o .libs/liblzma_la-lzma_encoder_optimum_fast.o .libs/liblzma_la-lzma_encoder_optimum_normal.o .libs/liblzma_la-fastpos_table.o .libs/liblzma_la-lzma_decoder.o .libs/liblzma_la-lzma2_encoder.o .libs/liblzma_la-lzma2_decoder.o .libs/liblzma_la-price_table.o   -Wl,--as-needed -lpthread  -O2 -Wl,--version-script=/var/tmp/portage/app-arch/xz-utils-5.8.1/work/xz-5.8.1/src/liblzma/liblzma_linux.map -Wl,-O1 -Wl,-z -Wl,pack-relative-relocs   -pthread -Wl,-soname -Wl,liblzma.so.5 -o .libs/liblzma.so.5.8.1
ld.lld: error: version script assignment of 'XZ_5.8' to symbol 'lzma_bcj_arm64_encode' failed: symbol not defined
ld.lld: error: version script assignment of 'XZ_5.8' to symbol 'lzma_bcj_arm64_decode' failed: symbol not defined
ld.lld: error: version script assignment of 'XZ_5.8' to symbol 'lzma_bcj_riscv_encode' failed: symbol not defined
ld.lld: error: version script assignment of 'XZ_5.8' to symbol 'lzma_bcj_riscv_decode' failed: symbol not defined
ld.lld: error: version script assignment of 'XZ_5.8' to symbol 'lzma_bcj_x86_encode' failed: symbol not defined
ld.lld: error: version script assignment of 'XZ_5.8' to symbol 'lzma_bcj_x86_decode' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [Makefile:960: liblzma.la] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.8.1/work/xz-5.8.1-.arm64/src/liblzma'
make[3]: *** [Makefile:1736: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.8.1/work/xz-5.8.1-.arm64/src/liblzma'
make[2]: *** [Makefile:438: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.8.1/work/xz-5.8.1-.arm64/src'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.8.1/work/xz-5.8.1-.arm64'
make: *** [Makefile:492: all] Error 2
 [31;01m*[0m ERROR: app-arch/xz-utils-5.8.1::gentoo failed (compile phase):
 [31;01m*[0m   emake failed

For full log, see
https://public-inbox.gentoo.org/gentoo-releng-autobuilds/20250511210346.16997749FA2@milou.amd64.dev.gentoo.org/T/#u
Comment 1 Larry the Git Cow gentoo-dev 2025-05-20 16:28:46 UTC
The bug has been closed via the following commit(s):

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

commit f71d64562a603ad98cea1b73410a4d75aea49e78
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2025-05-20 16:27:09 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2025-05-20 16:28:35 +0000

    app-arch/xz-utils: Add workaround for ld.lld related failure
    
    Closes: https://bugs.gentoo.org/956119
    See-also: https://github.com/tukaani-project/xz/issues/180
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 app-arch/xz-utils/xz-utils-5.8.1-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)