FFmpeg-Builds
FFmpeg-Builds copied to clipboard
Option to keep all temp files withing git repo
I have my git repo on a mount which is another drive, where I have lots of space. However my root/home drive is quite small and gets full during compilation:
#0 129.0 [EXTRA] Dumping internal crosstool-NG configuration: done in 0.07s (at 00:02)
#0 129.0 [INFO ] =================================================================
#0 129.0 [INFO ] Retrieving needed toolchain components' tarballs
#0 129.0 [EXTRA] Retrieving 'zlib-1.2.12'
#0 132.0 [EXTRA] Verifying SHA512 checksum for 'zlib-1.2.12.tar.xz'
#0 132.1 [EXTRA] Retrieving 'gmp-6.2.1'
#0 133.3 [EXTRA] Verifying SHA512 checksum for 'gmp-6.2.1.tar.xz'
#0 133.4 [EXTRA] Retrieving 'mpfr-4.1.0'
#0 135.2 [EXTRA] Verifying SHA512 checksum for 'mpfr-4.1.0.tar.xz'
#0 135.3 [EXTRA] Retrieving 'isl-0.24'
#0 137.4 [EXTRA] Verifying SHA512 checksum for 'isl-0.24.tar.xz'
#0 137.4 [EXTRA] Retrieving 'mpc-1.2.1'
#0 138.3 [EXTRA] Verifying SHA512 checksum for 'mpc-1.2.1.tar.gz'
#0 138.3 [EXTRA] Retrieving 'binutils-2.38'
#0 146.0 [EXTRA] Verifying SHA512 checksum for 'binutils-2.38.tar.xz'
#0 146.2 [EXTRA] Retrieving 'gcc-12.1.0'
#0 415.8 /ct-ng/scripts/functions: line 298: printf: write error: No space left on device
#0 415.8 /ct-ng/scripts/functions: line 298: printf: write error: No space left on device
#0 415.8 /ct-ng/scripts/functions: line 298: printf: write error: No space left on device
#0 415.8 /ct-ng/scripts/functions: line 298: printf: write error: No space left on device
#0 415.8 /ct-ng/scripts/functions: line 298: printf: write error: No space left on device
#0 419.0 [ERROR] gcc: download failed
#0 419.0 [ERROR]
#0 419.0 [ERROR] >>
#0 419.0 [ERROR] >> Build failed in step 'Retrieving needed toolchain components' tarballs'
#0 419.0 [ERROR] >> called in step '(top-level)'
#0 419.0 [ERROR] >>
#0 419.0 [ERROR] >> Error happened in: CT_Abort[scripts/functions@487]
#0 419.0 [ERROR] >> called from: CT_DoFetch[scripts/functions@2129]
#0 419.0 [ERROR] >> called from: CT_PackageRun[scripts/functions@2089]
#0 419.0 [ERROR] >> called from: CT_Fetch[scripts/functions@2200]
#0 419.0 [ERROR] >> called from: do_cc_get[scripts/build/cc/gcc.sh@10]
#0 419.0 [ERROR] >> called from: main[scripts/crosstool-NG.sh@651]
#0 419.1 [ERROR] >>
#0 419.1 [ERROR] >> There is a list of known issues, some with workarounds, in:
#0 419.1 [ERROR] >> https://crosstool-ng.github.io/docs/known-issues/
#0 419.1 [ERROR] >>
#0 419.1 [ERROR] >> NOTE: Your configuration includes features marked EXPERIMENTAL.
#0 419.1 [ERROR] >> Before submitting a bug report, try to reproduce it without enabling
#0 419.1 [ERROR] >> any experimental features. Otherwise, you'll need to debug it
#0 419.1 [ERROR] >> and present an explanation why it is a bug in crosstool-NG - or
#0 419.1 [ERROR] >> preferably, a fix.
#0 419.1 [ERROR] >>
#0 419.1 [ERROR] >> If you feel this is a bug in crosstool-NG, report it at:
#0 419.1 [ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/
#0 419.1 [ERROR] >>
#0 419.1 [ERROR] >> Make sure your report includes all the information pertinent to this issue.
#0 419.1 [ERROR] >> Read the bug reporting guidelines here:
#0 419.1 [ERROR] >> http://crosstool-ng.github.io/support/
#0 419.1 [ERROR]
#0 419.2 [ERROR] (elapsed: 4:51.46)
#0 419.2 gmake: *** [ct-ng:261: build] Error 1
------
WARNING: local cache import at .cache/ghcr.io/btbn/ffmpeg-builds/base-win32_latest not found due to err: could not read .cache/ghcr.io/btbn/ffmpeg-builds/base-win32_latest/index.json: open .cache/ghcr.io/btbn/ffmpeg-builds/base-win32_latest/index.json: no such file or directory
Dockerfile:4
--------------------
3 |
4 | >>> RUN --mount=src=ct-ng-config,dst=/.config \
5 | >>> git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
6 | >>> ./bootstrap && \
7 | >>> ./configure --enable-local && \
8 | >>> make -j$(nproc) && \
9 | >>> cp /.config .config && \
10 | >>> ./ct-ng build && \
11 | >>> cd / && \
12 | >>> rm -rf ct-ng
13 |
--------------------
error: failed to solve: process "/bin/sh -c git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && ./bootstrap && ./configure --enable-local && make -j$(nproc) && cp /.config .config && ./ct-ng build && cd / && rm -rf ct-ng" did not complete successfully: exit code: 2
+ rm -f /tmp/tmp.QW9QU67AIg.toml
Some option like --local-cache would mean to store everything inside the FFmpeg-Builds folder.
You will need to configure your dockerd accordingly. The scripts have no influence on where docker stores its containers.
Closing here, since not an issue with the build scripts.