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

compile error on MacOS Ventura #23

Closed
JayStolzenwald opened this issue Mar 17, 2023 · 4 comments
Closed

compile error on MacOS Ventura #23

JayStolzenwald opened this issue Mar 17, 2023 · 4 comments

Comments

@JayStolzenwald
Copy link

JayStolzenwald commented Mar 17, 2023

I'm getting this when trying to compile on MacOS Ventura 13.2.1 (Intel):

stderr: performance_test_fixture                                                                      
Undefined symbols for architecture x86_64:
  "osrf_testing_tools_cpp::memory_tools::on_unexpected_calloc(std::__1::variant<std::__1::function<void (osrf_testing_tools_cpp::memory_tools::MemoryToolsService&)>, std::__1::function<void ()>, std::nullptr_t>)", referenced from:
      performance_test_fixture::PerformanceTest::SetUp(benchmark::State&) in performance_test_fixture.cpp.o
  "osrf_testing_tools_cpp::memory_tools::on_unexpected_malloc(std::__1::variant<std::__1::function<void (osrf_testing_tools_cpp::memory_tools::MemoryToolsService&)>, std::__1::function<void ()>, std::nullptr_t>)", referenced from:
      performance_test_fixture::PerformanceTest::SetUp(benchmark::State&) in performance_test_fixture.cpp.o
  "osrf_testing_tools_cpp::memory_tools::on_unexpected_realloc(std::__1::variant<std::__1::function<void (osrf_testing_tools_cpp::memory_tools::MemoryToolsService&)>, std::__1::function<void ()>, std::nullptr_t>)", referenced from:
      performance_test_fixture::PerformanceTest::SetUp(benchmark::State&) in performance_test_fixture.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libperformance_test_fixture.dylib] Error 1
make[1]: *** [CMakeFiles/performance_test_fixture.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 13 jobserver tokens available; should be 12!

Failed   <<< performance_test_fixture [6.82s, exited with code 2]
Aborted ...
@clalancette
Copy link
Contributor

Just out of curiousity, if you use osrf/osrf_testing_tools_cpp#76 , does that help the situation at all?

@JayStolzenwald
Copy link
Author

@clalancette , this does not seem to be part of ros2 is it? Not sure how to integrate this

@clalancette
Copy link
Contributor

@clalancette , this does not seem to be part of ros2 is it? Not sure how to integrate this

It is one of the libraries we depend upon and build as part of our build instructions, yes.

@JayStolzenwald
Copy link
Author

I see this got merged only a few hours ago. Works now, thanks for the quick response, you guys are amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants