dev-python/mariadb-1.0.11 error: lvalue required as left operand of assignment #1434

Closed
opened 2023-05-02 19:54:03 +02:00 by onkelbeh · 1 comment
Owner
>>> Emerging (2 of 2) dev-python/mariadb-1.0.11::HomeAssistantRepository
>>> Failed to emerge dev-python/mariadb-1.0.11, Log file:
>>>  '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/build.log'
>>> Jobs: 1 of 2 complete, 1 failed                 Load avg: 0.41, 0.11, 0.03
 * Package:    dev-python/mariadb-1.0.11:0
 * Repository: HomeAssistantRepository
 * Maintainer: b@edevau.net
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_11 test userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mariadb-1.0.11.zip to /var/tmp/portage/dev-python/mariadb-1.0.11/work
>>> Source unpacked in /var/tmp/portage/dev-python/mariadb-1.0.11/work
>>> Preparing source in /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11 ...
 * Build system packages:
 *   dev-python/setuptools         : 67.6.1
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11 ...
 * python3_11: running distutils-r1_run_phase distutils-r1_python_compile
python3.11 setup.py build -j 6
running build
running build_py
creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb
copying mariadb/__init__.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb
creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants
copying mariadb/constants/__init__.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants
copying mariadb/constants/CLIENT.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants
copying mariadb/constants/INDICATOR.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants
copying mariadb/constants/CURSOR.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants
copying mariadb/constants/FIELD_TYPE.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'mariadb._mariadb' extension
creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/temp.linux-x86_64-3.11
creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/temp.linux-x86_64-3.11/mariadb
x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -march=nocona -mtune=corei7-avx -O2 -pipe -fPIC -DPY_MARIADB_MAJOR_VERSION=1 -DPY_MARIADB_MINOR_VERSION=0 -DPY_MARIADB_PATCH_VERSION=11 -I/usr/include/mariadb -I/usr/include/mariadb/mysql -I./include -I/usr/include/python3.11 -c mariadb/mariadb.c -o /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/temp.linux-x86_64-3.11/mariadb/mariadb.o -DDEFAULT_PLUGINS_SUBDIR="/usr/lib64/mariadb/plugin"
mariadb/mariadb.c: In function ‘PyInit__mariadb’:
mariadb/mariadb.c:155:35: error: lvalue required as left operand of assignment
  155 |     Py_TYPE(&MrdbConnection_Type) = &PyType_Type;
      |                                   ^
mariadb/mariadb.c:168:31: error: lvalue required as left operand of assignment
  168 |     Py_TYPE(&MrdbCursor_Type) = &PyType_Type;
      |                               ^
mariadb/mariadb.c:174:29: error: lvalue required as left operand of assignment
  174 |     Py_TYPE(&MrdbPool_Type) = &PyType_Type;
      |                             ^
mariadb/mariadb.c:180:34: error: lvalue required as left operand of assignment
  180 |     Py_TYPE(&MrdbIndicator_Type) = &PyType_Type;
      |                                  ^
mariadb/mariadb.c:186:38: error: lvalue required as left operand of assignment
  186 |     Py_TYPE(&Mariadb_Fieldinfo_Type) = &PyType_Type;
      |                                      ^
mariadb/mariadb.c:192:38: error: lvalue required as left operand of assignment
  192 |     Py_TYPE(&Mariadb_DBAPIType_Type) = &PyType_Type;
      |                                      ^
error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
 * ERROR: dev-python/mariadb-1.0.11::HomeAssistantRepository failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3383:  Called distutils-r1_src_compile
 *   environment, line 1552:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  710:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3083:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2639:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2637:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1039:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1534:  Called distutils-r1_python_compile
 *   environment, line 1341:  Called esetup.py 'build' '-j' '6'
 *   environment, line 2158:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 *
 * If you need support, post the output of `emerge --info '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11'
 * S: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11'

 * Messages for package dev-python/mariadb-1.0.11:

 * ERROR: dev-python/mariadb-1.0.11::HomeAssistantRepository failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3383:  Called distutils-r1_src_compile
 *   environment, line 1552:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  710:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3083:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2639:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2637:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1039:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1534:  Called distutils-r1_python_compile
 *   environment, line 1341:  Called esetup.py 'build' '-j' '6'
 *   environment, line 2158:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 *
 * If you need support, post the output of `emerge --info '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11'
 * S: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11'
``` >>> Emerging (2 of 2) dev-python/mariadb-1.0.11::HomeAssistantRepository >>> Failed to emerge dev-python/mariadb-1.0.11, Log file: >>> '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/build.log' >>> Jobs: 1 of 2 complete, 1 failed Load avg: 0.41, 0.11, 0.03 * Package: dev-python/mariadb-1.0.11:0 * Repository: HomeAssistantRepository * Maintainer: b@edevau.net * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_11 test userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking mariadb-1.0.11.zip to /var/tmp/portage/dev-python/mariadb-1.0.11/work >>> Source unpacked in /var/tmp/portage/dev-python/mariadb-1.0.11/work >>> Preparing source in /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11 ... * Build system packages: * dev-python/setuptools : 67.6.1 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11 ... * python3_11: running distutils-r1_run_phase distutils-r1_python_compile python3.11 setup.py build -j 6 running build running build_py creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb copying mariadb/__init__.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants copying mariadb/constants/__init__.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants copying mariadb/constants/CLIENT.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants copying mariadb/constants/INDICATOR.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants copying mariadb/constants/CURSOR.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants copying mariadb/constants/FIELD_TYPE.py -> /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/lib/mariadb/constants warning: build_py: byte-compiling is disabled, skipping. running build_ext building 'mariadb._mariadb' extension creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/temp.linux-x86_64-3.11 creating /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/temp.linux-x86_64-3.11/mariadb x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -march=nocona -mtune=corei7-avx -O2 -pipe -fPIC -DPY_MARIADB_MAJOR_VERSION=1 -DPY_MARIADB_MINOR_VERSION=0 -DPY_MARIADB_PATCH_VERSION=11 -I/usr/include/mariadb -I/usr/include/mariadb/mysql -I./include -I/usr/include/python3.11 -c mariadb/mariadb.c -o /var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11-python3_11/temp.linux-x86_64-3.11/mariadb/mariadb.o -DDEFAULT_PLUGINS_SUBDIR="/usr/lib64/mariadb/plugin" mariadb/mariadb.c: In function ‘PyInit__mariadb’: mariadb/mariadb.c:155:35: error: lvalue required as left operand of assignment 155 | Py_TYPE(&MrdbConnection_Type) = &PyType_Type; | ^ mariadb/mariadb.c:168:31: error: lvalue required as left operand of assignment 168 | Py_TYPE(&MrdbCursor_Type) = &PyType_Type; | ^ mariadb/mariadb.c:174:29: error: lvalue required as left operand of assignment 174 | Py_TYPE(&MrdbPool_Type) = &PyType_Type; | ^ mariadb/mariadb.c:180:34: error: lvalue required as left operand of assignment 180 | Py_TYPE(&MrdbIndicator_Type) = &PyType_Type; | ^ mariadb/mariadb.c:186:38: error: lvalue required as left operand of assignment 186 | Py_TYPE(&Mariadb_Fieldinfo_Type) = &PyType_Type; | ^ mariadb/mariadb.c:192:38: error: lvalue required as left operand of assignment 192 | Py_TYPE(&Mariadb_DBAPIType_Type) = &PyType_Type; | ^ error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1 * ERROR: dev-python/mariadb-1.0.11::HomeAssistantRepository failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3383: Called distutils-r1_src_compile * environment, line 1552: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile' * environment, line 710: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 3083: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2639: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2637: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 1039: Called distutils-r1_run_phase 'distutils-r1_python_compile' * environment, line 1534: Called distutils-r1_python_compile * environment, line 1341: Called esetup.py 'build' '-j' '6' * environment, line 2158: Called die * The specific snippet of code: * "${@}" || die -n; * * If you need support, post the output of `emerge --info '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`, * the complete build log and the output of `emerge -pqv '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`. * The complete build log is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11' * S: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11' * Messages for package dev-python/mariadb-1.0.11: * ERROR: dev-python/mariadb-1.0.11::HomeAssistantRepository failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3383: Called distutils-r1_src_compile * environment, line 1552: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile' * environment, line 710: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 3083: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2639: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2637: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 1039: Called distutils-r1_run_phase 'distutils-r1_python_compile' * environment, line 1534: Called distutils-r1_python_compile * environment, line 1341: Called esetup.py 'build' '-j' '6' * environment, line 2158: Called die * The specific snippet of code: * "${@}" || die -n; * * If you need support, post the output of `emerge --info '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`, * the complete build log and the output of `emerge -pqv '=dev-python/mariadb-1.0.11::HomeAssistantRepository'`. * The complete build log is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/mariadb-1.0.11/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11' * S: '/var/tmp/portage/dev-python/mariadb-1.0.11/work/mariadb-1.0.11' ```
onkelbeh added the
Python 3.11
label 2023-05-02 19:54:03 +02:00
Author
Owner

outdated, new version

outdated, new version
Sign in to join this conversation.
No Label
Python 3.11
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#1434
No description provided.