[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 20 18:28:58 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-win-x-aarch64` running on `as-builder-2` while building `clang` at step 10 "test-check-clang".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/193/builds/5054
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 10 (test-check-clang) failure: Test just built components: check-clang completed (failure)
******************** TEST 'Clang :: Driver/clang-offload-bundler-zlib.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 7
c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe -O0 -target aarch64-unknown-linux-gnu C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\Driver\clang-offload-bundler-zlib.c -c -emit-llvm -o C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.bc
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe' -O0 -target aarch64-unknown-linux-gnu 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\Driver\clang-offload-bundler-zlib.c' -c -emit-llvm -o 'C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.bc'
# RUN: at line 12
touch C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.empty
# executed command: touch 'C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.empty'
# RUN: at line 17
echo 'Content of device file 1' > C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.tgt1
# executed command: echo 'Content of device file 1'
# RUN: at line 18
echo 'Content of device file 2' > C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.tgt2
# executed command: echo 'Content of device file 2'
# RUN: at line 23
env OFFLOAD_BUNDLER_COMPRESS=1 OFFLOAD_BUNDLER_VERBOSE=1 clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 -input=C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.tgt1 -input=C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.tgt2 -output=C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.hip.bundle.bc 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe -check-prefix=COMPRESS C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\Driver\clang-offload-bundler-zlib.c
# executed command: env OFFLOAD_BUNDLER_COMPRESS=1 OFFLOAD_BUNDLER_VERBOSE=1 clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 '-input=C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.tgt1' '-input=C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.tgt2' '-output=C:\buildbot\as-builder-2\x-aarch64\build\tools\clang\test\Driver\Output\clang-offload-bundler-zlib.c.tmp.hip.bundle.bc'
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' -check-prefix=COMPRESS 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\Driver\clang-offload-bundler-zlib.c'
# .---command stderr------------
# | C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\Driver\clang-offload-bundler-zlib.c:59:14: error: COMPRESS: expected string not found in input
# | // COMPRESS: Compressed bundle format version: 3
# | ^
# | <stdin>:4:21: note: scanning from here
# | Compression level: 6
# | ^
# | <stdin>:7:1: note: possible intended match here
# | Compression rate: 1.86
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\Driver\clang-offload-bundler-zlib.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: Compressed bundle format version: 2
# | 2: Total file size (including headers): 125 bytes
# | 3: Compression method used: zlib
# | 4: Compression level: 6
# | check:59'0 X error: no match found
# | 5: Binary size before compression: 188 bytes
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6: Binary size after compression: 101 bytes
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 7: Compression rate: 1.86
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~
...
```
</details>
https://github.com/llvm/llvm-project/pull/122307
More information about the cfe-commits
mailing list