Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`pass` test failures on 32-bit systems

未关闭
#8,366 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cmake, python, wasm

调研方向

使用提供的 CMake、Ninja 和 check.py 命令复现该失败,然后检查 passes/O_fast-math.wast 和 passes/optimize-instructions-mvp.wast,重点关注其中的 NaN CHECK 行。当两个 pass 测试都在 32 位构建中产生预期的 NaN 值时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

When running

cmake -G Ninja -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_C_FLAGS="-m32" -DCMAKE_BUILD_TYPE=Debug .
ninja
python3 check.py lit

I get test failures in passes/O_fast-math.wast and passes/optimize-instructions-mvp.wast. Both tests give the wrong NaN:

$ "filecheck" "/usr/local/google/home/stevenfont/code/binaryen/test/lit/passes/O_fast-math.wast"
# command output:
/usr/local/google/home/stevenfont/code/binaryen/test/lit/passes/O_fast-math.wast:41:17: error: CHECK-NEXT: expected string not found in input
 ;; CHECK-NEXT: (f32.const -nan:0x23017a)
                ^
<stdin>:19:1: note: scanning from here
  (f32.const -nan:0x63017a)
^

error: command failed with exit status: 1
主要语言
WebAssembly
星标
8.7k
派生
893
平均合并
1 天 18 小时
30 天内合并 PR
79

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

WebAssembly/binaryen 的其他 Issue

查看 WebAssembly/binaryen 的全部 Issue

相似的 Issue

更多 Compilers Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。