Fantom's tester does not build with Clang 22 or later: the skcms of its pinned Skia (3f8fc145) calls __builtin_ia32_vcvtph2ps256
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 66/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
Start with the Skia revision pinned in private/react-native-fantom/build.gradle.kts and the tester's Skia build configuration in private/react-native-fantom/tester/third-party/skia/CMakeLists.txt. Compare its skcms implementation with the cited upstream fix, then reproduce with Clang 22 or later using the reported yarn workspace build command. Done means the Fantom tester builds and Skia renders as expected.
索引モデルが issue の本文から書いたものです。
説明
Description
Since cea863e (#59482), Fantom's tester builds Skia at the revision private/react-native-fantom/build.gradle.kts pins, 3f8fc145ba678f3bd47af50f8fb51bcde474ef9c. That Skia's third_party/skcms/src/Transform_inl.h L169 calls __builtin_ia32_vcvtph2ps256 in the AVX2 path that skcms.cc compiles for runtime CPU detection. Clang 21 declares that builtin (BuiltinsX86.td L759), and Clang 22 and later do not, so yarn workspace @react-native/fantom build fails with Clang 22 or later.
skcms replaced the call with __builtin_convertvector in 135488419331 (2025-08-15), and current Skia carries that in modules/skcms.
Steps to reproduce
git clone https://github.com/YevheniiKotyrlo/react-native-fantom-reproducer && cd react-native-fantom-reproducer./fantom/reproduce.sh skia-clang-23(needs Docker). It clonesreact/react-nativeatmaininto the image Fantom's CI job builds in, with Clang 23.1.3 in place of the apt Clang. Then it runsyarn workspace @react-native/fantom buildwithCXXFLAGS=-Wno-error=deprecated-literal-operator, which keeps nlohmann_json's warning (#59667) from stopping the build first. It ends with aSUMMARY:line and exits 1 while the build stops on__builtin_ia32_vcvtph2ps256, 0 once the tester builds, and 2 when it fails another way.
The same on a checkout of main, with Clang 22 or later as CC and CXX:
export CXXFLAGS=-Wno-error=deprecated-literal-operator
yarn workspace @react-native/fantom build
Expected: the tester builds with Clang 22 or later, as it does with the CI's Clang, and Skia renders as it does now.
Seen: the build stops in the pinned Skia's skcms on use of undeclared identifier '__builtin_ia32_vcvtph2ps256' (the log under Stacktrace or Logs). The reproducer's other cases add -DSKCMS_NO_RUNTIME_CPU_DETECTION to the Skia extra_cflags in private/react-native-fantom/tester/third-party/skia/CMakeLists.txt, which leaves out that AVX2 path, and with it the same build succeeds.
React Native Version
main at 1273ca1 (0.90.0-nightly-20261111-1273ca128); 0.88 and 0.89 build no Skia into the tester
Affected Platforms
Build - Linux
Output of npx @react-native-community/cli info
The reproducer runs in Docker on Linux x64, in reactnativecommunity/react-native-android:v22.0. Its first lines:
react-native 1273ca128fa378e231dd351a65fb7d63fe0b6526, committed 2026-11-11T01:34:33+00:00
clang version 23.1.3 (https://github.com/llvm/llvm-project 0d261d1ca552c95a8f007e061c787ac7132fbcbc)
Skia 3f8fc145ba678f3bd47af50f8fb51bcde474ef9c
Stacktrace or Logs
> Task :private:react-native-fantom:buildFantomTester FAILED
* What went wrong:
Execution failed for task ':private:react-native-fantom:buildFantomTester'.
> Process 'command '/opt/android/cmake/3.30.5/bin/cmake'' finished with non-zero exit value 2
../../../third-party/skia/third_party/skcms/src/Transform_inl.h:169:12: error: use of undeclared identifier '__builtin_ia32_vcvtph2ps256'; did you mean '__builtin_ia32_cvtpd2ps256'?
../../../third-party/skia/third_party/skcms/src/Transform_inl.h:169:40: error: cannot initialize a parameter of type '__attribute__((__vector_size__(4 * sizeof(double)))) double' (vector of 4 'double' values) with an rvalue of type 'I16' (vector of 8 'int16_t' values)
SUMMARY: the skcms of the tester's Skia calls __builtin_ia32_vcvtph2ps256, which Clang 23 does not declare
MANDATORY Reproducer
https://github.com/YevheniiKotyrlo/react-native-fantom-reproducer
Screenshots and Videos
No response
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.5k
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 235
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react/react-native のほかの issue
-
Needs: Author Feedback Needs: Repro
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
react/react-native#60059 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Needs: Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
react/react-native#60000 ·
メンテナーはふだん 2 日以内に返信
-
`yarn test-ios` exits before building RNTester: `objc-test.sh` launches the WebSocket server script #59433 deleted対応中かも @lazerg が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
react/react-native#59939 ·
メンテナーはふだん 2 日以内に返信
-
iOS Fabric pointer-handler reset leaves the next lone touch non-primary対応中かも @alleneubank が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
react/react-native#59919 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
react/react-native#59722 ·
メンテナーはふだん 2 日以内に返信
react/react-native の issue をすべて見る
似ている issue
-
crash generated by fuzzer mlir
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
llvm/llvm-project#243218 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
petercorke/robotics-toolbox-python#943 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
realtime
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
NVIDIA/cuda-quantum#5913 ·
メンテナーはふだん 1 日以内に返信
-
category:port-update
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
area:build bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
NatronGitHub/openfx-arena#71 ·
メンテナーはふだん 1 日以内に返信