Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927231 - net-libs/rustls-ffi-0.10.0-r1 fails to compile: cpu.rs:320:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h5ffec3e0472630aaE+0xa3): undefined reference to GFp_ia32cap_P
Summary: net-libs/rustls-ffi-0.10.0-r1 fails to compile: cpu.rs:320:(.text._ZN4ring4ae...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-03-18 06:21 UTC by Agostino Sarubbo
Modified: 2024-03-28 00:45 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,99.43 KB, text/plain)
2024-03-18 06:21 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-03-18 06:21:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/rustls-ffi-0.10.0-r1 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-18 06:21:35 UTC
Created attachment 887868 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-18 06:21:36 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/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/rustls-ffi-0.10.0-r1/work/cargo_home/gentoo/ring-0.16.20/src/cpu.rs:320:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h5f2f59bdea259c39E+0xd0): undefined reference to `GFp_ia32cap_P'
          /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/rustls-ffi-0.10.0-r1/work/cargo_home/gentoo/ring-0.16.20/src/cpu.rs:320:(.text._ZN4ring4aead3aes21detect_implementation17h478eee23abc27f6aE+0x9a): undefined reference to `GFp_ia32cap_P'
          /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/rustls-ffi-0.10.0-r1/work/cargo_home/gentoo/ring-0.16.20/src/cpu.rs:320:(.text._ZN4ring4aead3gcm21detect_implementation17hc45b1737ab1f2822E+0x32): undefined reference to `GFp_ia32cap_P'
          /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/rustls-ffi-0.10.0-r1/work/rustls-ffi-0.10.0-abi_x86_64.amd64/target/x86_64-unknown-linux-gnu/debug/deps/libring-36b2dd656fd876b0.rlib(aesni-x86_64-elf.o): relocation R_X86_64_PC32 against undefined hidden symbol `GFp_ia32cap_P' can not be used when making a shared object
          /var/tmp/portage/net-libs/rustls-ffi-0.10.0-r1/work/cargo_home/gentoo/ring-0.16.20/src/cpu.rs:320:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h5ffec3e0472630aaE+0xa3): undefined reference to `GFp_ia32cap_P'
          /var/tmp/portage/net-libs/rustls-ffi-0.10.0-r1/work/cargo_home/gentoo/ring-0.16.20/src/cpu.rs:320:(.text._ZN4ring4aead3aes21detect_implementation17h478eee23abc27f6aE+0x33): undefined reference to `GFp_ia32cap_P'
Error: CliError { error: Some(1 job failed), exit_code: 101 }
error: linking with `cc` failed: exit status: 1
Comment 3 Ionen Wolkens gentoo-dev 2024-03-18 06:33:05 UTC
(filter-lto never happens when cargo_src_compile isn't used, so it's probably that)
Comment 4 Larry the Git Cow gentoo-dev 2024-03-28 00:45:01 UTC
The bug has been closed via the following commit(s):

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

commit a52ffb23da7bad04e820362f34e61874f723f656
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-28 00:44:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-28 00:44:24 +0000

    net-libs/rustls-ffi: backport filter-lto
    
    Closes: https://bugs.gentoo.org/927231
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/rustls-ffi/rustls-ffi-0.10.0-r1.ebuild | 11 +++++++++--
 net-libs/rustls-ffi/rustls-ffi-0.9.1-r1.ebuild  | 11 +++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 0e255819bfb945dff4f65926e3f841e432f30c98
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-28 00:42:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-28 00:44:23 +0000

    net-libs/rustls-ffi: add 0.12.1
    
    Add filter-lto and fix .pc file for prefix hopefully per Ionen's suggestion
    on IRC.
    
    Bug: https://bugs.gentoo.org/924421
    Bug: https://bugs.gentoo.org/927231
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/rustls-ffi/Manifest                 |  31 ++++++++
 net-libs/rustls-ffi/rustls-ffi-0.12.1.ebuild | 113 +++++++++++++++++++++++++++
 2 files changed, 144 insertions(+)