Skip to content

Build failure with GCC 14 on Linux due to "-Werror" #302

@manphiz

Description

@manphiz

When trying to build the current HEAD (9fd0577) on Debian Linux with GCC 14.2.0, it fails to build with the following errors due to -Werror:

ss.c: In function ‘StackHot’:
ss.c:38:13: error: storing the address of local variable ‘stackOut’ in ‘*stackOut’ [-Werror=dangling-pointer=]
   38 |   *stackOut = &stackOut;
      |   ~~~~~~~~~~^~~~~~~~~~~
ss.c:36:22: note: ‘stackOut’ declared here
   36 | void StackHot(void **stackOut)
      |               ~~~~~~~^~~~~~~~
ss.c:36:22: note: ‘stackOut’ declared here
cc1: all warnings being treated as errors
gmake[4]: *** [comm.gmk:628: lii6gc/cool/ss.o] Error 1

Removing -Werror from configure.ac and code/lii6gc.gmk will let it build fine.

The full build log is attached.

mps-kit_1.118.0+git20241127.9fd0577-1_amd64-2025-02-10T10:25:49Z.build.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions