Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Building from the release tag v0.1.1 will fail with errors

オープン
#94 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cmake, cpp, git, rust

調査の方向性

issue に記載された v0.1.1 の clone と CMake コマンドを使って失敗を再現し、次に src/lib.rs の 78 行目と、その tag が参照している submodule のリビジョンを調べます。それらを現在の main の commit およびその submodule と比較します。v0.1.1 のクリーンな checkout が正常にビルドできるか、または必要に応じて release tag が修正されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I tried building from the release tag v0.1.1 like this:

git clone --depth 1 --branch v0.1.1 --recurse-submodules https://github.com/mlc-ai/tokenizers-cpp tokenizers-cpp-0.1.1
cmake -S tokenizers-cpp-0.1.1 -B tokenizers-cpp-0.1.1/build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build tokenizers-cpp-0.1.1/build

, and the build fails with the error below.

error[E0308]: mismatched types
   --> src/lib.rs:78:53
    |
 78 |         let mut tokenizer = Tokenizer::new(BPE::new(vocab, merges));
    |                                            -------- ^^^^^ expected `AHashMap<String, u32>`, found `HashMap<String, u32>`
    |                                            |
    |                                            arguments to this function are incorrect
    |
    = note: expected struct `ahash::hash_map::AHashMap<std::string::String, u32>`
               found struct `HashMap<std::string::String, u32>`

It seems that the submodules referenced in this release tag are not compatible with the source code at the same tag.

The build succeeds at the current main, but building from main is error-prone, so I ended up building from the current commit of main, but I'm not sure if I'm picking up something that is not supposed to be in the v0.1.1 release.

git clone https://github.com/mlc-ai/tokenizers-cpp tokenizers-cpp-0.1.1
cd tokenizers-cpp-0.1.1
git checkout acbdc5a2
git submodule update --init
cd ..

It might be a good idea to move the release tag to the commit that fixed those dependencies.

主要言語
C++
スター
512
フォーク
132
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mlc-ai/tokenizers-cpp のほかの issue

mlc-ai/tokenizers-cpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。