Let me see if I can be a bit more clear with the problem that I am
seeing on three separate systems. It does seem to be an issue in
a macro :
1) Debian Linux on IBM Power ppc64 big-endian :
enceladus$ uname -a
Linux enceladus 5.13.4-genunix #1 SMP Tue Jul 20 12:42:08 EDT 2021 ppc64 GNU/Linux
enceladus$ gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 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.
enceladus$
enceladus$
enceladus$ ls Parser/pegen/pegen.c Parser/pegen/pegen.h
Parser/pegen/pegen.c Parser/pegen/pegen.h
enceladus$
enceladus$ /usr/bin/gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG \
> -fwrapv -Wall -std=iso9899:1999 -pedantic -g -O0 -fno-builtin -m64 \
> -mno-quad-memory-atomic -mfull-toc -mno-multiple -mupdate -mbig \
> -mregnames -fno-unsafe-math-optimizations -pedantic-errors \
> -Wextra -Wno-unused-result -Wno-unused-parameter \
> -Wno-missing-field-initializers \
> -Werror=implicit-function-declaration \
> -fvisibility=hidden \
> -I./Include/internal -I. -I./Include \
> -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE \
> -DPy_BUILD_CORE -o Parser/pegen/pegen.o Parser/pegen/pegen.c
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h: In function ‘_RAISE_SYNTAX_ERROR_INVALID_TARGET’:
Parser/pegen/pegen.h:297:47: error: ISO C99 requires at least one argument for the "..." in a variadic macro
297 | return RAISE_SYNTAX_ERROR("invalid syntax");
| ^
Parser/pegen/pegen.c: In function ‘_PyPegen_check_barry_as_flufl’:
Parser/pegen/pegen.c:71:74: error: ISO C99 requires at least one argument for the "..." in a variadic macro
71 | RAISE_SYNTAX_ERROR("with Barry as BDFL, use '<>' instead of '!='");
| ^
Parser/pegen/pegen.c: In function ‘tokenizer_error’:
Parser/pegen/pegen.c:323:81: error: ISO C99 requires at least one argument for the "..." in a variadic macro
323 | RAISE_SYNTAX_ERROR("EOF while scanning triple-quoted string literal");
| ^
Parser/pegen/pegen.c:326:67: error: ISO C99 requires at least one argument for the "..." in a variadic macro
326 | RAISE_SYNTAX_ERROR("EOL while scanning string literal");
| ^
Parser/pegen/pegen.c:329:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
329 | RAISE_SYNTAX_ERROR("unexpected EOF while parsing");
| ^
Parser/pegen/pegen.c:332:90: error: ISO C99 requires at least one argument for the "..." in a variadic macro
332 | RAISE_INDENTATION_ERROR("unindent does not match any outer indentation level");
| ^
Parser/pegen/pegen.c: In function ‘_PyPegen_number_token’:
Parser/pegen/pegen.c:953:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
953 | "in Python 3.6 and greater");
| ^
Parser/pegen/pegen.c: In function ‘_PyPegen_run_parser’:
Parser/pegen/pegen.c:1132:73: error: ISO C99 requires at least one argument for the "..." in a variadic macro
1132 | RAISE_SYNTAX_ERROR("error at start before reading any input");
| ^
Parser/pegen/pegen.c:1135:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
1135 | RAISE_SYNTAX_ERROR("unexpected EOF while parsing");
| ^
Parser/pegen/pegen.c:1139:60: error: ISO C99 requires at least one argument for the "..." in a variadic macro
1139 | RAISE_INDENTATION_ERROR("unexpected indent");
| ^
Parser/pegen/pegen.c:1142:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
1142 | RAISE_INDENTATION_ERROR("unexpected unindent");
| ^
Parser/pegen/pegen.c:1145:52: error: ISO C99 requires at least one argument for the "..." in a variadic macro
1145 | RAISE_SYNTAX_ERROR("invalid syntax");
| ^
Parser/pegen/pegen.c:1153:97: error: ISO C99 requires at least one argument for the "..." in a variadic macro
1153 | return RAISE_SYNTAX_ERROR("multiple statements found while compiling a single statement");
| ^
Parser/pegen/pegen.c: In function ‘_PyPegen_concatenate_strings’:
Parser/pegen/pegen.c:2053:72: error: ISO C99 requires at least one argument for the "..." in a variadic macro
2053 | RAISE_SYNTAX_ERROR("cannot mix bytes and nonbytes literals");
| ^
Parser/pegen/pegen.c: In function ‘_PyPegen_arguments_parsing_error’:
Parser/pegen/pegen.c:2212:34: error: ISO C99 requires at least one argument for the "..." in a variadic macro
2212 | return RAISE_SYNTAX_ERROR(msg);
| ^
Parser/pegen/pegen.c: In function ‘_PyPegen_nonparen_genexp_in_call’:
Parser/pegen/pegen.c:2233:5: error: ISO C99 requires at least one argument for the "..." in a variadic macro
2233 | );
| ^
enceladus$
2) On FreeBSD UNIX with AMD64 and LLVM/Clang :
europa$ uname -apKU
FreeBSD europa 14.0-CURRENT FreeBSD 14.0-CURRENT #3: Sun Jul 25 13:50:33 GMT 2021 root@europa:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 amd64 1400026 1400026
europa$
europa$ cc --version
FreeBSD clang version 12.0.1 (git@github.com:llvm/llvm-project.git llvmorg-12.0.1-0-gfed41342a82f)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
europa$
europa$ ls Parser/pegen/pegen.c Parser/pegen/pegen.h
Parser/pegen/pegen.c Parser/pegen/pegen.h
europa$
europa$ /usr/bin/cc -pthread -c -fno-strict-aliasing -Wsign-compare \
> -Wunreachable-code -DNDEBUG -g -fwrapv -Wall -std=iso9899:1999 \
> -pedantic -pedantic-errors -Weverything -Wno-reserved-id-macro \
> -Wno-missing-prototypes -m64 -O0 -fno-fast-math -fno-builtin \
> -Werror=implicit-function-declaration -fvisibility=hidden \
> -I./Include/internal -I. -I./Include \
> -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE \
> -DPy_BUILD_CORE -o Parser/pegen/pegen.o Parser/pegen/pegen.c
In file included from Parser/pegen/pegen.c:1:
In file included from ./Include/Python.h:94:
In file included from ./Include/pytime.h:6:
In file included from ./Include/object.h:615:
./Include/cpython/object.h:272:16: warning: padding struct 'struct _typeobject' with 4 bytes to align
'tp_finalize' [-Wpadded]
destructor tp_finalize;
^
In file included from Parser/pegen/pegen.c:1:
In file included from ./Include/Python.h:106:
In file included from ./Include/unicodeobject.h:1026:
./Include/cpython/unicodeobject.h:218:14: warning: padding struct 'PyASCIIObject' with 4 bytes to align 'wstr'
[-Wpadded]
wchar_t *wstr; /* wchar_t representation (null-terminated) */
^
In file included from Parser/pegen/pegen.c:5:
In file included from Parser/pegen/pegen.h:7:
./Include/Python-ast.h:239:23: warning: padding struct 'struct _expr::(anonymous at
./Include/Python-ast.h:237:9)' with 4 bytes to align 'values' [-Wpadded]
asdl_seq *values;
^
./Include/Python-ast.h:452:20: warning: padding struct 'struct _type_ignore::(anonymous at
./Include/Python-ast.h:450:9)' with 4 bytes to align 'tag' [-Wpadded]
string tag;
^
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h:157:86: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:160:89: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.c:12:45: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long') to
'Py_ssize_t' (aka 'long') [-Wsign-conversion]
PyObject *res = PyUnicode_DecodeUTF8(s, strlen(s), NULL);
~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
In file included from Parser/pegen/pegen.c:1:
In file included from ./Include/Python.h:105:
In file included from ./Include/bytesobject.h:75:
./Include/cpython/bytesobject.h:5:9: warning: padding size of 'PyBytesObject' with 7 bytes to alignment
boundary [-Wpadded]
typedef struct {
^
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.c:83:44: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long') to
'Py_ssize_t' (aka 'long') [-Wsign-conversion]
PyObject *id = PyUnicode_DecodeUTF8(n, strlen(n), NULL);
~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
In file included from Parser/pegen/pegen.c:1:
In file included from ./Include/Python.h:108:
./Include/longintrepr.h:85:8: warning: padding size of 'struct _longobject' with 4 bytes to alignment boundary
[-Wpadded]
struct _longobject {
^
Parser/pegen/pegen.c:163:13: warning: enumeration value 'Slice_kind' not explicitly handled in switch
[-Wswitch-enum]
switch (e->kind) {
^
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h:157:86: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:157:86: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
Parser/pegen/pegen.h:158:94: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_INDENTATION_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_IndentationError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.c:351:60: warning: implicit conversion changes signedness: 'unsigned long' to 'Py_ssize_t'
(aka 'long') [-Wsign-conversion]
col_offset = strlen(strtok(p->tok->buf, "\n")) - 1;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Parser/pegen/pegen.c:396:46: warning: implicit conversion changes signedness: 'unsigned long' to 'Py_ssize_t'
(aka 'long') [-Wsign-conversion]
Py_ssize_t len = strlen(fstring_msg) + strlen(errmsg);
~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Parser/pegen/pegen.c:398:48: warning: implicit conversion changes signedness: 'long' to 'size_t'
(aka 'unsigned long') [-Wsign-conversion]
char *new_errmsg = PyMem_RawMalloc(len + 1); // Lengths of both strings plus NULL character
~~~~~~~~~~~~~~~ ~~~~^~~
Parser/pegen/pegen.c:449:31: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual]
PyMem_RawFree((void *)errmsg);
^
Parser/pegen/pegen.c:457:31: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual]
PyMem_RawFree((void *)errmsg);
^
Parser/pegen/pegen.c:535:35: warning: implicit conversion changes signedness: 'int' to 'size_t'
(aka 'unsigned long') [-Wsign-conversion]
if (strncmp(k->str, name, name_len) == 0) {
~~~~~~~ ^~~~~~~~
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h:50:15: warning: padding struct 'struct growable_comment_array::(anonymous at
Parser/pegen/pegen.h:48:5)' with 4 bytes to align 'comment' [-Wpadded]
char *comment; // The " <tag>" in "# type: ignore <tag>"
^
Parser/pegen/pegen.c:588:38: warning: implicit conversion changes signedness: 'long' to 'size_t'
(aka 'unsigned long') [-Wsign-conversion]
char *tag = PyMem_Malloc(len + 1);
~~~~~~~~~~~~ ~~~~^~~
Parser/pegen/pegen.c:593:29: warning: implicit conversion changes signedness: 'Py_ssize_t' (aka 'long') to
'size_t' (aka 'unsigned long') [-Wsign-conversion]
strncpy(tag, start, len);
~~~~~~~ ^~~
Parser/pegen/pegen.c:618:55: warning: implicit conversion changes signedness: 'int' to 'unsigned long'
[-Wsign-conversion]
Token **new_tokens = PyMem_Realloc(p->tokens, newsize * sizeof(Token *));
^~~~~~~ ~
Parser/pegen/pegen.c:877:44: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
x = (long)PyOS_strtoul(s, (char **)&end, 0);
^
Parser/pegen/pegen.c:883:37: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
x = PyOS_strtol(s, (char **)&end, 0);
^
Parser/pegen/pegen.c:894:56: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
compl.imag = PyOS_string_to_double(s, (char **)&end, NULL);
^
Parser/pegen/pegen.c:895:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
if (compl.imag == -1.0 && PyErr_Occurred()) {
~~~~~~~~~~ ^ ~~~~
Parser/pegen/pegen.c:901:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
if (dx == -1.0 && PyErr_Occurred()) {
~~ ^ ~~~~
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:61:14: warning: padding struct 'Parser' with 4 bytes to align 'arena' [-Wpadded]
PyArena *arena;
^
Parser/pegen/pegen.h:67:15: warning: padding struct 'Parser' with 4 bytes to align 'normalize' [-Wpadded]
PyObject* normalize;
^
Parser/pegen/pegen.h:73:28: warning: padding struct 'Parser' with 4 bytes to align 'type_ignore_comments'
[-Wpadded]
growable_comment_array type_ignore_comments;
^
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
Parser/pegen/pegen.h:158:94: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_INDENTATION_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_IndentationError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:158:94: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
Parser/pegen/pegen.c:1382:61: warning: implicit conversion changes signedness: 'unsigned long' to 'Py_ssize_t'
(aka 'long') [-Wsign-conversion]
Py_ssize_t len = strlen(first_str) + strlen(second_str) + 1; // +1 for the dot
~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Parser/pegen/pegen.c:1496:40: warning: implicit conversion changes signedness: 'cmpop_ty' (aka 'enum _cmpop')
to 'int' [-Wsign-conversion]
asdl_seq_SET(new_seq, i, pair->cmpop);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
./Include/asdl.h:42:51: note: expanded from macro 'asdl_seq_SET'
#define asdl_seq_SET(S, I, V) (S)->elements[I] = (V)
~ ^
Parser/pegen/pegen.c:1581:13: warning: 21 enumeration values not explicitly handled in switch: 'BoolOp_kind',
'NamedExpr_kind', 'BinOp_kind'... [-Wswitch-enum]
switch (expr->kind) {
^
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
Parser/pegen/pegen.c:2115:46: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long')
to 'Py_ssize_t' (aka 'long') [-Wsign-conversion]
Py_ssize_t num = p->type_ignore_comments.num_items;
~~~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
Parser/pegen/pegen.c:2163:13: warning: 20 enumeration values not explicitly handled in switch: 'BoolOp_kind',
'NamedExpr_kind', 'BinOp_kind'... [-Wswitch-enum]
switch (e->kind) {
^
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h:157:84: error: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Werror,-Wgnu-zero-variadic-macro-arguments]
#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
32 warnings and 20 errors generated.
europa$
3) Solaris 10 UNIX with Oracle Studio 12.6 on Fujitsu SPARC64
beta $
beta $ uname -a
SunOS beta 5.10 Generic_150400-65 sun4u sparc SUNW,SPARC-Enterprise
beta $ cc -V
cc: Studio 12.6 Sun C 5.15 SunOS_sparc 2017/05/30
beta $ c99 -V
c99: Studio 12.6 Sun C 5.15 SunOS_sparc 2017/05/30
beta $ /opt/developerstudio12.6/bin/c99 -c -DNDEBUG -Xc -errtags=yes \
-errwarn=%none -m64 -xarch=sparc -xO0 -g -xs -errfmt=error \
-erroff=%none -errshort=full -xstrconst -xildoff -xmemalign=8s \
-xnolibmil -xcode=pic32 -xregs=no%appl -xlibmieee -mc \
-ftrap=%none -xbuiltin=%none -xunroll=1 -Qy -xdebugformat=dwarf \
-D_REENTRANT \
-I./Include/internal -I. -I./Include -I/opt/bw/include \
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO \
-D_FILE_OFFSET_BITS=64 \
-DPy_BUILD_CORE -o Parser/pegen/pegen.o Parser/pegen/pegen.c
"Parser/pegen/pegen.h", line 297: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.h", line 297: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 71: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 71: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 323: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 323: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 326: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 326: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 329: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 329: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 332: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 332: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 952: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 952: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 1132: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 1132: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 1135: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 1135: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 1139: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 1139: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 1142: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 1142: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 1145: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 1145: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 1153: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 1153: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 2053: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 2053: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 2212: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 2212: error: syntax error before or at: )
"Parser/pegen/pegen.c", line 2230: warning: argument mismatch (E_ARGUEMENT_MISMATCH)
"Parser/pegen/pegen.c", line 2230: error: syntax error before or at: )
c99: acomp failed for Parser/pegen/pegen.c
beta $
Also for the sake of some added flavour here we can look at Debian on
AMD64 with whatever tools we get in Debian stable. I ran a trivial
configure "./configure --without-pymalloc --prefix=/home/dclarke/local"
and see the same failure.
deimos$
deimos$ uname -a
Linux deimos 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux
deimos$ gcc --version
gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 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.
deimos$
Then during make :
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=iso9899:1999 -pedantic -pedantic-errors -m64 -g -O0 -fno-builtin -march=k8 -mtune=k8 -mieee-fp -fno-fast-math -std=iso9899:1999 -pedantic -pedantic-errors -m64 -g -O0 -fno-builtin -march=k8 -mtune=k8 -mieee-fp -fno-fast-math -std=iso9899:1999 -pedantic -pedantic-errors -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I. -I./Include -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -DPy_BUILD_CORE -o Parser/pegen/pegen.o Parser/pegen/pegen.c
In file included from Parser/pegen/pegen.c:5:
Parser/pegen/pegen.h: In function '_RAISE_SYNTAX_ERROR_INVALID_TARGET':
Parser/pegen/pegen.h:297:47: error: ISO C99 requires at least one argument for the "..." in a variadic macro
return RAISE_SYNTAX_ERROR("invalid syntax");
^
Parser/pegen/pegen.c: In function '_PyPegen_check_barry_as_flufl':
Parser/pegen/pegen.c:71:74: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("with Barry as BDFL, use '<>' instead of '!='");
^
Parser/pegen/pegen.c: In function 'tokenizer_error':
Parser/pegen/pegen.c:323:81: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("EOF while scanning triple-quoted string literal");
^
Parser/pegen/pegen.c:326:67: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("EOL while scanning string literal");
^
Parser/pegen/pegen.c:329:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("unexpected EOF while parsing");
^
Parser/pegen/pegen.c:332:90: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_INDENTATION_ERROR("unindent does not match any outer indentation level");
^
Parser/pegen/pegen.c: In function '_PyPegen_number_token':
Parser/pegen/pegen.c:953:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
"in Python 3.6 and greater");
^
Parser/pegen/pegen.c: In function '_PyPegen_run_parser':
Parser/pegen/pegen.c:1132:73: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("error at start before reading any input");
^
Parser/pegen/pegen.c:1135:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("unexpected EOF while parsing");
^
Parser/pegen/pegen.c:1139:60: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_INDENTATION_ERROR("unexpected indent");
^
Parser/pegen/pegen.c:1142:62: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_INDENTATION_ERROR("unexpected unindent");
^
Parser/pegen/pegen.c:1145:52: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("invalid syntax");
^
Parser/pegen/pegen.c:1153:97: error: ISO C99 requires at least one argument for the "..." in a variadic macro
return RAISE_SYNTAX_ERROR("multiple statements found while compiling a single statement");
^
Parser/pegen/pegen.c: In function '_PyPegen_concatenate_strings':
Parser/pegen/pegen.c:2053:72: error: ISO C99 requires at least one argument for the "..." in a variadic macro
RAISE_SYNTAX_ERROR("cannot mix bytes and nonbytes literals");
^
Parser/pegen/pegen.c: In function '_PyPegen_arguments_parsing_error':
Parser/pegen/pegen.c:2212:34: error: ISO C99 requires at least one argument for the "..." in a variadic macro
return RAISE_SYNTAX_ERROR(msg);
^
Parser/pegen/pegen.c: In function '_PyPegen_nonparen_genexp_in_call':
Parser/pegen/pegen.c:2233:5: error: ISO C99 requires at least one argument for the "..." in a variadic macro
);
^
make: *** [Makefile:1803: Parser/pegen/pegen.o] Error 1
deimos$
So I can not get 3.9.6 to compile on any of four systems. |