Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 900761

Summary: sys-fs/btrfs-progs-6.2.1: Fails to compile with Clang on ARM64
Product: Gentoo Linux Reporter: Andy <gebauer.andy>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED OBSOLETE    
Severity: normal CC: arm64, jstein
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: Build log for btrfs-progs-6.2.1
Emerge --info
Build-log for btrfs-progs-6.1.3
Build.log for btrfs-progs-6.3.2
emerge --info

Description Andy 2023-03-11 04:45:27 UTC
Created attachment 857245 [details]
Build log for btrfs-progs-6.2.1

While compilation of btrfs-progs-6.2.1 on gcc-12.2.1 work without issues, compiling btrfs-progs via clang fails.
The main issues seems in the linking phase, that the lld tries to link x86 specific files related to sse2, avx2 and sse41, see attached build log.

Btrfs-progs-6.1.3 can be compiled using clang + ThinLTO in the same environment.
Thus I assume the change to be caused by some change in btrfs-progs.
Comparing the ebuilds, the only difference is the patch btrfs-progs-6.2.1-blake2-simd.patch
Comment 1 Andy 2023-03-11 04:46:34 UTC
Created attachment 857247 [details]
Emerge --info
Comment 2 Andy 2023-03-11 04:47:48 UTC
Created attachment 857249 [details]
Build-log for btrfs-progs-6.1.3

Issue does not exist with btrfs-progs-6.1.3
Comment 3 Andy 2023-03-26 15:01:46 UTC
Same issue is present with btrfs-progs-6.2.2
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-13 08:42:16 UTC
Huh, I somehow missed this until now. How about 6.3.2? Fresh log + emerge --info please if it fails.
Comment 5 Andy 2023-07-13 15:30:02 UTC
Created attachment 865455 [details]
Build.log for btrfs-progs-6.3.2

Still the same issue with 6.3.2
Comment 6 Andy 2023-07-13 15:30:24 UTC
Created attachment 865456 [details]
emerge --info
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-15 04:51:02 UTC
HUh, sorry, I completely forgot about this. It got fixed along the way though I'm pretty sure. Reopen if not.
Comment 8 Andy 2023-12-15 14:11:29 UTC
I can confirm, btrfs-progs-6.6.3 compiles fine via Clang.