Skip to content

Will not compile with GCC 15 - eval.c #1

Description

@mattmcadoo

Using Gentoo and it just added GCC 15 to the tree. Going through rebuilding things with it and libmcpp failed. Found your repo and am wanting to use it since the other one seems to be long dead. I'm getting the same error when compiling your repo as I do with the original one on SourceForge (since Gentoo's version of the package is using that one).

eval.c: In function 'eval_eval':
eval.c:1284:22: error: expected ',' or ';' before 'LL_FORM'
 1284 | "Negative value \"%" LL_FORM "d\" is converted to positive \"%" /* _W1_ _W8_*/
      |                      ^~~~~~~
eval.c:1284:19: warning: spurious trailing '%' in format [-Wformat=]
 1284 | "Negative value \"%" LL_FORM "d\" is converted to positive \"%" /* _W1_ _W8_*/
      |                   ^
eval.c: In function 'dump_val':
eval.c:1637:51: error: expected ',' or ';' before 'LL_FORM'
 1637 |                 = "%s(%ssigned long long) 0x%016" LL_FORM "x";
      |                                                   ^~~~~~~
make[2]: *** [Makefile:580: eval.lo] Error 1

This same bug is also noted in this Gentoo bug report: https://bugs.gentoo.org/944370

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions