Skip to content

Commit

Permalink
Dockerfile: try to fix yamllint compilation on non-x86
Browse files Browse the repository at this point in the history
```
Failed to build pyinstaller
Installing collected packages: altgraph, pyinstaller, pathspec, pyyaml, yamllint
  Running setup.py install for pyinstaller: started
    Running setup.py install for pyinstaller: finished with status 'error'
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-05osqa8r/pyinstaller/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-8riizqk3-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_bootloader
    No precompiled bootloader found. Trying to compile it for you ...
    Setting top to                           : /tmp/pip-build-05osqa8r/pyinstaller/bootloader
    Setting out to                           : /tmp/pip-build-05osqa8r/pyinstaller/bootloader/build
    Python Version                           : 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 2017051]
    Checking for 'gcc' (C compiler)          : /usr/bin/gcc
    Checking size of pointer                 : 8
    Platform                                 : Linux-64bit detected based on compiler
    Checking for program '/usr/bin/strip'    : /usr/bin/strip
    Checking for program 'strip'             : /usr/bin/strip
    Checking for library dl                  : yes
    Checking for library m                   : yes
    Checking for library z                   : not found
    The configuration failed
    (complete log in /tmp/pip-build-05osqa8r/pyinstaller/bootloader/build/config.log)
    ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-05osqa8r/pyinstaller/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-8riizqk3-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-05osqa8r/pyinstaller/
ERROR: executor failed running [/bin/sh -c pip3 install --user pyinstaller yamllint==${YAMLLINT_VERSION}         && /root/.local/bin/pyinstaller --onefile --distpath=/build /root/.local/bin/yamllint         && /build/yamllint --version]: exit code: 1
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed May 9, 2020
1 parent 38e435c commit 44a8431
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -162,6 +162,7 @@ FROM dev-base AS yamllint
RUN --mount=type=cache,sharing=locked,id=moby-dev-aptlib,target=/var/lib/apt \
--mount=type=cache,sharing=locked,id=moby-dev-aptcache,target=/var/cache/apt \
apt-get update && apt-get install -y --no-install-recommends \
zlib1g-dev \
python3-dev \
python3-pip \
python3-setuptools \
Expand Down

0 comments on commit 44a8431

Please sign in to comment.