Skip to content

Fix build on ARM64#132

Open
HmnSn wants to merge 1 commit intointel:masterfrom
HmnSn:fix-build-on-arm64
Open

Fix build on ARM64#132
HmnSn wants to merge 1 commit intointel:masterfrom
HmnSn:fix-build-on-arm64

Conversation

@HmnSn
Copy link

@HmnSn HmnSn commented Apr 13, 2025

Build the library on ARM64 failed on
cc1plus: error:‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security]
Uncomment -Wall to fix it. (or add -Wformat is better? )

@prahaladhan12
Copy link
Contributor

Hi @HmnSn
Thanks for highlighting the issue.
To understand this issue better, could you please provide the following details as we are not able to reproduce this issue.

  1. What is the operating system on which it is built?
  2. Can you share the build commands and cmake flags.
  3. What is the build type (Release/Debug) and share the build logs as well if available.
  4. What is the GmmLib Version on which you experiencing this issue?

@HmnSn
Copy link
Author

HmnSn commented Mar 6, 2026

Hi @HmnSn Thanks for highlighting the issue. To understand this issue better, could you please provide the following details as we are not able to reproduce this issue.

  1. What is the operating system on which it is built?
  2. Can you share the build commands and cmake flags.
  3. What is the build type (Release/Debug) and share the build logs as well if available.
  4. What is the GmmLib Version on which you experiencing this issue?

Sorry for the late reply. The distribution I’m using is AOSC OS on aarch64 machine. I think the reason some distributions cannot reproduce the issue is that the GCC specs they ship add -Wformat and -Wformat-security by default, such as in Ubuntu.

On Ubuntu 24.04 aarch64

gcc -dumpspecs | grep format

%{!fno-asynchronous-unwind-tables:-fasynchronous-unwind-tables} %{!fno-stack-protector:%{!fstack-protector-explicit:%{!fstack-protector-all:%{!ffreestanding:%{!nostdlib:%{!fstack-protector:-fstack-protector-strong}}}}}} %{!Wformat:%{!Wformat=2:%{!Wformat=0:%{!Wall:-Wformat} %{!Wno-format-security:-Wformat-security}}}} %{!fno-stack-clash-protection:-fstack-clash-protection}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants