react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Undefined symbols for architecture x86_64: "_jump_fcontext" & "_make_fcontext"

Open rahulgpt1 opened this issue 3 years ago • 4 comments

    > @rahulgpt1 there is no expectation this will work below react-native 0.69.1

The patch put into 0.69.1 explicitly defines those symbols via linker directives

Hi Mike,

As you said hermes wouldn't work in RN version 0.68.2, but you people resolved this issue in RN version 0.69.1 so I updated my RN version to 0.69.1 but it still gives the same error undefined symbol for "_jump_fcontext" & "_make_fcontext".

See the attached screenshot: Hermes_Undefined_Symbol

System Detail:

  1. MacOS Monterey (12.2.1)
  2. MacBook Pro (M1 Chip)
  3. Xcode 13.0

Pod File Configuration Details:

  1. use_frameworks! (Not using)
  2. modular_headers => true (For some of the pods like below) pod 'CNIOLinux', '= 2.20.2',:modular_headers => true pod 'CNIODarwin', '= 2.20.2',:modular_headers => true pod 'CNIOAtomics', '= 2.20.2',:modular_headers => true pod 'CNIOSHA1', '= 2.20.2',:modular_headers => true pod 'CNIOHTTPParser', '= 2.20.2',:modular_headers => true pod 'CNIOBoringSSL','= 2.9',:modular_headers => true pod 'CNIOBoringSSLShims','= 2.9',:modular_headers => true pod 'CGRPCZlib', '= 1.0.0-alpha.18',:modular_headers => true
  3. Bitcode : (Tried both by enabling and disabling)

Thanks

Originally posted by @rahulgpt1 in https://github.com/facebook/react-native/issues/34030#issuecomment-1278516370

rahulgpt1 avatar Oct 14 '22 06:10 rahulgpt1

Please make a reproduction and post it, starting with npx react-native init ProjectName, committing that, then just committing the changes required to show the error.

I do similar and do not reproduce, via my build test harness here https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh (but with use_frameworks, so may not apply, just saying you can make a reproduction

https://stackoverflow.com/help/minimal-reproducible-example

mikehardy avatar Oct 17 '22 14:10 mikehardy

Hi Mike,

Now I am having another issue 'react/bridging/CallbackWrapper.h' file not found when building the app(whether hermes is enabled or disabled). In my project I have already applied the path for react-native+0.69.1.patch I tried https://github.com/facebook/react-native/issues/34102#issuecomment-1180727214 this solution but that doesn't work for me and also tried https://github.com/facebook/react-native/issues/34102#issuecomment-1185518186 but no luck. Please have a look on attached screenshot. RN-Callback-Wrapper-Issue

rahulgpt1 avatar Oct 18 '22 07:10 rahulgpt1

Sorry to forgot now we are using static linkage**(use_frameworks! :linkage => :static)**

rahulgpt1 avatar Oct 18 '22 07:10 rahulgpt1

With apologies this is not an open-ended tech support thread for me. I try to help when I can, but lacking reproducible examples and just looking at screenshots isn't the way. I link a reproducible example above, it works. I don't have time to participate in this discussion any more

mikehardy avatar Oct 18 '22 12:10 mikehardy

@rahulgpt1 Hi, in our team we have the same problem. Any news about this? Did you solve this? Best

javi-additio avatar Jan 17 '23 15:01 javi-additio

+1

adamsolomon1986 avatar Jan 30 '23 22:01 adamsolomon1986

We noticed that this seems to be an issue when we add the -all_load linker flag. After a bit of research it looks like this might be a folly/boost issue? Would this be resolved by updating boost?

dave-hunter-shopify avatar Feb 01 '23 22:02 dave-hunter-shopify

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 02 '23 05:08 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Aug 13 '23 05:08 github-actions[bot]