Shopify / Shopify/mruby-engine

Build error at value_guest.c:73

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

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

主要言語
C
スター
81
フォーク
19
平均マージ
12日 4時間
マージ済み PR(30日)
1

説明

Hello.
I'm trying to build engine as its described in Readme.md, but I've encountered an error:
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc-multilib/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.3.1 20170109 (GCC)

./bin/rake spec --trace
** Invoke spec (first_time)
** Invoke compile (first_time)
** Invoke compile:x86_64-linux (first_time)
** Invoke compile:mruby_engine:x86_64-linux (first_time)
** Invoke copy:mruby_engine:x86_64-linux:2.4.0 (first_time)
** Invoke lib/mruby_engine (first_time, not_needed)
** Invoke tmp/x86_64-linux/mruby_engine/2.4.0/mruby_engine.so (first_time)
** Invoke tmp/x86_64-linux/mruby_engine/2.4.0/Makefile (first_time, not_needed)
** Invoke tmp/x86_64-linux/mruby_engine/2.4.0 (first_time, not_needed)
** Invoke ext/mruby_engine/extconf.rb (first_time, not_needed)
** Invoke ext/mruby_engine/dlmalloc.c (first_time, not_needed)
** Invoke ext/mruby_engine/eval_monitored.c (first_time, not_needed)
** Invoke ext/mruby_engine/eval_unmonitored.c (first_time, not_needed)
** Invoke ext/mruby_engine/ext.c (first_time, not_needed)
** Invoke ext/mruby_engine/host.c (first_time, not_needed)
** Invoke ext/mruby_engine/libunwind_test.c (first_time, not_needed)
** Invoke ext/mruby_engine/memory_pool.c (first_time, not_needed)
** Invoke ext/mruby_engine/memory_pool_test.c (first_time, not_needed)
** Invoke ext/mruby_engine/mruby_engine.c (first_time, not_needed)
** Invoke ext/mruby_engine/platform_darwin.c (first_time, not_needed)
** Invoke ext/mruby_engine/platform_linux.c (first_time, not_needed)
** Invoke ext/mruby_engine/value_guest.c (first_time, not_needed)
** Invoke ext/mruby_engine/value_host.c (first_time, not_needed)
** Execute tmp/x86_64-linux/mruby_engine/2.4.0/mruby_engine.so
cd tmp/x86_64-linux/mruby_engine/2.4.0
/bin/make
compiling ../../../../ext/mruby_engine/value_guest.c
In file included from /usr/include/mruby/proc.h:71:0,
from ../../../../ext/mruby_engine/mruby_engine_private.h:7,
from ../../../../ext/mruby_engine/value_guest.c:1:
../../../../ext/mruby_engine/value_guest.c: In function ‘me_value_to_host_r’:
../../../../ext/mruby_engine/value_guest.c:73:38: error: dereferencing pointer to incomplete type ‘struct kh_ht’
for (int i = kh_begin(kh), f = kh_end(kh); i < f; ++i) {
^
make: *** [Makefile:242: value_guest.o] Error 1
rake aborted!
Command failed with status (2): [/bin/make...]

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

調査の方向性

README.md から始め、記載された GCC 環境を使用して、報告されたコマンド ./bin/rake spec --trace を再現します。73 行目付近の ext/mruby_engine/value_guest.c と、含まれている mruby ヘッダーを調査します。このエラーを越えてエンジンのビルドが進み、spec コマンドが完了すれば完了です。

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

評価

技術スタック
c
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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