Bug 2133428 - Error compiling code with libunwind-devel on aarch64: error: expected identifier before numeric constant
Summary: Error compiling code with libunwind-devel on aarch64: error: expected identif...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libunwind
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-10 11:42 UTC by Jaroslav Škarvada
Modified: 2022-10-10 11:47 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-10-10 11:47:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Škarvada 2022-10-10 11:42:43 UTC
Description of problem:
Compilation fails on aarch64, reproducer with e.g. roc-toolkit.

Version-Release number of selected component (if applicable):
libunwind-devel-1.6.2-5.fc38

How reproducible:
Always

Steps to Reproduce:
1. fedpkg co roc-toolkit
2. drop excludearch for aarch64
3. fedpkg scratch-build --srpm --arches aarch64

Actual results:
In file included from /usr/include/libunwind.h:5,
                 from src/modules/roc_core/target_libunwind/roc_core/backtrace.cpp:10:
/usr/include/libunwind-aarch64.h:198:17: error: expected identifier before numeric constant
  198 |         alignas(16) uint8_t __reserved[(66 * 8)];
      |                 ^~
/usr/include/libunwind-aarch64.h:198:17: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/libunwind-aarch64.h:198:19: error: expected ‘;’ at end of member declaration
  198 |         alignas(16) uint8_t __reserved[(66 * 8)];
      |                   ^
      |                    ;


Expected results:
No error

Additional info:
It's probably related to this upstream commit:
https://github.com/libunwind/libunwind/pull/186/commits/e72fe5376e7084017d8f56ecdfea3d4766e5e3fb

Comment 1 Jaroslav Škarvada 2022-10-10 11:43:08 UTC
Full build log:
https://kojipkgs.fedoraproject.org//work/tasks/5793/92875793/build.log

Comment 2 Jaroslav Škarvada 2022-10-10 11:47:18 UTC
Hmm, it's using -std=c++98.

Sorry for noise.


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