Skip to content

Several WebAssembly tests fail on LLVM without X86 target #106876

Open
@aaronpuchert

Description

@aaronpuchert

I get these failures when running LLVM tests without X86 target:

Failed Tests (5):
  LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test
  LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-select-logical-elements.test
  LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/03-wasm-incorrect-lexical-scope-typedef.test
  LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/04-wasm-missing-nested-enumerators.test
  LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/05-wasm-incorrect-lexical-scope-variable.test

The gist of the issue (here tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test):

+ [...]/build/bin/llvm-debuginfo-analyzer --attribute=level --compare=types --report=view --print=symbols,types [...]/build/test/tools/llvm-debuginfo-analyzer/WebAssembly/Output/01-wasm-compare-logical-elements.test.tmp.test-clang.o [...]/test/tools/llvm-debuginfo-analyzer/WebAssembly/../DWARF/Inputs/test-dwarf-gcc.o
+ [...]/build/bin/FileCheck --strict-whitespace -check-prefix=ONE [...]/test/tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test
[...]/test/tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test:31:13: error: ONE: expected string not found in input
; ONE:      Reference: '{{.*}}test-clang.o'
            ^
<stdin>:1:1: note: scanning from here

^
<stdin>:2:19: note: possible intended match here
llvm-debuginfo-analyzer: error: No available targets are compatible with triple "x86_64-unknown-unknown".
                  ^

And indeed:

> file llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/test-dwarf-gcc.o
llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/test-dwarf-gcc.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped

For the other tests:

  • tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-select-logical-elements.test also refers llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/test-dwarf-gcc.o.
  • tools/llvm-debuginfo-analyzer/WebAssembly/03-wasm-incorrect-lexical-scope-typedef.test refers to llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/pr-44884-dwarf-gcc.o.
  • tools/llvm-debuginfo-analyzer/WebAssembly/04-wasm-missing-nested-enumerators.test refers to llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/pr-46466-dwarf-gcc.o.
  • tools/llvm-debuginfo-analyzer/WebAssembly/05-wasm-incorrect-lexical-scope-variable.test refers to llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/pr-43860-dwarf-gcc.o.

Is it intentional that WebAssembly tests use X86 object files? If yes, we should probably add REQUIRES: x86-registered-target.

@CarlosAlbertoEnciso as the test cases seem to come from b19cfb9.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions