SpinalHDL / openocd_riscv

Spen's Official OpenOCD Mirror
Other
47 stars 34 forks source link

yaml.h: No such file or directory when building openocd #32

Open MartinaBarreiroGuerra opened 1 year ago

MartinaBarreiroGuerra commented 1 year ago

Hi I'm trying building for windows using cross-compiler but I have a problem with the library yaml.h. Have you are any idea for this problem?

Thank you

MartinaBarreiroGuerra commented 1 year ago

/home/martina/riscv/openocd-mingw-w64-vexriscv/work/openocd-vexriscv/src/target/vexriscv.c:28:10: fatal error: yaml.h: No existe el archivo o el directorio 28 | #include | ^~~~ compilation terminated. make[2]: [Makefile:4466: src/target/libtarget_la-vexriscv.lo] Error 1 make[2]: Se espera a que terminen otras tareas.... mv -f src/target/.deps/libtarget_la-hla_target.Tpo src/target/.deps/libtarget_la-hla_target.Plo mv -f src/target/.deps/libtarget_la-dsp5680xx.Tpo src/target/.deps/libtarget_la-dsp5680xx.Plo mv -f src/target/.deps/libtarget_la-armv8_dpm.Tpo src/target/.deps/libtarget_la-armv8_dpm.Plo make[2]: se sale del directorio '/home/martina/riscv/openocd-mingw-w64-vexriscv/work/build/win32/openocd' make[1]: [Makefile:4857: all-recursive] Error 1 make[1]: se sale del directorio '/home/martina/riscv/openocd-mingw-w64-vexriscv/work/build/win32/openocd' make: [Makefile:2014: all] Error 2

Dolu1990 commented 1 year ago

On Debian based linux it come from the libyaml-dev package. On mingw it maybe from : https://packages.msys2.org/package/mingw-w64-x86_64-libyaml ?

acillatems commented 1 year ago

on Mingw libyaml-dev can be found from: https://packages.msys2.org/package/libyaml-devel?repo=msys&variant=x86_64