Power

 View Only

conflicting declaration 'typedef uint32_t offset_t' compilation problem with contourpy

  • 1.  conflicting declaration 'typedef uint32_t offset_t' compilation problem with contourpy

    Posted Mon May 06, 2024 10:17 AM

    Hello,

    I'm trying to install matplotlib into my python 3.9 virtual environment on AIX 7.3.

    There's a compilation problem with contourpy which is a pre-requisite of matplotlib :

    (toolbox) [root@CUMPBSV1:/dwhouse/python/toolbox] # python --version
    Python 3.9.16

    (toolbox) [root@CUMPBSV1:/dwhouse/python/toolbox] # python -m pip install contourpy==1.0.1
    Collecting contourpy==1.0.1
      Using cached contourpy-1.0.1.tar.gz (11.3 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Installing backend dependencies ... done
      Preparing metadata (pyproject.toml) ... done
    Requirement already satisfied: numpy>=1.16 in ./lib/python3.9/site-packages (from contourpy==1.0.1) (1.26.4)
    Building wheels for collected packages: contourpy
      Building wheel for contourpy (pyproject.toml) ... error
      error: subprocess-exited-with-error

      Building wheel for contourpy (pyproject.toml) did not run successfully.
      exit code: 1

      [209 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.aix-7302-2345-64-cpython-39
      creating build/lib.aix-7302-2345-64-cpython-39/contourpy
      copying lib/contourpy/__init__.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy
      copying lib/contourpy/_version.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy
      copying lib/contourpy/chunk.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy
      copying lib/contourpy/enum_util.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy
      creating build/lib.aix-7302-2345-64-cpython-39/contourpy/util
      copying lib/contourpy/util/__init__.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy/util
      copying lib/contourpy/util/bokeh_renderer.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy/util
      copying lib/contourpy/util/bokeh_util.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy/util
      copying lib/contourpy/util/data.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy/util
      copying lib/contourpy/util/mpl_renderer.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy/util
      copying lib/contourpy/util/mpl_util.py -> build/lib.aix-7302-2345-64-cpython-39/contourpy/util
      running build_ext
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c flagcheck.cpp -o flagcheck.o -std=c++17
      building 'contourpy._contourpy' extension
      creating build/temp.aix-7302-2345-64-cpython-39
      creating build/temp.aix-7302-2345-64-cpython-39/src
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/chunk_local.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/chunk_local.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/converter.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/converter.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/fill_type.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/fill_type.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/outer_or_hole.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/outer_or_hole.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/mpl2014.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/mpl2014.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/mpl2005_original.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/mpl2005_original.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/mpl2005.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/mpl2005.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/serial.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/serial.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/threaded.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/threaded.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/util.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/util.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/line_type.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/line_type.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/z_interp.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/z_interp.o -std=c++17 -fvisibility=hidden -g0
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCONTOURPY_VERSION=1.0.1 -DCONTOURPY_DEBUG=0 -DCONTOURPY_CXX11=0 -I/tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include -I/dwhouse/python/toolbox/include -I/opt/freeware/include/python3.9 -c src/wrap.cpp -o build/temp.aix-7302-2345-64-cpython-39/src/wrap.o -std=c++17 -fvisibility=hidden -g0
      In file included from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/chunk_local.cpp:1:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/chunk_local.cpp:1:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/base.h:13,
                       from src/base_impl.h:4,
                       from src/threaded.cpp:1:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/base.h:13,
                       from src/base_impl.h:4,
                       from src/threaded.cpp:1:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/converter.h:4,
                       from src/converter.cpp:1:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/converter.h:4,
                       from src/converter.cpp:1:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/mpl2005.h:4,
                       from src/mpl2005.cpp:1:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/mpl2005.h:4,
                       from src/mpl2005.cpp:1:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/base.h:13,
                       from src/base_impl.h:4,
                       from src/wrap.cpp:1:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/base.h:13,
                       from src/base_impl.h:4,
                       from src/wrap.cpp:1:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/util.h:4,
                       from src/util.cpp:1:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/util.h:4,
                       from src/util.cpp:1:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/mpl2005_original.h:4,
                       from src/mpl2005_original.cpp:15:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/mpl2005_original.h:4,
                       from src/mpl2005_original.cpp:15:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/mpl2014.h:145,
                       from src/mpl2014.cpp:8:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/mpl2014.h:145,
                       from src/mpl2014.cpp:8:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      In file included from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/base.h:13,
                       from src/base_impl.h:4,
                       from src/serial.cpp:1:
      src/common.h:17:18: error: conflicting declaration 'typedef uint32_t offset_t'
         17 | typedef uint32_t offset_t;
            |                  ^~~~~~~~
      In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h:506,
                       from /opt/freeware/include/python3.9/Python.h:25,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /tmp/pip-build-env-vlx23mah/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from src/common.h:4,
                       from src/output_array.h:4,
                       from src/chunk_local.h:4,
                       from src/base.h:13,
                       from src/base_impl.h:4,
                       from src/serial.cpp:1:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h:727:20: note: previous declaration as 'typedef long long int offset_t'
        727 | typedef long long  offset_t;  /* Unambiguous 64 bit file offset */
            |                    ^~~~~~~~
      error: command '/opt/freeware/bin/gcc' failed with exit code 1
      [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for contourpy
    Failed to build contourpy
    ERROR: Could not build wheels for contourpy, which is required to install pyproject.toml-based projects

    Are there any environment variables related to compilation to export before installing contourpy ?

    Regards,

    Marc Baguelin



    ------------------------------
    Marc Baguelin
    ------------------------------