Shopify / Shopify/mruby-engine

Build error at value_guest.c:73

Abierto
#32 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
C
Estrellas
81
Forks
19
Merge medio
12 d 4 h
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con README.md y reproduce el comando reportado, ./bin/rake spec --trace, utilizando el entorno GCC indicado. Inspecciona ext/mruby_engine/value_guest.c alrededor de la línea 73 y los encabezados mruby incluidos; se considera terminado cuando el motor compila más allá de este error y el comando spec finaliza.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
c
Área
build-system
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.