Bug 2260171 - __arm_streaming attribute toeknization in clang headers breaks with gcc-14
Summary: __arm_streaming attribute toeknization in clang headers breaks with gcc-14
Keywords:
Status: CLOSED DUPLICATE of bug 2259254
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: rawhide
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL: https://download.copr.fedorainfraclou...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-24 19:39 UTC by Janne Grunau
Modified: 2024-01-24 20:44 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-01-24 19:54:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build command and error output (20.20 KB, text/plain)
2024-01-24 19:40 UTC, Janne Grunau
no flags Details

Description Janne Grunau 2024-01-24 19:39:35 UTC
gcc 14 added __arm_streaming as a macro expanding to [[arm::streaming]]. This breaks clang's tokenization of the attribute in clang/Basic/TokenKinds.h and other clang headers.

Reported as llvm bug since llvm solved this issue in https://github.com/llvm/llvm-project/pull/78704

Reproducible: Always

Steps to Reproduce:
1. Build https://pagure.io/fedora-asahi/mesa for rawhide/aarch64
Actual Results:  
build fails with
> /usr/include/clang/Basic/AttrTokenKinds.inc:9:1: error: pasting "kw_" and "[" does not give a valid preprocessing token
>     9 | KEYWORD_ATTRIBUTE(__arm_streaming)

Expected Results:  
Build succeeds

Copr build in https://copr.fedorainfracloud.org/coprs/ngompa/fedora-asahi-dev/build/6944195/

the rawhide aarch64 build error is unrelated to the merge request. A rebuild without the changes from the MR is expected to fail in the same way.

Comment 1 Janne Grunau 2024-01-24 19:40:32 UTC
Created attachment 2010321 [details]
build command and error output

Comment 2 Tulio Magno Quites Machado Filho 2024-01-24 19:54:22 UTC

*** This bug has been marked as a duplicate of bug 2259254 ***

Comment 3 Janne Grunau 2024-01-24 20:14:57 UTC
my bad, I looked at https://packages.fedoraproject.org/pkgs/llvm/clang/ which links to the llvm rpm repo and uses the llvm component in bugzilla so I missed the clang bug and fix.

Comment 4 Tulio Magno Quites Machado Filho 2024-01-24 20:44:35 UTC
Janne, no problem.
Please let us know if the fix doesn't work.


Note You need to log in before you can comment on or make changes to this bug.