Title: microxrcedds_agent.so fails to link in cross environment · Issue #258 · micro-ROS/micro-ROS-Agent · GitHub
Open Graph Title: microxrcedds_agent.so fails to link in cross environment · Issue #258 · micro-ROS/micro-ROS-Agent
X Title: microxrcedds_agent.so fails to link in cross environment · Issue #258 · micro-ROS/micro-ROS-Agent
Description: Describe the bug I tried using a cross compile workflow for Micro ROS Agent and it has linker errors. To Reproduce Steps to reproduce the behaviour: Clone repo on this branch and follow the dockerized instructions: https://github.com/Rya...
Open Graph Description: Describe the bug I tried using a cross compile workflow for Micro ROS Agent and it has linker errors. To Reproduce Steps to reproduce the behaviour: Clone repo on this branch and follow the dockeri...
X Description: Describe the bug I tried using a cross compile workflow for Micro ROS Agent and it has linker errors. To Reproduce Steps to reproduce the behaviour: Clone repo on this branch and follow the dockeri...
Opengraph URL: https://github.com/micro-ROS/micro-ROS-Agent/issues/258
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"microxrcedds_agent.so fails to link in cross environment","articleBody":"**Describe the bug**\nI tried using a cross compile workflow for Micro ROS Agent and it has linker errors.\n\n**To Reproduce**\nSteps to reproduce the behaviour:\n1. Clone repo on this branch and follow the dockerized instructions: https://github.com/Ryanf55/x-ros/tree/micro-ros-agent\n2. Compile the micro ros agent as explained\n3. Observe the following error:\n\n```\n# [ 2%] Linking CXX shared library libmicroxrcedds_agent.so\n# /usr/lib/gcc-cross/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/humble/lib/libfastrtps.so.2.6.8: error adding symbols: file in wrong format\n```\n\nThe linker is incorrectly trying to link to /opt/ros/humble/lib/libfastrtps.so.2.6.8. It should be linking to the shared library in the sysroot, not the host.\n\n**Expected behaviour**\nSuccessful compilation in a sysroot and linkage only to libraries in the sysroot. \n\n**System information (please complete the following information):**\n - OS: Host OS Ubuntu 22\n - ROS 2 humble on host OS\n- Target OS: Ubuntu 22\n\n**Additional context**\n\nI have ROS 2 humble installed on the host OS. MicroROS should compile in the sysroot and ignore all host libraries.\nBecause it does not ignore host libraries, it is finding libraries of the wrong architecture.","author":{"url":"https://github.com/Ryanf55","@type":"Person","name":"Ryanf55"},"datePublished":"2025-08-31T22:18:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/258/micro-ROS-Agent/issues/258"}
| 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:eadbe6a3-fc79-18cf-daf7-e90bfcd821e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD40:1BDD2D:1870518:1F2E1D5:69756EA6 |
| html-safe-nonce | 5db1fe1966fa976284badf8776c2fbc11a09d342d49cdccb65776cdd9a0242a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDQwOjFCREQyRDoxODcwNTE4OjFGMkUxRDU6Njk3NTZFQTYiLCJ2aXNpdG9yX2lkIjoiMzk3NzI4MzcyMzgyMzc3MTMwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 57c8b9066081d6bf534a2f73e074a5528d00939052912e030c4f9b66c35daae3 |
| hovercard-subject-tag | issue:3370728747 |
| 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/micro-ROS/micro-ROS-Agent/258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e665d4f4d8bc278ea72aa20998f86d6db51b23adf1e867a0855077e789cb8c57/micro-ROS/micro-ROS-Agent/issues/258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e665d4f4d8bc278ea72aa20998f86d6db51b23adf1e867a0855077e789cb8c57/micro-ROS/micro-ROS-Agent/issues/258 |
| og:image:alt | Describe the bug I tried using a cross compile workflow for Micro ROS Agent and it has linker errors. To Reproduce Steps to reproduce the behaviour: Clone repo on this branch and follow the dockeri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ryanf55 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/micro-ROS/micro-ROS-Agent git https://github.com/micro-ROS/micro-ROS-Agent.git |
| octolytics-dimension-user_id | 49058602 |
| octolytics-dimension-user_login | micro-ROS |
| octolytics-dimension-repository_id | 156196165 |
| octolytics-dimension-repository_nwo | micro-ROS/micro-ROS-Agent |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 156196165 |
| octolytics-dimension-repository_network_root_nwo | micro-ROS/micro-ROS-Agent |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width