Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922092 - [guru] sys-fs/dwarfs-0.7.4-r3 fails to compile (GCC-14-SYSTEM): collect2: error: ld returned 1 exit status
Summary: [guru] sys-fs/dwarfs-0.7.4-r3 fails to compile (GCC-14-SYSTEM): collect2: err...
Status: RESOLVED NEEDINFO
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Reva Denis
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 08:38 UTC by Agostino Sarubbo
Modified: 2024-02-12 07:25 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,53.74 KB, application/x-xz)
2024-01-14 08:38 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 2024-01-14 08:38:55 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-fs/dwarfs-0.7.4-r3 fails to compile (GCC-14-SYSTEM).
Discovered on: amd64 (internal ref: guru_tinderbox)

NOTE:
(GCC-14-SYSTEM) in the summary means that the bug was found on a machine that runs gcc-14 but this bug MAY or MAY NOT BE related to the new compiler
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-14 08:38:57 UTC
Created attachment 882233 [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-01-14 08:38:58 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


  Could not find a configuration file for package "fmt" that is compatible
--   Package 'fuse', required by 'virtual:world', not found
--   Package 'libbrotlidec', required by 'virtual:world', not found
--   Package 'libbrotlienc', required by 'virtual:world', not found
-- Could NOT find LIBAIO (missing: LIBAIO_LIBRARY LIBAIO_INCLUDE_DIR) 
-- Could NOT find LIBDWARF (missing: LIBDWARF_LIBRARY) 
-- Could NOT find LIBSODIUM (missing: LIBSODIUM_LIBRARY LIBSODIUM_INCLUDE_DIR) 
-- Could NOT find LIBURING (missing: LIBURING_LIBRARY LIBURING_INCLUDE_DIR) 
-- Could NOT find ZSTD (missing: ZSTD_INCLUDE_DIR) 
FAILED: folly/libfolly.so.0.58.0-dev 
collect2: error: ld returned 1 exit status
Comment 3 YiFei Zhu 2024-01-14 19:14:50 UTC
Error seems to be at:

`_ZN5folly6detail8function14FunctionTraitsIFvvEE9callSmallIPS3_EEvRNS1_4DataE' referenced in section `.data.rel.ro.local' of folly/CMakeFiles/folly_base.dir/folly/executors/EDFThreadPoolExecutor.cpp.o: defined in discarded section `.text._ZN5folly6detail8function14FunctionTraitsIFvvEE9callSmallIPS3_EEvRNS1_4DataE[_ZN5folly6detail5thunk4makeINS_18threadlocal_detail10StaticMetaIvvEEJEEEPvDpT0_]' of folly/CMakeFiles/folly_base.dir/folly/executors/EDFThreadPoolExecutor.cpp.o
Comment 4 YiFei Zhu 2024-01-14 19:36:11 UTC
I can't reproduce this on GCC 13. Does tinderbox reproduce this on GCC 13? If no I'm suspecting something to do with compiler.

For the record, the symbol in question is a global weak symbol, and I see no reason it gets discarded.
Comment 5 Reva Denis 2024-02-12 07:25:28 UTC
Resolved as need info. Please reproduce with latest version.