fatal error: ffi.h: No such file or directory despite libffi being enabled

Zopolis0 creatorsmithmdt@gmail.com
Tue May 17 06:12:46 GMT 2022


That's what I was doing, with --enable-languages=java.

On Mon, May 16, 2022 at 11:06 AM Zopolis0 <creatorsmithmdt@gmail.com> wrote:

> While attempting to compile gcj on my mster branch (
> https://github.com/Zopolis4/gcj/tree/mster) , the compilation fails
> because several files within libjava are unable to include ffi.h because
> they cannot find it.
> In file included from ../../../../gcj/libjava/defineclass.cc:24:
> ../../../../gcj/libjava/include/java-interp.h:40:10: fatal error: ffi.h:
> No such file or directory
>    40 | #include <ffi.h>
>       |          ^~~~~~~
> This is despite, as far as I can tell, the compilation of libffi being
> enabled as part of libjava in makefile.def.
>


More information about the Gcc-help mailing list