<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>239786</bug_id>
          
          <creation_ts>2022-04-26 13:21:11 -0700</creation_ts>
          <short_desc>Cannot run test-webkitpy, autoinstaller fails to compile lupa</short_desc>
          <delta_ts>2022-04-26 16:40:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1864590</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-04-26 13:21:11 -0700</bug_when>
    <thetext>I was trying to run test-webkitpy locally, but noticed that it fails because it attempts to autoinstall lupa, which fails to build. Look at this:

Downloading lupa-1.9.0...
Installing lupa-1.9.0...
No local build of LuaJIT2 found in lupa directory
Checking for installed luajit library using pkg-config
pkg-config found luajit version 2.1.0-beta3

building without Cython
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/lupa
copying lupa/version.py -&gt; build/lib.linux-x86_64-3.10/lupa
copying lupa/__init__.py -&gt; build/lib.linux-x86_64-3.10/lupa
running build_ext
building &apos;lupa._lupa&apos; extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/lupa
gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/luajit-2.1 -I/usr/include/python3.10 -c lupa/_lupa.c -o build/temp.linux-x86_64-3.10/lupa/_lupa.o
lupa/_lupa.c: In function ‘__pyx_pf_4lupa_5_lupa_9FastRLock_6release’:
lupa/_lupa.c:3070:38: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare]
 3070 |   __pyx_t_1 = ((__pyx_v_self-&gt;_owner != PyThread_get_thread_ident()) != 0);
      |                                      ^~
lupa/_lupa.c: In function ‘__pyx_pf_4lupa_5_lupa_9FastRLock_10__exit__’:
lupa/_lupa.c:3283:38: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare]
 3283 |   __pyx_t_1 = ((__pyx_v_self-&gt;_owner != PyThread_get_thread_ident()) != 0);
      |                                      ^~
lupa/_lupa.c: In function ‘__pyx_pf_4lupa_5_lupa_9FastRLock_12_is_owned’:
lupa/_lupa.c:3375:59: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare]
 3375 |   __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self-&gt;_owner == PyThread_get_thread_ident())); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 55, __pyx_L1_error)
      |                                                           ^~
lupa/_lupa.c: In function ‘__pyx_tp_dealloc_4lupa_5_lupa_FastRLock’:
lupa/_lupa.c:27466:5: error: lvalue required as increment operand
27466 |     ++Py_REFCNT(o);
      |     ^~
lupa/_lupa.c:27468:5: error: lvalue required as decrement operand
27468 |     --Py_REFCNT(o);
      |     ^~
lupa/_lupa.c: In function ‘__pyx_tp_dealloc_4lupa_5_lupa_LuaRuntime’:
lupa/_lupa.c:27592:5: error: lvalue required as increment operand
27592 |     ++Py_REFCNT(o);
      |     ^~
lupa/_lupa.c:27594:5: error: lvalue required as decrement operand
27594 |     --Py_REFCNT(o);
      |     ^~
lupa/_lupa.c: In function ‘__pyx_tp_dealloc_4lupa_5_lupa__LuaObject’:
lupa/_lupa.c:27751:5: error: lvalue required as increment operand
27751 |     ++Py_REFCNT(o);
      |     ^~
lupa/_lupa.c:27753:5: error: lvalue required as decrement operand
27753 |     --Py_REFCNT(o);
      |     ^~
lupa/_lupa.c: In function ‘__pyx_tp_dealloc_4lupa_5_lupa__LuaIter’:
lupa/_lupa.c:28496:5: error: lvalue required as increment operand
28496 |     ++Py_REFCNT(o);
      |     ^~
lupa/_lupa.c:28498:5: error: lvalue required as decrement operand
28498 |     --Py_REFCNT(o);
      |     ^~
lupa/_lupa.c: In function ‘__Pyx_ParseOptionalKeywords’:
lupa/_lupa.c:31674:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31674 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from lupa/_lupa.c:33:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31674:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
31674 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31674:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31674 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31674:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31674 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31674:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
31674 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31674:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31674 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                     ^
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31690:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31690 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31690:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
31690 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31690:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31690 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31690:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31690 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31690:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
31690 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
lupa/_lupa.c:31690:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
31690 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
      |                         ^
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c: In function ‘__Pyx_decode_c_string’:
lupa/_lupa.c:31954:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
31954 |         return PyUnicode_FromUnicode(NULL, 0);
      |         ^~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
lupa/_lupa.c: In function ‘__Pyx_decode_c_bytes’:
lupa/_lupa.c:33605:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
33605 |         return PyUnicode_FromUnicode(NULL, 0);
      |         ^~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
error: command &apos;/usr/bin/gcc&apos; failed with exit code 1
Failed to install lupa-1.9.0!
Traceback (most recent call last):
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/test/main.py&quot;, line 365, in &lt;module&gt;
    sys.exit(main())
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/test/main.py&quot;, line 114, in main
    return not tester.run()
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/test/main.py&quot;, line 187, in run
    return self._run_tests(names)
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/test/main.py&quot;, line 200, in _run_tests
    AutoInstall.install_everything()
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 612, in install_everything
    package.install()
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 313, in install
    subprocess.check_call(
  File &quot;/usr/lib64/python3.10/subprocess.py&quot;, line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command &apos;[&apos;/usr/bin/python3&apos;, &apos;/tmp/lupa/lupa-1.9/setup.py&apos;, &apos;install&apos;, &apos;--home=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64&apos;, &apos;--root=/&apos;, &apos;--prefix=&apos;, &apos;--install-lib=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64&apos;, &apos;--install-scripts=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/bin&apos;, &apos;--install-data=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/data&apos;, &apos;--install-headers=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/headers&apos;]&apos; returned non-zero exit status 1.


This can be fixed by simply updating to a newer version of lupa.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864620</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-04-26 14:00:20 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/400</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864675</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-04-26 16:39:47 -0700</bug_when>
    <thetext>Committed r293483 (250017@main): &lt;https://commits.webkit.org/250017@main&gt;

Reviewed commits have been landed. Closing PR #400 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864676</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-26 16:40:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/92366063&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>