This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients skip.montanaro
Date 2020-09-21.17:56:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600710972.69.0.778161141813.issue41826@roundup.psfhosted.org>
In-reply-to
Content
I don't see anything like this while building Python proper, but when test_peg_generator is run, it spews a few compiler warnings. Platform is Ubuntu 20.04. Seems low-ish priority, but I saw no mention of it in a quick bpo search, so thought I would toss it out there.

-------------------------------------------------
% ./python ./Tools/scripts/run_tests.py test_peg_generator
/home/skip/src/python/cpython/python -u -W default -bb -E -m test -r -w -j 0 -u all,-largefile,-audio,-gui test_peg_generator
Using random seed 1793668
0:00:00 load avg: 0.09 Run tests in parallel using 10 child processes
0:00:30 load avg: 0.45 running: test_peg_generator (30.0 sec)
0:00:54 load avg: 0.64 [1/1] test_peg_generator passed (54.8 sec)
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmp3fq3wryo/parse.c:2:
/tmp/tmp3fq3wryo/parse.c: In function ‘start_rule’:
/tmp/tmp3fq3wryo/parse.c:59:29: warning: passing argument 1 of ‘_Py_Module’ from incompatible pointer type [-Wincompatible-pointer-types]
   59 |             _res = Module ( a , NULL , p -> arena );
      |                             ^
      |                             |
      |                             asdl_seq * {aka struct <anonymous> *}
/home/skip/src/python/cpython/Include/Python-ast.h:541:39: note: in definition of macro ‘Module’
  541 | #define Module(a0, a1, a2) _Py_Module(a0, a1, a2)
      |                                       ^~
/home/skip/src/python/cpython/Include/Python-ast.h:542:35: note: expected ‘asdl_stmt_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  542 | mod_ty _Py_Module(asdl_stmt_seq * body, asdl_type_ignore_seq * type_ignores,
      |                   ~~~~~~~~~~~~~~~~^~~~
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmpybnujtsb/parse.c:2:
/tmp/tmpybnujtsb/parse.c: In function ‘start_rule’:
/tmp/tmpybnujtsb/parse.c:61:29: warning: passing argument 1 of ‘_Py_Module’ from incompatible pointer type [-Wincompatible-pointer-types]
   61 |             _res = Module ( a , NULL , p -> arena );
      |                             ^
      |                             |
      |                             asdl_seq * {aka struct <anonymous> *}
/home/skip/src/python/cpython/Include/Python-ast.h:541:39: note: in definition of macro ‘Module’
  541 | #define Module(a0, a1, a2) _Py_Module(a0, a1, a2)
      |                                       ^~
/home/skip/src/python/cpython/Include/Python-ast.h:542:35: note: expected ‘asdl_stmt_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  542 | mod_ty _Py_Module(asdl_stmt_seq * body, asdl_type_ignore_seq * type_ignores,
      |                   ~~~~~~~~~~~~~~~~^~~~
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmpgbehpd3_/parse.c:2:
/tmp/tmpgbehpd3_/parse.c: In function ‘start_rule’:
/tmp/tmpgbehpd3_/parse.c:77:29: warning: passing argument 1 of ‘_Py_Module’ from incompatible pointer type [-Wincompatible-pointer-types]
   77 |             _res = Module ( a , NULL , p -> arena );
      |                             ^
      |                             |
      |                             asdl_seq * {aka struct <anonymous> *}
/home/skip/src/python/cpython/Include/Python-ast.h:541:39: note: in definition of macro ‘Module’
  541 | #define Module(a0, a1, a2) _Py_Module(a0, a1, a2)
      |                                       ^~
/home/skip/src/python/cpython/Include/Python-ast.h:542:35: note: expected ‘asdl_stmt_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  542 | mod_ty _Py_Module(asdl_stmt_seq * body, asdl_type_ignore_seq * type_ignores,
      |                   ~~~~~~~~~~~~~~~~^~~~
/tmp/tmpgbehpd3_/parse.c: In function ‘import_from_rule’:
/tmp/tmpgbehpd3_/parse.c:148:58: warning: passing argument 2 of ‘_Py_ImportFrom’ from incompatible pointer type [-Wincompatible-pointer-types]
  148 |             _res = _Py_ImportFrom ( c -> v . Name . id , d , 0 , EXTRA );
      |                                                          ^
      |                                                          |
      |                                                          asdl_seq * {aka struct <anonymous> *}
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmpgbehpd3_/parse.c:2:
/home/skip/src/python/cpython/Include/Python-ast.h:625:60: note: expected ‘asdl_alias_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  625 | stmt_ty _Py_ImportFrom(identifier module, asdl_alias_seq * names, int level,
      |                                           ~~~~~~~~~~~~~~~~~^~~~~
/tmp/tmpgbehpd3_/parse.c:190:44: warning: passing argument 2 of ‘_Py_ImportFrom’ from incompatible pointer type [-Wincompatible-pointer-types]
  190 |             _res = _Py_ImportFrom ( NULL , c , 1 , EXTRA );
      |                                            ^
      |                                            |
      |                                            asdl_seq * {aka struct <anonymous> *}
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmpgbehpd3_/parse.c:2:
/home/skip/src/python/cpython/Include/Python-ast.h:625:60: note: expected ‘asdl_alias_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  625 | stmt_ty _Py_ImportFrom(identifier module, asdl_alias_seq * names, int level,
      |                                           ~~~~~~~~~~~~~~~~~^~~~~
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmplmi91q5h/parse.c:2:
/tmp/tmplmi91q5h/parse.c: In function ‘start_rule’:
/tmp/tmplmi91q5h/parse.c:69:29: warning: passing argument 1 of ‘_Py_Module’ from incompatible pointer type [-Wincompatible-pointer-types]
   69 |             _res = Module ( a , NULL , p -> arena );
      |                             ^
      |                             |
      |                             asdl_seq * {aka struct <anonymous> *}
/home/skip/src/python/cpython/Include/Python-ast.h:541:39: note: in definition of macro ‘Module’
  541 | #define Module(a0, a1, a2) _Py_Module(a0, a1, a2)
      |                                       ^~
/home/skip/src/python/cpython/Include/Python-ast.h:542:35: note: expected ‘asdl_stmt_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  542 | mod_ty _Py_Module(asdl_stmt_seq * body, asdl_type_ignore_seq * type_ignores,
      |                   ~~~~~~~~~~~~~~~~^~~~
/tmp/tmplmi91q5h/parse.c: In function ‘listcomp_rule’:
/tmp/tmplmi91q5h/parse.c:199:39: warning: passing argument 2 of ‘_Py_ListComp’ from incompatible pointer type [-Wincompatible-pointer-types]
  199 |             _res = _Py_ListComp ( b , c , EXTRA );
      |                                       ^
      |                                       |
      |                                       asdl_seq * {aka struct <anonymous> *}
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmplmi91q5h/parse.c:2:
/home/skip/src/python/cpython/Include/Python-ast.h:676:60: note: expected ‘asdl_comprehension_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  676 | expr_ty _Py_ListComp(expr_ty elt, asdl_comprehension_seq * generators, int
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/tmp/tmplmi91q5h/parse.c: In function ‘_tmp_2_rule’:
/tmp/tmplmi91q5h/parse.c:385:110: warning: passing argument 3 of ‘_Py_comprehension’ from incompatible pointer type [-Wincompatible-pointer-types]
  385 |             _res = _Py_comprehension ( _Py_Name ( ( ( expr_ty ) a ) -> v . Name . id , Store , EXTRA ) , b , c , ( y == NULL ) ? 0 : 1 , p -> arena );
      |                                                                                                              ^
      |                                                                                                              |
      |                                                                                                              asdl_seq * {aka struct <anonymous> *}
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmplmi91q5h/parse.c:2:
/home/skip/src/python/cpython/Include/Python-ast.h:748:38: note: expected ‘asdl_expr_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  747 | comprehension_ty _Py_comprehension(expr_ty target, expr_ty iter, asdl_expr_seq
      |                                                                  ~~~~~~~~~~~~~
  748 |                                    * ifs, int is_async, PyArena *arena);
      |                                    ~~^~~
/tmp/tmpmg0f1xoj/parse.c: In function ‘with_stmt_rule’:
/tmp/tmpmg0f1xoj/parse.c:270:31: warning: passing argument 1 of ‘_Py_With’ from incompatible pointer type [-Wincompatible-pointer-types]
  270 |             _res = _Py_With ( b , _PyPegen_singleton_seq ( p , c ) , NULL , EXTRA );
      |                               ^
      |                               |
      |                               asdl_seq * {aka struct <anonymous> *}
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmpmg0f1xoj/parse.c:2:
/home/skip/src/python/cpython/Include/Python-ast.h:603:38: note: expected ‘asdl_withitem_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  603 | stmt_ty _Py_With(asdl_withitem_seq * items, asdl_stmt_seq * body, string
      |                  ~~~~~~~~~~~~~~~~~~~~^~~~~
/tmp/tmpmg0f1xoj/parse.c:270:35: warning: passing argument 2 of ‘_Py_With’ from incompatible pointer type [-Wincompatible-pointer-types]
  270 |             _res = _Py_With ( b , _PyPegen_singleton_seq ( p , c ) , NULL , EXTRA );
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   asdl_seq * {aka struct <anonymous> *}
In file included from /home/skip/src/python/cpython/Parser/pegen.h:7,
                 from /tmp/tmpmg0f1xoj/parse.c:2:
/home/skip/src/python/cpython/Include/Python-ast.h:603:61: note: expected ‘asdl_stmt_seq *’ {aka ‘struct <anonymous> *’} but argument is of type ‘asdl_seq *’ {aka ‘struct <anonymous> *’}
  603 | stmt_ty _Py_With(asdl_withitem_seq * items, asdl_stmt_seq * body, string
      |                                             ~~~~~~~~~~~~~~~~^~~~

== Tests result: SUCCESS ==

1 test OK.

Total duration: 55.0 sec
Tests result: SUCCESS
History
Date User Action Args
2020-09-21 17:56:12skip.montanarosetrecipients: + skip.montanaro
2020-09-21 17:56:12skip.montanarosetmessageid: <1600710972.69.0.778161141813.issue41826@roundup.psfhosted.org>
2020-09-21 17:56:12skip.montanarolinkissue41826 messages
2020-09-21 17:56:11skip.montanarocreate