Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858332 - dev-util/cargo-ebuild-0.5.1 fails to compile (lto): undefined reference to git_remote_fetch
Summary: dev-util/cargo-ebuild-0.5.1 fails to compile (lto): undefined reference to gi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-16 09:09 UTC by Agostino Sarubbo
Modified: 2022-11-08 19:49 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,216.54 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:38 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/cargo-ebuild-0.5.1 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:40 UTC
Created attachment 791690 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-16 09:09:42 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/dev-util/cargo-ebuild-0.5.1/work/cargo-ebuild-0.5.1/target/release/deps/libgit2-e7b2ad2e1b90a404.rlib(git2-e7b2ad2e1b90a404.git2.6b6f430f-cgu.13.rcgu.o): in function `git2::error::Error::last_error':
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository17extract_signature17h2795ab34941a47d1E+0x234): undefined reference to `git_buf_dispose'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository17extract_signature17h2795ab34941a47d1E+0x23f): undefined reference to `git_buf_dispose'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository5reset17h6abe1a01c1cfc146E+0x11c): undefined reference to `git_reset'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.13:(.text._ZN4git25error5Error10last_error17h717827c4173b1860E+0x10e): undefined reference to `git_error_last'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.13:(.text._ZN4git25error5Error10last_error17h717827c4173b1860E+0x165): undefined reference to `git_error_clear'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.2:(.text._ZN4git26config6Config10get_string17h8767506301d4f5f0E+0x310): undefined reference to `git_buf_dispose'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.3:(.text._ZN4git25build11RepoBuilder5clone17hdbd74a547b9ce4e8E+0x451): undefined reference to `git_clone'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: git2.6b6f430f-cgu.5:(.text._ZN4git26commit6Commit4time17hfaea7bd9e1eceea0E+0x1c): undefined reference to `git_commit_time_offset'
          /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: libgit2_sys.05db8377-cgu.2:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h2398e3859ae9ba1fE.llvm.413923333386852304+0x53): undefined reference to `git_error_last'
          git2.6b6f430f-cgu.0:(.text._ZN4core3ptr35drop_in_place$LT$git2..buf..Buf$GT$17h909e23e887e5c41bE+0x2): undefined reference to `git_buf_dispose'
          git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository11find_object17h2344c1e382c379ecE+0x31): undefined reference to `git_object_lookup'
          git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository14find_reference17ha43a986ea068df8dE+0xff): undefined reference to `git_reference_lookup'
          git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository16remote_anonymous17haf6fe7a4f5bfcb1bE+0xff): undefined reference to `git_remote_create_anonymous'
          git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository17extract_signature17h2795ab34941a47d1E+0x139): undefined reference to `git_commit_extract_signature'
          git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository4head17h1c542f01819f0d72E+0x1b): undefined reference to `git_repository_head'
          git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository5reset17h6abe1a01c1cfc146E+0x71): undefined reference to `git_checkout_init_options'
          git2.6b6f430f-cgu.0:(.text._ZN4git24repo10Repository5state17hf62e37c676ac3c3eE+0x9): undefined reference to `git_repository_state'
          git2.6b6f430f-cgu.0:(.text._ZN64_$LT$git2..repo..Repository$u20$as$u20$core..ops..drop..Drop$GT$4drop17h0a8455668fd1d4e6E+0x5): undefined reference to `git_repository_free'
          git2.6b6f430f-cgu.10:(.text._ZN4git24cred4Cred18ssh_key_from_agent17h800b86b16389fb5dE+0x116): undefined reference to `git_cred_ssh_key_from_agent'
          git2.6b6f430f-cgu.10:(.text._ZN4git24cred4Cred18userpass_plaintext17h9386debad10a98c0E+0x20a): undefined reference to `git_cred_userpass_plaintext_new'
          git2.6b6f430f-cgu.10:(.text._ZN4git24cred4Cred7default17h24a1eff563ec9a44E+0x2f): undefined reference to `git_cred_default_new'
          git2.6b6f430f-cgu.10:(.text._ZN4git24cred4Cred8username17h4abdb21f09172489E+0x116): undefined reference to `git_cred_username_new'
          git2.6b6f430f-cgu.11:(.text._ZN62_$LT$git2..remote..Remote$u20$as$u20$core..ops..drop..Drop$GT$4drop17hfe3124b9bae9fee9E+0x5): undefined reference to `git_remote_free'
          git2.6b6f430f-cgu.11:(.text._ZN66_$LT$git2..remote..FetchOptions$u20$as$u20$git2..util..Binding$GT$3raw17ha611b10fca82fb9cE+0x1d6): undefined reference to `git_remote_init_callbacks'
          git2.6b6f430f-cgu.13:(.text._ZN4git25error5Error10last_error17h717827c4173b1860E+0x2d): undefined reference to `git_error_last'
          git2.6b6f430f-cgu.15:(.text._ZN4git26branch6Branch6rename17h83e250e0791e9a0bE+0x107): undefined reference to `git_branch_move'
          git2.6b6f430f-cgu.15:(.text._ZN56_$LT$git2..buf..Buf$u20$as$u20$core..ops..drop..Drop$GT$4drop17hf003edd773228abfE+0x2): undefined reference to `git_buf_dispose'
          git2.6b6f430f-cgu.2:(.text._ZN4core3ptr35drop_in_place$LT$git2..buf..Buf$GT$17h909e23e887e5c41bE+0x2): undefined reference to `git_buf_dispose'
          git2.6b6f430f-cgu.2:(.text._ZN4git26config6Config10get_string17h8767506301d4f5f0E+0x134): undefined reference to `git_config_get_string_buf'
          git2.6b6f430f-cgu.2:(.text._ZN4git26config6Config3new17h4fdaace7d9e1ff6aE+0x2f): undefined reference to `git_config_new'
          git2.6b6f430f-cgu.2:(.text._ZN4git26config6Config8get_bool17h26438911c891e607E+0xfb): undefined reference to `git_config_get_bool'
          git2.6b6f430f-cgu.2:(.text._ZN62_$LT$git2..config..Config$u20$as$u20$core..ops..drop..Drop$GT$4drop17h3536ca7d1fd422dbE+0x5): undefined reference to `git_config_free'
          git2.6b6f430f-cgu.3:(.text._ZN4core3ptr43drop_in_place$LT$git2..repo..Repository$GT$17h60534f1460e392acE+0x5): undefined reference to `git_repository_free'
          git2.6b6f430f-cgu.3:(.text._ZN4git25build11RepoBuilder5clone17hdbd74a547b9ce4e8E+0x47): undefined reference to `git_clone_init_options'
          git2.6b6f430f-cgu.3:(.text._ZN4git29reference9Reference10set_target17hc965604d6a2d44ebE+0x107): undefined reference to `git_reference_set_target'
          git2.6b6f430f-cgu.3:(.text._ZN4git29reference9Reference6target17h2dd6adda74a613a4E+0x9): undefined reference to `git_reference_target'
          git2.6b6f430f-cgu.3:(.text._ZN68_$LT$git2..reference..Reference$u20$as$u20$core..ops..drop..Drop$GT$4drop17he9970dbb621efaa9E+0x5): undefined reference to `git_reference_free'
          git2.6b6f430f-cgu.3:(.text._ZN68_$LT$git2..signature..Signature$u20$as$u20$core..ops..drop..Drop$GT$4drop17h7f1644145f807ab7E+0xb): undefined reference to `git_signature_free'
          git2.6b6f430f-cgu.4:(.text._ZN4git26object6Object9as_commit17hb6306b218bf95f45E+0x9): undefined reference to `git_object_type'
          git2.6b6f430f-cgu.4:(.text._ZN62_$LT$git2..object..Object$u20$as$u20$core..ops..drop..Drop$GT$4drop17h5b91cb175d19d3bdE+0x5): undefined reference to `git_object_free'
          git2.6b6f430f-cgu.5:(.text._ZN4git23oid3Oid8from_str17h3e5f6fe7d29f63baE+0x46): undefined reference to `git_oid_fromstrn'
          git2.6b6f430f-cgu.5:(.text._ZN4git26commit6Commit4time17hfaea7bd9e1eceea0E+0x10): undefined reference to `git_commit_time'
          git2.6b6f430f-cgu.5:(.text._ZN4git26commit6Commit6author17h1e8ad3a121329ad8E+0x6): undefined reference to `git_commit_author'
          git2.6b6f430f-cgu.5:(.text._ZN4git26commit6Commit7summary17haac346e756c856b3E+0xa): undefined reference to `git_commit_summary'
          git2.6b6f430f-cgu.5:(.text._ZN53_$LT$git2..oid..Oid$u20$as$u20$core..fmt..Display$GT$3fmt17h8aeadd58710b0a59E+0x26): undefined reference to `git_oid_tostr'
          git2.6b6f430f-cgu.6:(.text._ZN3std9panicking3try17hd44308407b829070E+0x208): undefined reference to `git_error_set_str'
          git2.6b6f430f-cgu.7:(.text._ZN79_$LT$git2..remote_callbacks..RemoteCallbacks$u20$as$u20$git2..util..Binding$GT$3raw17h1e06167227edfa27E+0x3a): undefined reference to `git_remote_init_callbacks'
          libgit2_sys.05db8377-cgu.2:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h2398e3859ae9ba1fE.llvm.413923333386852304+0x21): undefined reference to `git_libgit2_init'
          rustsec.415855d9-cgu.12:(.text._ZN4git24repo10Repository4open17h18a48db53d76a2d6E+0x7a): undefined reference to `git_repository_open'
          rustsec.415855d9-cgu.4:(.text._ZN4git26remote6Remote5fetch17h9654c1f703375bbfE+0x1ae): undefined reference to `git_remote_fetch'
error: linking with `x86_64-pc-linux-gnu-gcc` failed: exit status: 1
Comment 3 Larry the Git Cow gentoo-dev 2022-11-08 19:49:49 UTC
The bug has been closed via the following commit(s):

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

commit f4607505c6a057dcc1b308de540f5895d91387b1
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2022-11-08 19:49:03 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2022-11-08 19:49:03 +0000

    dev-util/cargo-ebuild: filter out -flto
    
    Closes: https://bugs.gentoo.org/858332
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-util/cargo-ebuild/cargo-ebuild-0.5.2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)