cpp-linter / cpp-linter-hooks

C/C++ code linter hooks for pre-commit
MIT License
14 stars 1 forks source link

aix is not currently supported #55

Closed shenxianpeng closed 3 days ago

shenxianpeng commented 3 days ago
(venv) bash-5.1# pre-commit --version
pre-commit 4.0.1
(venv) bash-5.1# pre-commit run -a
[INFO] Initializing environment for https://github.com/cpp-linter/cpp-linter-hooks.
[INFO] Installing environment for https://github.com/cpp-linter/cpp-linter-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
clang-format.............................................................Failed
- hook id: clang-format
- exit code: 1

aix is not currently supported
aix is not currently supported
aix is not currently supported
aix is not currently supported
aix is not currently supported
aix is not currently supported
aix is not currently supported
aix is not currently supported
shenxianpeng commented 3 days ago
(venv) bash-5.1# git commit -m "test"
clang-format.............................................................Failed
- hook id: clang-format
- exit code: 1

aix is not currently supported
shenxianpeng commented 3 days ago

even if I used https://github.com/pre-commit/mirrors-clang-format, running pre-commit hooks on AIX still failed with the following error.

(venv) bash-5.1# pre-commit run -a
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/.cache/pre-commit/repop5x91249/py_env-python3.9/bin/python', '-mpip', 'install', '.')
return code: 1
stdout:
    Processing /.cache/pre-commit/repop5x91249
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
    Collecting ruamel.yaml>=0.15 (from pre_commit_hooks==5.0.0)
      Using cached ruamel.yaml-0.18.6-py3-none-any.whl.metadata (23 kB)
    Collecting tomli>=1.1.0 (from pre_commit_hooks==5.0.0)
      Using cached tomli-2.1.0-py3-none-any.whl.metadata (10.0 kB)
    Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml>=0.15->pre_commit_hooks==5.0.0)
      Using cached ruamel.yaml.clib-0.2.12.tar.gz (225 kB)
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
    Using cached ruamel.yaml-0.18.6-py3-none-any.whl (117 kB)
    Using cached tomli-2.1.0-py3-none-any.whl (13 kB)
    Building wheels for collected packages: pre_commit_hooks, ruamel.yaml.clib
      Building wheel for pre_commit_hooks (setup.py): started
      Building wheel for pre_commit_hooks (setup.py): finished with status 'done'
      Created wheel for pre_commit_hooks: filename=pre_commit_hooks-5.0.0-py2.py3-none-any.whl size=41245 sha256=abef08b57ad1a9ba10fd3ed260823eb5a3faecc691d092419b0e8d35cedc4dda
      Stored in directory: /tmp/pip-ephem-wheel-cache-hz6xyznp/wheels/c0/54/0c/805292b631092a2167c808c8ad0242a97661edc212db6ed0bb
      Building wheel for ruamel.yaml.clib (pyproject.toml): started
      Building wheel for ruamel.yaml.clib (pyproject.toml): finished with status 'error'
    Successfully built pre_commit_hooks
    Failed to build ruamel.yaml.clib
stderr:
      error: subprocess-exited-with-error

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

      [14 lines of output]
      /tmp/pip-build-env-stcr5r9_/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build/lib.aix-7205-2345-64-cpython-39/ruamel/yaml/clib
      copying ./__init__.py -> build/lib.aix-7205-2345-64-cpython-39/ruamel/yaml/clib
      copying ./setup.py -> build/lib.aix-7205-2345-64-cpython-39/ruamel/yaml/clib
      copying ./LICENSE -> build/lib.aix-7205-2345-64-cpython-39/ruamel/yaml/clib
      running build_ext
      building '_ruamel_yaml' extension
      creating build/temp.aix-7205-2345-64-cpython-39
      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/.cache/pre-commit/repop5x91249/py_env-python3.9/include -I/opt/freeware/include/python3.9 -c _ruamel_yaml.c -o build/temp.aix-7205-2345-64-cpython-39/_ruamel_yaml.o
      error: command 'gcc' failed: No such file or directory
      [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for ruamel.yaml.clib
    ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (ruamel.yaml.clib)
Check the log at /.cache/pre-commit/pre-commit.log