Shopify / Shopify/mruby-engine

Build error at value_guest.c:73

Đang mở
#32 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
C
Star
81
Fork
19
Merge trung bình
12 ngày 4 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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...]

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với README.md và tái hiện lệnh được báo cáo, ./bin/rake spec --trace, bằng môi trường GCC được liệt kê. Kiểm tra ext/mruby_engine/value_guest.c quanh dòng 73 và các header mruby được include; hoàn tất khi engine build vượt qua lỗi này và lệnh spec hoàn thành.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
c
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.