-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Android][Linux] Building master RNTester on Linux fails while building Folly #28298
Comments
I kludged around this by overwriting
|
|
I have this problem on MacOS as well. I think the underlying problem is that Folly doesn't know which signature of I adapted the solution @willholen into something that'll stick between builds: Replace def follyReplaceContent = '''
ssize_t r;
do {
r = open(name, flags, mode);
} while (r == -1 && errno == EINTR);
return r;
'''
task prepareFolly(dependsOn: dependenciesPath ? [] : [downloadFolly], type: Copy) {
from(dependenciesPath ?: tarTree(downloadFolly.dest))
from("src/main/jni/third-party/folly/Android.mk")
include("folly-${FOLLY_VERSION}/folly/**/*", "Android.mk")
eachFile { fname -> fname.path = (fname.path - "folly-${FOLLY_VERSION}/") }
// Fixes problem with Folly failing to build on certain systems. See
// https://github.com/facebook/react-native/issues/28298
filter { line -> line.replaceAll('return int\\(wrapNoInt\\(open, name, flags, mode\\)\\);', follyReplaceContent) }
includeEmptyDirs = false
into("$thirdPartyNdkDir/folly")
} |
Fixes #1024 Solution was taken from facebook/react-native#28298. Change wrapNoInt template function invocation to it's code, after downloading folly
* Use react-native/sdk-39 branch * Use react@16.13.1, react-dom@16.13.1, react-native@0.63.0 * Updated podfiles * bare-expo pod install * Remove unused template properties from bare-expo android * [WIP] Folly * exponent pod install * [android] Cast ids to int in transformer * [WIP] upgrade android * et update-react-native * [ios] Add upstream AsyncStorage module to bare project - Same as RNTester does in expo/react-native@bd13960 - This fixes the error: `Error: Requiring module "../../react-native-lab/react-native/Libraries/Storage/AsyncStorage.js", which threw an exception: TypeError: null is not an object (evaluating 'RCTAsyncStorage.multiMerge')` * [android] Fix Linking and AsyncStorage client bug * Upgrade react-native-web * Upgrade react-native * et update-react-native * pod install * pod-install client * Update yarn.lock * pod install * Try folly fix proposed in facebook/react-native#28298 * [ReactAndroid] Use folly patch facebook/react-native#28298 * pod-install * pod install
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
As of the latest master ~1 week ago, this is still an issue. Perhaps updating |
Checked Folly's master it looks like it still has this. Should this be raised with Folly? |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Can someone give it another try. I've been pushing a lot of changes to the NDK setup recently and I believe folly + NDK21 + Linux setup should be good to go 👍 |
* Use react-native/sdk-39 branch * Use react@16.13.1, react-dom@16.13.1, react-native@0.63.0 * Updated podfiles * bare-expo pod install * Remove unused template properties from bare-expo android * [WIP] Folly * exponent pod install * [android] Cast ids to int in transformer * [WIP] upgrade android * et update-react-native * [ios] Add upstream AsyncStorage module to bare project - Same as RNTester does in expo/react-native@bd13960 - This fixes the error: `Error: Requiring module "../../react-native-lab/react-native/Libraries/Storage/AsyncStorage.js", which threw an exception: TypeError: null is not an object (evaluating 'RCTAsyncStorage.multiMerge')` * [android] Fix Linking and AsyncStorage client bug * Upgrade react-native-web * Upgrade react-native * et update-react-native * pod install * pod-install client * Update yarn.lock * pod install * Try folly fix proposed in facebook/react-native#28298 * [ReactAndroid] Use folly patch facebook/react-native#28298 * pod-install * pod install
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. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description:
I'm on the latest git commit, and RNTester fails to build on Linux:
React Native version:
Git master, commit 5ebca70 from Mar 12 (Android SDK downloaded today, commandlinetools-linux-6200805_latest.zip)
Steps To Reproduce
Expected Results
I expected RNTester to run
Snack, code example, screenshot, or link to a repository:
https://github.com/facebook/react-native/
The first commit that fails is 6e2131b, "Upgrade Folly to v2020.01.13.00 (#27811)". The preceding commit, a3cb377, builds successfully.
The text was updated successfully, but these errors were encountered: