Title: Colcon build fails to undefined symbol: osrf_testing_tools_cpp · Issue #247 · ros2-java/ros2_java · GitHub
Open Graph Title: Colcon build fails to undefined symbol: osrf_testing_tools_cpp · Issue #247 · ros2-java/ros2_java
X Title: Colcon build fails to undefined symbol: osrf_testing_tools_cpp · Issue #247 · ros2-java/ros2_java
Description: Greetings, I followed the build instructions and got this error: ld.lld: error: undefined symbol: osrf_testing_tools_cpp::memory_tools::on_unexpected_calloc(std::__ndk1::variant Open Graph Description: Greetings, I followed the build instructions and got this error: ld.lld: error: undefined symbol: osrf_testing_tools_cpp::memory_tools::on_unexpected_calloc(std::__ndk1::variant X Description: Greetings, I followed the build instructions and got this error: ld.lld: error: undefined symbol: osrf_testing_tools_cpp::memory_tools::on_unexpected_calloc(std::__ndk1::variant<std::__ndk1::fun...
Opengraph URL: https://github.com/ros2-java/ros2_java/issues/247
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Colcon build fails to undefined symbol: osrf_testing_tools_cpp","articleBody":"Greetings,\r\n\r\nI followed the build instructions and got this error:\r\n\r\n```bash\r\nld.lld: error: undefined symbol: osrf_testing_tools_cpp::memory_tools::on_unexpected_calloc(std::__ndk1::variant\u003cstd::__ndk1::function\u003cvoid (osrf_testing_tools_cpp::memory_tools::MemoryToolsService\u0026)\u003e, std::__ndk1::function\u003cvoid ()\u003e, std::nullptr_t\u003e)\r\n\u003e\u003e\u003e referenced by performance_test_fixture.cpp:57 (/home/x/ros2_android_ws/src/ros2/performance_test_fixture/src/performance_test_fixture.cpp:57)\r\n\u003e\u003e\u003e CMakeFiles/performance_test_fixture.dir/src/performance_test_fixture.cpp.o:(performance_test_fixture::PerformanceTest::SetUp(benchmark::State\u0026))\r\n\r\nld.lld: error: undefined symbol: osrf_testing_tools_cpp::memory_tools::on_unexpected_malloc(std::__ndk1::variant\u003cstd::__ndk1::function\u003cvoid (osrf_testing_tools_cpp::memory_tools::MemoryToolsService\u0026)\u003e, std::__ndk1::function\u003cvoid ()\u003e, std::nullptr_t\u003e)\r\n\u003e\u003e\u003e referenced by performance_test_fixture.cpp:60 (/home/x/ros2_android_ws/src/ros2/performance_test_fixture/src/performance_test_fixture.cpp:60)\r\n\u003e\u003e\u003e CMakeFiles/performance_test_fixture.dir/src/performance_test_fixture.cpp.o:(performance_test_fixture::PerformanceTest::SetUp(benchmark::State\u0026))\r\n\r\nld.lld: error: undefined symbol: osrf_testing_tools_cpp::memory_tools::on_unexpected_realloc(std::__ndk1::variant\u003cstd::__ndk1::function\u003cvoid (osrf_testing_tools_cpp::memory_tools::MemoryToolsService\u0026)\u003e, std::__ndk1::function\u003cvoid ()\u003e, std::nullptr_t\u003e)\r\n\u003e\u003e\u003e referenced by performance_test_fixture.cpp:63 (/home/x/ros2_android_ws/src/ros2/performance_test_fixture/src/performance_test_fixture.cpp:63)\r\n\u003e\u003e\u003e CMakeFiles/performance_test_fixture.dir/src/performance_test_fixture.cpp.o:(performance_test_fixture::PerformanceTest::SetUp(benchmark::State\u0026))\r\nclang++: error: linker command failed with exit code 1 (use -v to see invocation)\r\ngmake[2]: *** [CMakeFiles/performance_test_fixture.dir/build.make:103: libperformance_test_fixture.so] Error 1\r\ngmake[1]: *** [CMakeFiles/Makefile2:160: CMakeFiles/performance_test_fixture.dir/all] Error 2\r\ngmake: *** [Makefile:146: all] Error 2\r\n---\r\nFailed \u003c\u003c\u003c performance_test_fixture [0.90s, exited with code 2]\r\n```\r\n\r\nHow should I resolve it?\r\n\r\nI'm using ROS2 Humble, Ubuntu 22.04, Python 3.10.12. Android NDK r27b (27.1.12297006), Android 34 (I guess).\r\n\r\n```$ gradle --version\r\n\r\n------------------------------------------------------------\r\nGradle 8.7\r\n------------------------------------------------------------\r\n\r\nBuild time: 2024-03-22 15:52:46 UTC\r\nRevision: 650af14d7653aa949fce5e886e685efc9cf97c10\r\n\r\nKotlin: 1.9.22\r\nGroovy: 3.0.17\r\nAnt: Apache Ant(TM) version 1.10.13 compiled on January 4 2023\r\nJVM: 21.0.4 (Oracle Corporation 21.0.4+8-LTS-274)\r\nOS: Linux 6.8.0-45-generic amd64\r\n```\r\n\r\n\r\nThere is a similar build error here (on macOS): https://github.com/ros2/ros2/issues/1398\r\n\r\nThere is a plan B to use this: https://github.com/YasuChiba/ros2-android-build","author":{"url":"https://github.com/Hyrtsi","@type":"Person","name":"Hyrtsi"},"datePublished":"2024-10-15T10:55:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/247/ros2_java/issues/247"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:edc563dd-ff13-d08b-2150-72afe2ead98b current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 8868:255DB9:4340DA:5759D0:697F406C html-safe-nonce 7cf0c8ca8902b18ddd6428932ad65d7a42502a38a1fc417b8efab2eb1131007b visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODY4OjI1NURCOTo0MzQwREE6NTc1OUQwOjY5N0Y0MDZDIiwidmlzaXRvcl9pZCI6IjQxOTIwMzc0NDAxNTM2NjU2NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 52aeeb9b06f9d6b508c847352742a31218c19c4809c9bf3003b70f5454d8edb7 hovercard-subject-tag issue:2588399635 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ros2-java/ros2_java/247/issue_layout twitter:image https://opengraph.githubassets.com/5b9f91dce1e5ab31750cd6dc5e77cd6d23c676ec40e82e6ce6f2b387a95e7fe5/ros2-java/ros2_java/issues/247 twitter:card summary_large_image og:image https://opengraph.githubassets.com/5b9f91dce1e5ab31750cd6dc5e77cd6d23c676ec40e82e6ce6f2b387a95e7fe5/ros2-java/ros2_java/issues/247 og:image:alt Greetings, I followed the build instructions and got this error: ld.lld: error: undefined symbol: osrf_testing_tools_cpp::memory_tools::on_unexpected_calloc(std::__ndk1::variant og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username Hyrtsi hostname github.com expected-hostname github.com None 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 turbo-cache-control no-preview go-import github.com/ros2-java/ros2_java git https://github.com/ros2-java/ros2_java.git octolytics-dimension-user_id 23436176 octolytics-dimension-user_login ros2-java octolytics-dimension-repository_id 52850323 octolytics-dimension-repository_nwo ros2-java/ros2_java octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 52850323 octolytics-dimension-repository_network_root_nwo ros2-java/ros2_java turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 7c85641c598ad130c74f7bcc27f58575cac69551 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.