Issue trying to build 0.63-stable branch
tomtargosz opened this issue · comments
Bug report
Summary
I'm trying to run docker run --rm --name rn-build -v $PWD:/pwd -w /pwd reactnativecommunity/react-native-android /bin/sh -c "./gradlew installArchives"
on my fork of react-native (0.63-stable branch) and it's failing
Environment info
react-native info
output:
# paste it here
Library version: 0.63-stable
Steps to reproduce
- Create a fork of react-native's 0.63-stable branch
- Run
docker run --rm --name rn-build -v $PWD:/pwd -w /pwd reactnativecommunity/react-native-android /bin/sh -c "./gradlew installArchives"
Describe what you expected to happen:
- The build completes
Reproducible sample code
Here's the error output:
Downloading https://services.gradle.org/distributions/gradle-6.2-all.zip
.............10%.............20%.............30%..............40%.............50%.............60%.............70%..............80%.............90%.............100%
Welcome to Gradle 6.2!
Here are the highlights of this release:
- Dependency checksum and signature verification
- Documentation links in deprecation messages
- Shareable read-only dependency cache
For more details see https://docs.gradle.org/6.2/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :ReactAndroid
File /root/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 28.0.3 in /opt/android/licenses
License for package Android SDK Build-Tools 28.0.3 accepted.
Preparing "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)".
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" ready.
Installing Android SDK Build-Tools 28.0.3 in /opt/android/build-tools/28.0.3
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" complete.
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" finished.
> Task :ReactAndroid:androidJavadoc UP-TO-DATE
> Task :ReactAndroid:androidJavadocJar UP-TO-DATE
> Task :ReactAndroid:androidSourcesJar UP-TO-DATE
> Task :ReactAndroid:preBuild UP-TO-DATE
> Task :ReactAndroid:preReleaseBuild UP-TO-DATE
> Task :ReactAndroid:compileReleaseAidl NO-SOURCE
> Task :ReactAndroid:checkReleaseManifest UP-TO-DATE
> Task :ReactAndroid:compileReleaseRenderscript NO-SOURCE
> Task :ReactAndroid:generateReleaseBuildConfig UP-TO-DATE
> Task :ReactAndroid:generateReleaseResValues UP-TO-DATE
> Task :ReactAndroid:generateReleaseResources UP-TO-DATE
> Task :ReactAndroid:packageReleaseResources UP-TO-DATE
> Task :ReactAndroid:parseReleaseLibraryResources UP-TO-DATE
> Task :ReactAndroid:processReleaseManifest UP-TO-DATE
> Task :ReactAndroid:javaPreCompileRelease UP-TO-DATE
> Task :ReactAndroid:extractAARHeaders
> Task :ReactAndroid:extractJNIFiles
> Task :ReactAndroid:createNativeDepsDirectories UP-TO-DATE
> Task :ReactAndroid:downloadBoost UP-TO-DATE
> Task :ReactAndroid:prepareBoost UP-TO-DATE
> Task :ReactAndroid:downloadDoubleConversion UP-TO-DATE
> Task :ReactAndroid:prepareDoubleConversion UP-TO-DATE
> Task :ReactAndroid:downloadFolly UP-TO-DATE
> Task :ReactAndroid:prepareFolly UP-TO-DATE
> Task :ReactAndroid:downloadGlog UP-TO-DATE
> Task :ReactAndroid:prepareGlog UP-TO-DATE
> Task :ReactAndroid:prepareHermes UP-TO-DATE
> Task :ReactAndroid:generateReleaseRFile
> Task :ReactAndroid:prepareJSC
> Task :ReactAndroid:buildReactNdkLib
make: Entering directory `/pwd/ReactAndroid/src/main/jni/react/jni'
[armeabi-v7a] Compile++ thumb: hermes-executor-debug <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Inspector.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Thread.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Connection.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= ConnectionDemux.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageConverters.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageTypes.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Registration.cpp
/pwd/ReactAndroid/src/main/java/com/facebook/react/../hermes/reactexecutor/OnLoad.cpp:43:8: error: no member named 'withES6Proxy' in 'hermes::vm::RuntimeConfig::Builder'
.withES6Proxy(es6Proxy)
^
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RemoteObjectsTable.cpp
1 error generated.
make: *** [/pwd/ReactAndroid/build/tmp/buildReactNdkLib/local/armeabi-v7a/objs/hermes-executor-debug//pwd/ReactAndroid/src/main/java/com/facebook/react/__/hermes/reactexecutor/OnLoad.o] Error 1
make: *** Waiting for unfinished jobs....
/pwd/ReactAndroid/../ReactCommon/hermes/inspector/Inspector.cpp:198:23: error: no member named 'AsyncPauseKind' in namespace 'facebook::hermes::debugger'
? debugger::AsyncPauseKind::Implicit
~~~~~~~~~~^
/pwd/ReactAndroid/../ReactCommon/hermes/inspector/Inspector.cpp:199:23: error: no member named 'AsyncPauseKind' in namespace 'facebook::hermes::debugger'
: debugger::AsyncPauseKind::Explicit);
~~~~~~~~~~^
2 errors generated.
make: *** [/pwd/ReactAndroid/build/tmp/buildReactNdkLib/local/armeabi-v7a/objs/hermes-inspector//pwd/ReactAndroid/__/ReactCommon/hermes/inspector/Inspector.o] Error 1
make: Leaving directory `/pwd/ReactAndroid/src/main/jni/react/jni'
> Task :ReactAndroid:buildReactNdkLib FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ReactAndroid:buildReactNdkLib'.
> Process 'command '/opt/android/ndk/20.0.5594570/ndk-build'' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2m 47s
23 actionable tasks: 5 executed, 18 up-to-date
Didn't run yarn install
within my react-native fork 🤦 That's what I get for skipping coffee this morning.