Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: no member named 'makeHandleInParentScope' in 'hermes::vm::Runtime' #436

Closed
yurivict opened this issue Dec 17, 2020 · 10 comments
Closed
Labels
community-support-needed Facebook can't provide direct support for this issue, it is up to the community need more info Awating additional info before proceeding

Comments

@yurivict
Copy link

usr/ports/lang/hermes/work/hermes-0.7.2/lib/VM/JSProxy.cpp:69:19: error: no member named 'makeHandleInParentScope' in 'hermes::vm::Runtime'
  return runtime->makeHandleInParentScope<Callable>(std::move(trapVal->get()));
         ~~~~~~~  ^
/usr/ports/lang/hermes/work/hermes-0.7.2/lib/VM/JSProxy.cpp:69:43: error: 'Callable' does not refer to a value
  return runtime->makeHandleInParentScope<Callable>(std::move(trapVal->get()));
                                          ^
/usr/ports/lang/hermes/work/hermes-0.7.2/include/hermes/VM/Callable.h:136:7: note: declared here
class Callable : public JSObject {
      ^
2 errors generated.

Version: 0.7.2
clang-10

@mhorowitz
Copy link
Contributor

It looks like the release tag wasn't updated to include a final cherry pick. If you build ae3597e it should work. I'll see about getting the tag fixed.

@yurivict
Copy link
Author

The latest commit also fails: #388

This patch makes it build:

--- external/llvh/CMakeLists.txt.orig   2020-12-17 03:26:48 UTC
+++ external/llvh/CMakeLists.txt
@@ -27,4 +27,4 @@ add_subdirectory(lib)
 add_subdirectory(utils/FileCheck)
 add_subdirectory(utils/not)
 add_subdirectory(utils/count)
-add_subdirectory(utils/unittest)
+#add_subdirectory(utils/unittest)

But tests still fail:

ld: error: unable to find library -lgtest_main
ld: error: unable to find library -lgtest

It would be best to use external gtest.

@mhorowitz mhorowitz added the community-support-needed Facebook can't provide direct support for this issue, it is up to the community label Dec 18, 2020
@mhorowitz
Copy link
Contributor

As discussed in #347 (comment), the Hermes team doesn't have the resources to support FreeBSD. However, we would welcome PRs with fixes for any issues found there.

@yurivict
Copy link
Author

@mhorowitz What led you to think that this has something to do with FreeBSD?

@mhorowitz
Copy link
Contributor

The previous five PRs you've submitted were all FreeBSD. I don't believe this is an all-platforms bug, as our CI tests are passing (except for one which is not related to this).

If the problem is not on FreeBSD, can you post what OS and CPU you are building for, and how to repro the failure. Thanks!

@yurivict
Copy link
Author

yurivict commented Dec 18, 2020

There are 2 problems:

  • utils/unittest is unconditionally built when tests aren't enabled
  • It fails to find the installed gtest library during cmake, despite pkg-config finding gtest_main fine.

Both problems seem to have nothing to do with FreeBSD. Rather, they are general coding defects.

@mhorowitz
Copy link
Contributor

Can you please give instructions to reproduce? The tests pass on Linux, MacOS, and Windows, so reproduction instructions would help.

@yurivict
Copy link
Author

From my description, cmake scripts don't use pkg-config to find gtest_main. Despite that failure, it still works on some platforms, but this doesn't mean that there is no problem. gtest_main should be found and discovered paths used.

@mhorowitz mhorowitz added the need more info Awating additional info before proceeding label Dec 18, 2020
@tmikov
Copy link
Contributor

tmikov commented Dec 18, 2020

@yurivict gtest is included with Hermes, so cmake should not be using pkg-config to find it.

@Huxpro
Copy link
Contributor

Huxpro commented Dec 21, 2020

As for the tagging issue. I've updated the tag v0.7.2 to include the final cherry-pick ;)

@tmikov tmikov closed this as completed Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-support-needed Facebook can't provide direct support for this issue, it is up to the community need more info Awating additional info before proceeding
Projects
None yet
Development

No branches or pull requests

4 participants