Bug 2259254 - clang on aarch64 incompatible with gcc 14
Summary: clang on aarch64 incompatible with gcc 14
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: rawhide
Hardware: aarch64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Nikita Popov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2260171 (view as bug list)
Depends On:
Blocks: 2259072
TreeView+ depends on / blocked
 
Reported: 2024-01-19 18:33 UTC by Mattias Ellert
Modified: 2024-01-24 19:54 UTC (History)
10 users (show)

Fixed In Version: clang-17.0.6-4.fc40
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-22 16:33:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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. ***


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