Skip to content

Remove some more cranelift-filetest wasm testing bits#8143

Merged
alexcrichton merged 5 commits into
bytecodealliance:mainfrom
alexcrichton:remove-some-more-test-bits
Mar 15, 2024
Merged

Remove some more cranelift-filetest wasm testing bits#8143
alexcrichton merged 5 commits into
bytecodealliance:mainfrom
alexcrichton:remove-some-more-test-bits

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

Some more cleanup enabled through #8140 and #8129

No longer needed with tests having moved out to `tests/disas`
No need for `test_wasm.rs` to stick around in cranelift-filetest, so
move the bits up a layer.
@alexcrichton alexcrichton requested review from a team as code owners March 15, 2024 01:00
@alexcrichton alexcrichton requested review from cfallin and fitzgen and removed request for a team March 15, 2024 01:01
@github-actions github-actions Bot added the cranelift Issues related to the Cranelift code generator label Mar 15, 2024
Comment thread tests/disas.rs Outdated
Comment thread cranelift/filetests/src/test_wasm.rs
@alexcrichton alexcrichton enabled auto-merge March 15, 2024 15:03
@alexcrichton alexcrichton added this pull request to the merge queue Mar 15, 2024
@alexcrichton alexcrichton force-pushed the remove-some-more-test-bits branch from 455c0ec to d6976a6 Compare March 15, 2024 15:27
@alexcrichton alexcrichton removed this pull request from the merge queue due to a manual request Mar 15, 2024
@alexcrichton
Copy link
Copy Markdown
Member Author

This hit an unusual error on CI which looked like:

     Running tests/filetests.rs (target/riscv64gc-unknown-linux-gnu/debug/deps/filetests-9d21d101a4f160f6)
thread 'worker #2' panicked at cranelift/jit/src/backend.rs:342:40:
can't resolve libcall ceilf

Apparently the removal of the wasm-related dependencies also removed all dependencies on libm for riscv64 which meant that tests were failing as a dlsym for various libcall symbols was failing. I just added a commit which forces linking to libm by referring to a symbol and calling it.

@alexcrichton alexcrichton enabled auto-merge March 15, 2024 15:53
@alexcrichton alexcrichton added this pull request to the merge queue Mar 15, 2024
Merged via the queue into bytecodealliance:main with commit 17146ab Mar 15, 2024
@alexcrichton alexcrichton deleted the remove-some-more-test-bits branch March 15, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants