Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858326 - dev-util/difftastic-0.31.0 fails to compile (lto): undefined reference to ts_query_cursor_next_match
Summary: dev-util/difftastic-0.31.0 fails to compile (lto): undefined reference to ts_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-16 09:09 UTC by Agostino Sarubbo
Modified: 2024-03-03 05:01 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,192.01 KB, text/plain)
2022-07-16 09:09 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-16 09:09:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/difftastic-0.31.0 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-16 09:09:27 UTC
Created attachment 791684 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-16 09:09:29 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: difft.7331a74e-cgu.12:(.text.__rg_alloc+0x21): undefined reference to `mi_malloc_aligned'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: difft.7331a74e-cgu.12:(.text.__rg_alloc_zeroed+0x21): undefined reference to `mi_zalloc_aligned'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: difft.7331a74e-cgu.12:(.text.__rg_realloc+0x27): undefined reference to `mi_realloc_aligned'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: difft.7331a74e-cgu.5:(.text._ZN93_$LT$tree_sitter..QueryMatches$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h5f2d980577b82078E+0x3ad): undefined reference to `ts_query_cursor_next_match'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Tree4walk17h026a876e4c262035E+0x59): undefined reference to `ts_tree_cursor_new'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x495): undefined reference to `ts_query_capture_name_for_id'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x559): undefined reference to `ts_query_capture_quantifier_for_id'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x73): undefined reference to `ts_query_string_count'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x7e6): undefined reference to `ts_query_predicates_for_pattern'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x811): undefined reference to `ts_query_start_byte_for_pattern'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x84): undefined reference to `ts_query_capture_count'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x94): undefined reference to `ts_query_pattern_count'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0xf3): undefined reference to `ts_language_version'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter6Parser10set_logger17hcfdd210def555999E+0xb0): undefined reference to `ts_parser_set_logger'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter6Parser12set_language17hbeec819f16f3d355E+0x2b): undefined reference to `ts_parser_set_language'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN61_$LT$tree_sitter..Parser$u20$as$u20$core..ops..drop..Drop$GT$4drop17h566c419622fd5acfE+0x2f): undefined reference to `ts_parser_delete'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: tree_sitter.67860081-cgu.0:(.text._ZN62_$LT$$RF$$u5b$u8$u5d$$u20$as$u20$tree_sitter..TextProvider$GT$4text17ha13b8599be26fb8fE+0x6b): undefined reference to `ts_node_end_byte'
          difft.7331a74e-cgu.12:(.text.__rg_alloc+0x1b): undefined reference to `mi_malloc'
          difft.7331a74e-cgu.12:(.text.__rg_alloc_zeroed+0x1b): undefined reference to `mi_zalloc'
          difft.7331a74e-cgu.12:(.text.__rg_dealloc+0x2): undefined reference to `mi_free'
          difft.7331a74e-cgu.12:(.text.__rg_realloc+0x1e): undefined reference to `mi_realloc'
          difft.7331a74e-cgu.4:(.text._ZN5difft5parse18tree_sitter_parser13parse_to_tree17h7f47d1855a930de5E+0xa8): undefined reference to `ts_parser_parse'
          difft.7331a74e-cgu.4:(.text._ZN5difft5parse18tree_sitter_parser5parse17h87401ccac887a0eeE+0x4af): undefined reference to `ts_query_cursor_exec'
          difft.7331a74e-cgu.5:(.text._ZN93_$LT$tree_sitter..QueryMatches$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h5f2d980577b82078E+0x24): undefined reference to `ts_query_cursor_next_match'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter10TreeCursor11goto_parent17h98168e362bc576b1E+0x2): undefined reference to `ts_tree_cursor_goto_parent'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter10TreeCursor16goto_first_child17he2a8df24fbd5f740E+0x2): undefined reference to `ts_tree_cursor_goto_first_child'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter10TreeCursor17goto_next_sibling17h57da357c69cb3d11E+0x2): undefined reference to `ts_tree_cursor_goto_next_sibling'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter10TreeCursor4node17h5c2eb00568c25689E+0xd): undefined reference to `ts_tree_cursor_current_node'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter11QueryCursor3new17ha1056f9a43efff94E+0x2): undefined reference to `ts_query_cursor_new'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node10start_byte17hb6aa84cf08199057E+0x2a): undefined reference to `ts_node_start_byte'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node11child_count17h63326a39bc460a53E+0x2a): undefined reference to `ts_node_child_count'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node12end_position17h65e93d310b86dba8E+0x2a): undefined reference to `ts_node_end_point'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node14start_position17hb3b8dc013f209de4E+0x2a): undefined reference to `ts_node_start_point'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node4kind17h3c72085f438b3338E+0x2b): undefined reference to `ts_node_type'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node8end_byte17h7d2e7cd33a0b85bbE+0x2a): undefined reference to `ts_node_end_byte'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node8is_error17hc1a52a1ce922b315E+0x2a): undefined reference to `ts_node_symbol'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Node8is_extra17h8d925d3de83fce03E+0x2a): undefined reference to `ts_node_is_extra'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Tree4walk17h026a876e4c262035E+0x15): undefined reference to `ts_tree_root_node'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter4Tree9root_node17hac726d66b3885a8fE+0x10): undefined reference to `ts_tree_root_node'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter5Query3new17h096c9c1490915cfeE+0x55): undefined reference to `ts_query_new'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter6Parser10set_logger17hcfdd210def555999E+0x29): undefined reference to `ts_parser_logger'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter6Parser12set_language17hbeec819f16f3d355E+0x10): undefined reference to `ts_language_version'
          tree_sitter.67860081-cgu.0:(.text._ZN11tree_sitter6Parser3new17hd938009f3e2290dbE+0x2): undefined reference to `ts_parser_new'
          tree_sitter.67860081-cgu.0:(.text._ZN4core3ptr39drop_in_place$LT$tree_sitter..Query$GT$17h00381471547ee21dE+0x1b): undefined reference to `ts_query_delete'
          tree_sitter.67860081-cgu.0:(.text._ZN59_$LT$tree_sitter..Tree$u20$as$u20$core..ops..drop..Drop$GT$4drop17h3b26c73aeda0668bE+0x5): undefined reference to `ts_tree_delete'
          tree_sitter.67860081-cgu.0:(.text._ZN60_$LT$tree_sitter..Query$u20$as$u20$core..ops..drop..Drop$GT$4drop17h810ae8d58c567490E+0x5): undefined reference to `ts_query_delete'
          tree_sitter.67860081-cgu.0:(.text._ZN61_$LT$tree_sitter..Parser$u20$as$u20$core..ops..drop..Drop$GT$4drop17h566c419622fd5acfE+0x14): undefined reference to `ts_parser_print_dot_graphs'
          tree_sitter.67860081-cgu.0:(.text._ZN62_$LT$$RF$$u5b$u8$u5d$$u20$as$u20$tree_sitter..TextProvider$GT$4text17ha13b8599be26fb8fE+0x3c): undefined reference to `ts_node_start_byte'
          tree_sitter.67860081-cgu.0:(.text._ZN65_$LT$tree_sitter..TreeCursor$u20$as$u20$core..ops..drop..Drop$GT$4drop17h21dfce36c8b543c4E+0x2): undefined reference to `ts_tree_cursor_delete'
          tree_sitter.67860081-cgu.0:(.text._ZN66_$LT$tree_sitter..QueryCursor$u20$as$u20$core..ops..drop..Drop$GT$4drop17hc5cf6cd27b88f3beE+0x5): undefined reference to `ts_query_cursor_delete'
          tree_sitter.67860081-cgu.8:(.text._ZN102_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h0de713b320421c20E+0x9c): undefined reference to `ts_query_string_value_for_id'
error: linking with `x86_64-pc-linux-gnu-gcc` failed: exit status: 1
Comment 3 Eli Schwartz 2024-03-03 05:01:58 UTC
Apparently fixed by cargo.eclass, cannot reproduce anymore.