Skip to content

Troubleshooting Docker build errors #909

@itutu-tienday

Description

@itutu-tienday

Problem

A Dockerfile that previously worked has recently stopped working.
Perhaps due to the passage of time and the impact of various package upgrades.

  • Example of an error (multiple patterns can be seen)
92.29   Stored in directory: /root/.cache/pip/wheels/d7/99/1f/ed919974bc5a1ce7357f3a90d519e6cbab066fac4d4d55b1b9
92.29   Building wheel for datrie (pyproject.toml): started
96.90   Building wheel for datrie (pyproject.toml): finished with status 'error'
96.91   error: subprocess-exited-with-error
96.91   
96.91   × Building wheel for datrie (pyproject.toml) did not run successfully.
96.91   │ exit code: 1
96.91   ╰─> [107 lines of output]
96.91       /tmp/pip-build-env-lw9jq89r/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
96.91         warnings.warn(msg)
96.91       /tmp/pip-build-env-lw9jq89r/overlay/lib/python3.9/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
96.91       !!
96.91       
96.91               ********************************************************************************
96.91               Please consider removing the following classifiers in favor of a SPDX license expression:
96.91       
96.91               License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
96.91       
96.91               See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
96.91               ********************************************************************************
96.91       
96.91       !!
96.91         self._finalize_license_expression()

~~~~

96.91       src/../libdatrie/datrie/alpha-map.h:74:45: note: expected ‘AlphaMap *’ {aka ‘struct _AlphaMap *’} but argument is of type ‘struct AlphaMap *’
96.91          74 | int         alpha_map_add_range (AlphaMap  *alpha_map,
96.91             |                                  ~~~~~~~~~~~^~~~~~~~~
96.91       error: command '/usr/bin/gcc' failed with exit code 1
96.91       [end of output]

Measures

Investigating the cause of the error and taking appropriate action

Tasks

  • Adjust Dockerfile.test (so that GitHub Actions Test passes)
  • Adjust Dockerfile, Dockerfile.dev
  • Post-issue tasks after resolving the issue
    • Porting to each fork repository
      • optinist-for-cloud
      • optinist-for-server

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions