Skip to content

Fails to build on Arch Linux without -Wno-discarded-qualifiers #2995

@5long

Description

@5long

Problem:

Fail to build on Arch Linux without -Wno-discarded-qualifiers.

With the extra cflag above it can build successfully. But I'm not sure if I should suppress the warning blindly.

A rough Googling shows that -Wno-discarded-qualifiers was introduced in GCC 5 which is released roughly 10 years ago. I believe that ruled out Arch Linux being too bleeding edge... Or maybe it is?

Relevant details

AWS-LC commit: 728811e tagged v1.66.2

System information:

  • CPU architecture: x86-64
  • CPU name: AMD Ryzen 7 5800X
  • OS: Arch Linux
  • C Compiler: gcc 15.2.1 but I believe Arch Linux ships commit=0b99615a8aef011cff76c6caa8c09434f46598b3, not a tagged release. See gcc package in Arch

Build log:
See the gist: https://gist.github.com/5long/be83f0b1ac35b88129ca2dd3228c0c1a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions