Skip to content

libhermesvm-config.h cannot be found when compiling. #1686

@Please-just-dont

Description

@Please-just-dont

So when I do shermes ./my_javascript_source.js I get the error with the inclue:

#include "libhermesvm-config.h"

I can step through the code and see what is happening. The Javascript is compiled into C. A temporary C file is created called my_javascript_source.js-3289d8.c which looks like:

#include "hermes/VM/static_h.h"
#include <stdlib.h>

/* REST OF C CODE */

And I think that hermes/VM/static_h.h being included is the problem, or a transitively included file.

Here is the full error:

In file included from /media/moe/14E610DDE610C142/MyProgrammingFiles/Deps/hermes-static_h/include/hermes/VM/sh_legacy_value.h:113,
from /media/moe/14E610DDE610C142/MyProgrammingFiles/Deps/hermes-static_h/include/hermes/VM/static_h.h:12,
from /tmp/my_javascript_source.js-3289d8.c:2:
/media/moe/14E610DDE610C142/MyProgrammingFiles/Deps/hermes-static_h/include/hermes/VM/sh_config.h:11:10: fatal error: libhermesvm-config.h: No such file or directory
11 | #include "libhermesvm-config.h"

I built my project by simply doing add_subdirectory on the main respository folder, and generally things are working OK (the include paths seems to have been taken care of).

I am on latest version of Linux Mint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions