Annoying C++14/C++17 messages when building for Linux aarch64

Discussions about the development and maturation of the platform code (UXP).
Warning: may contain highly-technical topics.

Moderators: trava90, athenian200

User avatar
Basilisk-Dev
Lunatic
Lunatic
Posts: 492
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Annoying C++14/C++17 messages when building for Linux aarch64

Unread post by Basilisk-Dev » 2025-01-02, 16:04

When building on Linux using G++11 on an RHEL8-based distribution (verified on RHEL8 and Oracle Linux 8), I encounter messages like the following for basically every single C++ file in the UXP platform:

Code: Select all

/share/obj-aarch64-unknown-linux-gnu/dist/include/Units.h:525:21: note: parameter passing for argument of type 'mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel>' when C++17 is enabled changed to match C++14 in GCC 10.1
These messages only appear when targeting an aarch64 Linux build. However, when I use the same distribution and G++ versions to build for x86_64, the messages do not occur.

The build is successful so it isn't a critical issue, but the messages are annoying and could potentially make it difficult to diagnose an aarch64-specific issue in the future.

Any insights into why this might be happening? Any idea on how we can silence these messages?
Basilisk Project Owner

viewtopic.php?f=61&p=230756