Compile error on ARMv7 platform #568

Open
opened 2026-01-29 20:45:55 +00:00 by claunia · 0 comments
Owner

Originally created by @alexcherut on GitHub (Jan 26, 2026).

ghoscript builds all the sources (including brotli) using -Werror=declaration-after-statement which causes build failure of brotli/c/dec/decode.c when targeting ARMv7 platform.

That's because PreloadSymbol() starts with a statement followed by BROTLI_HC_MARK_TABLE_FOR_FAST_LOAD() macro which on ARMv7 expands to variable declaration.

See https://bugs.ghostscript.com/show_bug.cgi?id=708831 for details and a proposed patch.

Originally created by @alexcherut on GitHub (Jan 26, 2026). ghoscript builds all the sources (including brotli) using -Werror=declaration-after-statement which causes build failure of brotli/c/dec/decode.c when targeting ARMv7 platform. That's because PreloadSymbol() starts with a statement followed by BROTLI_HC_MARK_TABLE_FOR_FAST_LOAD() macro which on ARMv7 expands to variable declaration. See https://bugs.ghostscript.com/show_bug.cgi?id=708831 for details and a proposed patch.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#568