...
gcc -O2 -g3 -pipe -fPIE -fstack-protector-all -fstack-clash-protection -fcf-protection=full -Wall -Wextra -Wsign-compare -Wno-unused-result -Wno-unused-function -Wno-missing-field-initializers -Wno-analyzer-malloc-leak -Werror -Wno-error=cpp -Wno-free-nonheap-object -std=gnu11 -fshort-wchar -fPIC -fno-strict-aliasing -D_GNU_SOURCE -DCONFIG_x86_64 -I/root/pesign/include '-DRUNDIR="/run/"' -Wmaybe-uninitialized -grecord-gcc-switches -fplugin=annobin -fmessage-length=0 -fdiagnostics-color=always -fdiagnostics-format=text -fdiagnostics-show-cwe -fanalyzer -I/usr/include/efivar -I/usr/include/nss3 -I/usr/include/nspr4 -D_FORTIFY_SOURCE=2 -c -o cms_common.o cms_common.c
In file included from util.h:22,
from pesign.h:18,
from cms_common.c:21:
cms_common.c: In function ‘cms_context_fini’:
compiler.h:77:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘-’ token
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^
compiler.h:59:39: note: in definition of macro ‘__compiletime_assert’
59 | extern void prefix ## suffix(void) __compiletime_error(msg); \
| ^~~~~~
compiler.h:77:9: note: in expansion of macro ‘_compiletime_assert’
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~
compiler.h:86:37: note: in expansion of macro ‘compiletime_assert’
86 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
list.h:30:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
30 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
list.h:458:9: note: in expansion of macro ‘container_of’
458 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
cms_common.c:200:37: note: in expansion of macro ‘list_entry’
200 | pk12_file_t *file = list_entry(pos, pk12_file_t, list);
| ^~~~~~~~~~
compiler.h:59:46: error: expected expression before ‘void’
59 | extern void prefix ## suffix(void) __compiletime_error(msg); \
| ^~~~
compiler.h:65:9: note: in expansion of macro ‘__compiletime_assert’
65 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
compiler.h:77:9: note: in expansion of macro ‘_compiletime_assert’
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~
compiler.h:86:37: note: in expansion of macro ‘compiletime_assert’
86 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
list.h:30:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
30 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
list.h:458:9: note: in expansion of macro ‘container_of’
458 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
cms_common.c:200:37: note: in expansion of macro ‘list_entry’
200 | pk12_file_t *file = list_entry(pos, pk12_file_t, list);
| ^~~~~~~~~~
compiler.h:77:79: error: called object is not a function or function pointer
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^
compiler.h:59:39: note: in definition of macro ‘__compiletime_assert’
59 | extern void prefix ## suffix(void) __compiletime_error(msg); \
| ^~~~~~
compiler.h:77:9: note: in expansion of macro ‘_compiletime_assert’
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~
compiler.h:86:37: note: in expansion of macro ‘compiletime_assert’
86 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
list.h:30:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
30 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
list.h:458:9: note: in expansion of macro ‘container_of’
458 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
cms_common.c:200:37: note: in expansion of macro ‘list_entry’
200 | pk12_file_t *file = list_entry(pos, pk12_file_t, list);
| ^~~~~~~~~~
compiler.h:77:45: error: ‘__compiletime_assert_200’ undeclared (first use in this function); did you mean ‘_compiletime_assert’?
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~~~
compiler.h:61:25: note: in definition of macro ‘__compiletime_assert’
61 | prefix ## suffix(); \
| ^~~~~~
compiler.h:77:9: note: in expansion of macro ‘_compiletime_assert’
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~
compiler.h:86:37: note: in expansion of macro ‘compiletime_assert’
86 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
list.h:30:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
30 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
list.h:458:9: note: in expansion of macro ‘container_of’
458 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
cms_common.c:200:37: note: in expansion of macro ‘list_entry’
200 | pk12_file_t *file = list_entry(pos, pk12_file_t, list);
| ^~~~~~~~~~
compiler.h:77:45: note: each undeclared identifier is reported only once for each function it appears in
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~~~
compiler.h:61:25: note: in definition of macro ‘__compiletime_assert’
61 | prefix ## suffix(); \
| ^~~~~~
compiler.h:77:9: note: in expansion of macro ‘_compiletime_assert’
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~
compiler.h:86:37: note: in expansion of macro ‘compiletime_assert’
86 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
list.h:30:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
30 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
list.h:458:9: note: in expansion of macro ‘container_of’
458 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
cms_common.c:200:37: note: in expansion of macro ‘list_entry’
200 | pk12_file_t *file = list_entry(pos, pk12_file_t, list);
| ^~~~~~~~~~
compiler.h:77:79: error: called object is not a function or function pointer
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^
compiler.h:61:35: note: in definition of macro ‘__compiletime_assert’
61 | prefix ## suffix(); \
| ^~~~~~
compiler.h:77:9: note: in expansion of macro ‘_compiletime_assert’
77 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__ - 1)
| ^~~~~~~~~~~~~~~~~~~
compiler.h:86:37: note: in expansion of macro ‘compiletime_assert’
86 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
list.h:30:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
30 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
list.h:458:9: note: in expansion of macro ‘container_of’
458 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
cms_common.c:200:37: note: in expansion of macro ‘list_entry’
200 | pk12_file_t *file = list_entry(pos, pk12_file_t, list);
| ^~~~~~~~~~
make[1]: *** [/root/pesign/Make.rules:34: cms_common.o] Error 1
make[1]: Leaving directory '/root/pesign/src'
make: *** [Makefile:29: all] Error 2
[root@rawhide-efi pesign]# gcc --version
gcc (GCC) 12.0.1 20220118 (Red Hat 12.0.1-0)
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@rawhide-efi pesign]#