Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858512 - dev-util/wachy-0.1.0_alpha6 fails to compile (lto): undefined reference to cplus_demangle_wrapper
Summary: dev-util/wachy-0.1.0_alpha6 fails to compile (lto): undefined reference to cp...
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-17 07:59 UTC by Agostino Sarubbo
Modified: 2024-03-06 03:09 UTC (History)
1 user (show)

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


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

Issue: dev-util/wachy-0.1.0_alpha6 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-17 07:59:21 UTC
Created attachment 791852 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-17 07:59:23 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: wachy.3932dff7-cgu.2:(.text._ZN5wachy10controller10Controller14setup_function17hd3365a5b8a07b646E+0xc8f): undefined reference to `ZydisRegisterGetString'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: wachy.3932dff7-cgu.2:(.text._ZN5wachy10controller10Controller14setup_function17hd3365a5b8a07b646E+0xd2a): undefined reference to `ZydisRegisterGetString'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: wachy.3932dff7-cgu.2:(.text._ZN5wachy10controller10Controller14setup_function17hd3365a5b8a07b646E+0xe25): undefined reference to `ZydisCalcAbsoluteAddress'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: wachy.3932dff7-cgu.2:(.text._ZN5wachy7program7Program3new17h6ea90dd80a734c7dE+0x1a80): undefined reference to `ZydisCalcAbsoluteAddress'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: wachy.3932dff7-cgu.2:(.text._ZN87_$LT$wachy..program..CallIterator$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17hac9a1f804fff6b5eE+0x21e): undefined reference to `ZydisFormatterInit'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: wachy.3932dff7-cgu.2:(.text._ZN87_$LT$wachy..program..CallIterator$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17hac9a1f804fff6b5eE+0x2f8): undefined reference to `ZydisFormatterFormatInstructionEx'
          wachy.3932dff7-cgu.2:(.text._ZN14cplus_demangle8demangle17h5113360a8a5a20fdE+0x76): undefined reference to `cplus_demangle_wrapper'
          wachy.3932dff7-cgu.2:(.text._ZN5wachy10controller10Controller14setup_function17hd3365a5b8a07b646E+0xaa4): undefined reference to `ZydisDecoderInit'
          wachy.3932dff7-cgu.2:(.text._ZN5wachy7program7Program3new17h6ea90dd80a734c7dE+0x1711): undefined reference to `ZydisDecoderInit'
          wachy.3932dff7-cgu.2:(.text._ZN87_$LT$wachy..program..CallIterator$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17hac9a1f804fff6b5eE+0x55): undefined reference to `ZydisDecoderDecodeBuffer'
error: linking with `x86_64-pc-linux-gnu-gcc` failed: exit status: 1
Comment 3 Eli Schwartz 2024-03-06 03:09:13 UTC
Apparently fixed by cargo.eclass, cannot reproduce anymore.