Bug 2259254

Summary: clang on aarch64 incompatible with gcc 14
Product: [Fedora] Fedora Reporter: Mattias Ellert <mattias.ellert>
Component: clangAssignee: Nikita Popov <npopov>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, janne-fdr, jchecahi, kkleine, npopov, serge.guelton, siddharth.kde, tbaeder, tstellar, tuliom
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: clang-17.0.6-4.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-22 16:33:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2259072    

Description Mattias Ellert 2024-01-19 18:33:21 UTC
The mass rebuild for castxml failed on aarch64. It builds OK on other architectures.

https://koji.fedoraproject.org/koji/buildinfo?buildID=2348812

The error is (see build.log for the aarch64 build for the above task)

In file included from /usr/include/clang/Basic/TokenKinds.h:27,
                 from /usr/include/clang/Basic/IdentifierTable.h:20,
                 from /usr/include/clang/AST/DeclarationName.h:18,
                 from /usr/include/clang/AST/DeclBase.h:18,
                 from /usr/include/clang/AST/Decl.h:19,
                 from /builddir/build/BUILD/CastXML-0.6.2/src/RunClang.cxx:31:
/usr/include/clang/Basic/AttrTokenKinds.inc:9:1: error: pasting "kw_" and "[" does not give a valid preprocessing token
    9 | KEYWORD_ATTRIBUTE(__arm_streaming)
      | ^~~~~~~~~~~~~~~~~
In file included from /usr/include/clang/Basic/TokenKinds.h:35:
/usr/include/clang/Basic/AttrTokenKinds.inc:9:1: error: pasting "kw_" and "[" does not give a valid preprocessing token
    9 | KEYWORD_ATTRIBUTE(__arm_streaming)
      | ^~~~~~~~~~~~~~~~~
In file included from /usr/include/clang/Basic/TokenKinds.h:43:
/usr/include/clang/Basic/AttrTokenKinds.inc:9:1: error: pasting "kw_" and "[" does not give a valid preprocessing token
    9 | KEYWORD_ATTRIBUTE(__arm_streaming)
      | ^~~~~~~~~~~~~~~~~
In file included from /usr/include/clang/Basic/TokenKinds.h:51:
/usr/include/clang/Basic/AttrTokenKinds.inc:9:1: error: pasting "kw_" and "[" does not give a valid preprocessing token
    9 | KEYWORD_ATTRIBUTE(__arm_streaming)
      | ^~~~~~~~~~~~~~~~~

This is related to upstream issue:

https://github.com/llvm/llvm-project/issues/78691

and the related PR:

https://github.com/llvm/llvm-project/pull/78704

Could you backport the fix to rawhide?

Reproducible: Always

Steps to Reproduce:
1. rebuild castxml package for Fedora rawhide aarch64

Actual Results:  
Faild build.

Expected Results:  
Successful build.

Comment 1 Nikita Popov 2024-01-22 08:26:07 UTC
Backport is already underway here: https://src.fedoraproject.org/rpms/clang/pull-request/224

Comment 2 Fedora Update System 2024-01-22 15:51:00 UTC
FEDORA-2024-55272da285 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-55272da285

Comment 3 Fedora Update System 2024-01-22 16:33:17 UTC
FEDORA-2024-55272da285 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Tulio Magno Quites Machado Filho 2024-01-24 19:54:22 UTC
*** Bug 2260171 has been marked as a duplicate of this bug. ***