Skip to content

VM binaries for OS X no longer exporting embedding API symbols #7005

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

Closed
DartBot opened this issue Nov 28, 2012 · 6 comments
Closed

VM binaries for OS X no longer exporting embedding API symbols #7005

DartBot opened this issue Nov 28, 2012 · 6 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Milestone

Comments

@DartBot
Copy link

DartBot commented Nov 28, 2012

This issue was originally filed by [email protected]


Updating an extension for M1, I encountered a load-time error on OS X, while things continue to work on Linux and Windows.

rmacnak$ ~/Applications/dart-sdk/bin/dart Hello.dart
dyld: lazy symbol binding failed: Symbol not found: _Dart_IsError
  Referenced from: /Users/rmacnak/Code/Newspeak/libns2dart_extension.dylib
  Expected in: flat namespace

dyld: Symbol not found: _Dart_IsError
  Referenced from: /Users/rmacnak/Code/Newspeak/libns2dart_extension.dylib
  Expected in: flat namespace

Trace/BPT trap: 5

Based on the archived binaries at https://gsdview.appspot.com/dart-editor-archive-integration/, this has broken sometime between r13122 and r13391.

(r13122)
rmacnak$ nm dart | grep Dart_IsError
00007c60 T _Dart_IsError

(r13391)
rmacnak$ nm dart | grep Dart_IsError
<nothing>

@gbracha
Copy link
Contributor

gbracha commented Nov 28, 2012

Added Area-VM, Triaged labels.

@ghost
Copy link

ghost commented Nov 29, 2012

It is probably the r13298, see also issue. Assigning to Mads to see how/if we can/should export API symbols.

See issue #5544.


cc @madsager.
cc @iposva-google.

@madsager
Copy link
Contributor

I have seen issues like this if the dart binary has been built for SDK 10.5 but the extension has been built for SDK 10.7 or the other way around. Which version of MacOS are you on?

@iposva-google
Copy link
Contributor

Set owner to @iposva-google.
Added this to the M2 milestone.
Added Accepted label.

@iposva-google
Copy link
Contributor

From man strip on Mac OS X:
       For dynamic shared libraries, the maximum level of stripping is usually
       -x (to remove all non-global symbols).

Since the dart binary is exporting symbols like a shared library it needs to pass the -x option to the strip command when creating the SDK.


cc @dgrove.

@iposva-google
Copy link
Contributor

Fixed with r15504.


Added Fixed label.

@DartBot DartBot added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Nov 29, 2012
@DartBot DartBot added this to the M2 milestone Nov 29, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

4 participants