Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hqzing
Copy link
Contributor

@hqzing hqzing commented Sep 19, 2025

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

On the OpenHarmony platform, if I use a Node.js that is statically linked with libc++ (built with the --partly-static parameter) to load rollup, it works smoothly.

However, if I use a Node.js that is dynamically linked with libc++ (built with the default parameters) to load rollup, it will encounter the following error:

Error relocating /data/node_modules/@rollup/rollup-openharmony-arm64/rollup.openharmony-arm64.node: __emutls_get_address: symbol not found

To avoid this error, we have two options to choose from:

  1. Disable local_dynamic_tls for OpenHarmony.
  2. Link libc++ into rollup (refer to here: https://ohos.rs/docs/more/emu-tls.html).

To improve the compatibility of rollup on OpenHarmony and reduce maintenance costs, I chose option 1. This solution also refers to the handling in rolldown(rolldown/rolldown#5258).

Copy link

vercel bot commented Sep 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rollup Ready Ready Preview Comment Sep 19, 2025 1:54am

Copy link

codecov bot commented Sep 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.74%. Comparing base (7471074) to head (794ed1c).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6115   +/-   ##
=======================================
  Coverage   98.74%   98.74%           
=======================================
  Files         271      271           
  Lines       10641    10641           
  Branches     2848     2848           
=======================================
  Hits        10507    10507           
  Misses         89       89           
  Partials       45       45           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this!

@lukastaegert lukastaegert added this pull request to the merge queue Sep 19, 2025
Merged via the queue into rollup:master with commit 9265955 Sep 19, 2025
44 checks passed
@hqzing hqzing deleted the disable_tls branch September 19, 2025 07:31
Copy link

This PR has been released as part of [email protected]. You can test it via npm install rollup.

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

Successfully merging this pull request may close these issues.

2 participants