Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854723 - app-misc/broot-1.13.2 fails to compile (lto): undefined reference to onig_free_match_param
Summary: app-misc/broot-1.13.2 fails to compile (lto): undefined reference to onig_fre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Karl-Johan Karlsson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-06-28 06:41 UTC by Agostino Sarubbo
Modified: 2024-03-03 06:34 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,292.71 KB, text/plain)
2022-06-28 06:41 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-06-28 06:41:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-misc/broot-1.13.2 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-06-28 06:41:47 UTC
Created attachment 788213 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-06-28 06:41:50 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: /var/tmp/portage/app-misc/broot-1.13.2/work/broot-1.13.2/target/release/deps/broot-62cc6c92e4df541e.broot.0ddf5140-cgu.0.rcgu.o: in function `onig::Error::new':
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x175): undefined reference to `onig_free_match_param'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x1c7): undefined reference to `onig_search_with_param'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x1e0): undefined reference to `onig_free_match_param'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x45): undefined reference to `onig_initialize_match_param'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x54): undefined reference to `onig_get_encoding'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x5b): undefined reference to `OnigEncodingUTF8'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x68): undefined reference to `OnigEncodingUTF8'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x77): undefined reference to `onig_get_encoding'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x1288): undefined reference to `onig_region_copy'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x1347): undefined reference to `onig_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x13c9): undefined reference to `onig_region_copy'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x1408): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x143e): undefined reference to `onig_region_copy'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x14d3): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x153c): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x1782): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x2bd8): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x2cff): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x3060): undefined reference to `onig_region_copy'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x327b): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x32c8): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x33e8): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x34e8): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x3537): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x8b4): undefined reference to `onig_region_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN9once_cell3imp17OnceCell$LT$T$GT$10initialize28_$u7b$$u7b$closure$u7d$$u7d$17h69052be63c39059bE+0x11a): undefined reference to `onig_free'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN9once_cell3imp17OnceCell$LT$T$GT$10initialize28_$u7b$$u7b$closure$u7d$$u7d$17h69052be63c39059bE+0xb1): undefined reference to `OnigEncodingUTF8'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: broot.0ddf5140-cgu.0:(.text._ZN9once_cell3imp17OnceCell$LT$T$GT$10initialize28_$u7b$$u7b$closure$u7d$$u7d$17h69052be63c39059bE+0xca): undefined reference to `onig_new'
          broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing5regex5Regex6search17h23444787745b89beE+0x39): undefined reference to `onig_new_match_param'
          broot.0ddf5140-cgu.0:(.text._ZN16syntect_no_panic7parsing6parser10ParseState10parse_line17hc06508cefa9d8504E+0x106): undefined reference to `onig_region_resize'
          broot.0ddf5140-cgu.0:(.text._ZN205_$LT$syntect_no_panic..parsing..syntax_set.._..$LT$impl$u20$serde..de..Deserialize$u20$for$u20$syntect_no_panic..parsing..syntax_set..SyntaxSet$GT$..deserialize..__Visitor$u20$as$u20$serde..de..Visitor$GT$9visit_seq17h0050304230016649E+0x1f1b): undefined reference to `onig_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr107drop_in_place$LT$once_cell..sync..OnceCell$LT$syntect_no_panic..parsing..syntax_set..FirstLineCache$GT$$GT$17hca7d452a20ab66c3E+0x38): undefined reference to `onig_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr172drop_in_place$LT$$LP$$BP$const$u20$syntect_no_panic..parsing..syntax_definition..MatchPattern$C$core..option..Option$LT$syntect_no_panic..parsing..regex..Region$GT$$RP$$GT$17hbc40fa2daa7d1d62E+0xf): undefined reference to `onig_region_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr263drop_in_place$LT$std..collections..hash..map..HashMap$LT$$BP$const$u20$syntect_no_panic..parsing..syntax_definition..MatchPattern$C$core..option..Option$LT$syntect_no_panic..parsing..regex..Region$GT$$C$core..hash..BuildHasherDefault$LT$fnv..FnvHasher$GT$$GT$$GT$17hca2a4db3154ad686E+0xc6): undefined reference to `onig_region_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr41drop_in_place$LT$onig..region..Region$GT$17hbed3566dbdd92d2cE+0x4): undefined reference to `onig_region_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr50drop_in_place$LT$onig..match_param..MatchParam$GT$17h0fa05145888ca013E+0x5): undefined reference to `onig_free_match_param'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr60drop_in_place$LT$syntect_no_panic..parsing..regex..Regex$GT$17h05e87abc30131a17E+0x27): undefined reference to `onig_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr66drop_in_place$LT$syntect_no_panic..parsing..parser..ParseState$GT$17ha2981a9f9e856995E+0x27): undefined reference to `onig_region_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr66drop_in_place$LT$syntect_no_panic..parsing..parser..StateLevel$GT$17h88ef8c6823e2b94cE+0x3f): undefined reference to `onig_region_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr74drop_in_place$LT$syntect_no_panic..parsing..syntax_definition..Pattern$GT$17hf22a13be3af84d97E+0x40): undefined reference to `onig_free'
          broot.0ddf5140-cgu.0:(.text._ZN4core3ptr94drop_in_place$LT$core..option..Option$LT$syntect_no_panic..parsing..parser..RegexMatch$GT$$GT$17h357f6a2bbd2640d2E+0xb): undefined reference to `onig_region_free'
          broot.0ddf5140-cgu.0:(.text._ZN4onig5Error3new17hca82553f31e8d36fE+0x3f): undefined reference to `onig_error_code_to_str'
          broot.0ddf5140-cgu.0:(.text._ZN9once_cell3imp17OnceCell$LT$T$GT$10initialize28_$u7b$$u7b$closure$u7d$$u7d$17h69052be63c39059bE+0x2b): undefined reference to `OnigDefaultSyntax'
error: linking with `x86_64-pc-linux-gnu-gcc` failed: exit status: 1
Comment 3 Ionen Wolkens gentoo-dev 2022-06-28 06:50:37 UTC
Haven't tried, but for oniguruma it should be possible to unbundle it like sys-apps/bat's ebuild.

Not to say lto may not fail on yet more crates, so filtering is often needed.
Comment 4 Eli Schwartz 2024-03-03 06:34:40 UTC
Apparently fixed by cargo.eclass, cannot reproduce anymore.