Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900761 - sys-fs/btrfs-progs-6.2.1: Fails to compile with Clang on ARM64
Summary: sys-fs/btrfs-progs-6.2.1: Fails to compile with Clang on ARM64
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2023-03-11 04:45 UTC by Andy
Modified: 2023-12-15 14:11 UTC (History)
2 users (show)

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


Attachments
Build log for btrfs-progs-6.2.1 (build.log,169.65 KB, text/plain)
2023-03-11 04:45 UTC, Andy
Details
Emerge --info (emerge.info,6.03 KB, text/plain)
2023-03-11 04:46 UTC, Andy
Details
Build-log for btrfs-progs-6.1.3 (build.log,253.05 KB, text/plain)
2023-03-11 04:47 UTC, Andy
Details
Build.log for btrfs-progs-6.3.2 (build.log,191.37 KB, text/plain)
2023-07-13 15:30 UTC, Andy
Details
emerge --info (emerge.info,6.01 KB, text/plain)
2023-07-13 15:30 UTC, Andy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.