facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.25k stars 24.34k forks source link

got 2 errors of gradle when running new arch for the first time #34306

Closed SectionTN closed 2 years ago

SectionTN commented 2 years ago

Description

when running new arch for the first time, i got two errors: Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED Task :app:generateCodegenSchemaFromJavaScript FAILED

Version

0.69.3

Output of npx react-native info

System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
    CPU: (4) x64 Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
    Memory: 671.46 MB / 3.71 GB
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: Not Found
    Yarn: Not Found
    npm: Not Found
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
  IDEs:
    Android Studio: AI-212.5712.43.2112.8609683
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.69.3 => 0.69.3 
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

  1. Changed newArchEnabled to true

Snack, code example, screenshot, or link to a repository

FULL STACKTRACE:

yarn android
yarn run v1.22.19
$ react-native run-android
warn Package react-native-flipper contains invalid configuration: "dependency.platforms.ios.project" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1451 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
* daemon not running; starting now at tcp:5037
* daemon started successfully
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :lottie-react-native
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

> Configure project :react-native-firebase_analytics
:react-native-firebase_analytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_analytics:firebase.bom using default value: 30.3.0
:react-native-firebase_analytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_analytics:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_analytics:android.compileSdk using custom value: 33
:react-native-firebase_analytics:android.targetSdk using custom value: 33
:react-native-firebase_analytics:android.minSdk using custom value: 24
:react-native-firebase_analytics:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:firebase.bom using default value: 30.3.0
:react-native-firebase_app:play.play-services-auth using default value: 20.2.0
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_app:android.compileSdk using custom value: 33
:react-native-firebase_app:android.targetSdk using custom value: 33
:react-native-firebase_app:android.minSdk using custom value: 24
:react-native-firebase_app:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_app-check
:react-native-firebase_app-check package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app-check/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app-check:firebase.bom using default value: 30.3.0
:react-native-firebase_app-check package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app-check/package.json
:react-native-firebase_app-check:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_app-check:android.compileSdk using custom value: 33
:react-native-firebase_app-check:android.targetSdk using custom value: 33
:react-native-firebase_app-check:android.minSdk using custom value: 24
:react-native-firebase_app-check:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_auth
:react-native-firebase_auth package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_auth:firebase.bom using default value: 30.3.0
:react-native-firebase_auth package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_auth:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_auth:android.compileSdk using custom value: 33
:react-native-firebase_auth:android.targetSdk using custom value: 33
:react-native-firebase_auth:android.minSdk using custom value: 24
:react-native-firebase_auth:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_crashlytics
:react-native-firebase_crashlytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/crashlytics/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_crashlytics:firebase.bom using default value: 30.3.0
:react-native-firebase_crashlytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/crashlytics/package.json
:react-native-firebase_crashlytics:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_crashlytics:android.compileSdk using custom value: 33
:react-native-firebase_crashlytics:android.targetSdk using custom value: 33
:react-native-firebase_crashlytics:android.minSdk using custom value: 24
:react-native-firebase_crashlytics:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_database
:react-native-firebase_database package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/database/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_database:firebase.bom using default value: 30.3.0
:react-native-firebase_database package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/database/package.json
:react-native-firebase_database:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_database:android.compileSdk using custom value: 33
:react-native-firebase_database:android.targetSdk using custom value: 33
:react-native-firebase_database:android.minSdk using custom value: 24
:react-native-firebase_database:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_firestore
:react-native-firebase_firestore package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/firestore/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_firestore:firebase.bom using default value: 30.3.0
:react-native-firebase_firestore package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/firestore/package.json
:react-native-firebase_firestore:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_firestore:android.compileSdk using custom value: 33
:react-native-firebase_firestore:android.targetSdk using custom value: 33
:react-native-firebase_firestore:android.minSdk using custom value: 24
:react-native-firebase_firestore:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_storage
:react-native-firebase_storage package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/storage/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_storage:firebase.bom using default value: 30.3.0
:react-native-firebase_storage package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/storage/package.json
:react-native-firebase_storage:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_storage:android.compileSdk using custom value: 33
:react-native-firebase_storage:android.targetSdk using custom value: 33
:react-native-firebase_storage:android.minSdk using custom value: 24
:react-native-firebase_storage:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-flipper
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

> Configure project :react-native-mmkv
MMKV: node_modules/ found at: /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules
WARNING:DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.

> Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-reanimated/android/react-native-reanimated-69-hermes.aar
WARNING:The specified Android SDK Build Tools version (29.0.2) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.2.1.
Android SDK Build Tools 30.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :ReactAndroid:hermes-engine:downloadHermes
Download https://github.com/facebook/hermes/tarball/hermes-2022-05-20-RNv0.69.0-ee8941b8874132b8f83e4486b63ed5c19fc3f111

> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Configuring incomplete, errors occurred!
See also "/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log".

> Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED

> Task :app:generateCodegenSchemaFromJavaScript
Execution optimizations have been disabled for task ':app:generateCodegenSchemaFromJavaScript' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform'. Reason: Task ':app:generateCodegenSchemaFromJavaScript' uses this output of task ':ReactAndroid:extractNativeDependencies' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform'. Reason: Task ':app:generateCodegenSchemaFromJavaScript' uses this output of task ':ReactAndroid:hermes-engine:unzipHermes' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.

> Task :app:generateCodegenSchemaFromJavaScript FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
11 actionable tasks: 10 executed, 1 from cache
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:190
        throw parsingErrors[0];
        ^

UnusedModuleTypeScriptInterfaceParserError: Module NativeSafeAreaContext.d: Unused NativeModule spec. Please load the NativeModule by calling TurboModuleRegistry.get<Spec>('<moduleName>').
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:810:13
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildModuleSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:799:22)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:179:9
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:178:22)
    at Object.parseFile (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:209:10)
    at files.reduce.modules (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
    at Array.reduce (<anonymous>)
    at combineSchemas (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:71:16) {
  nodes: [
    Node {
      type: 'TSInterfaceDeclaration',
      start: 161,
      end: 588,
      loc: SourceLocation {
        start: Position { line: 3, column: 7, index: 161 },
        end: Position { line: 20, column: 1, index: 588 },
        filename: undefined,
        identifierName: undefined
      },
      id: Node {
        type: 'Identifier',
        start: 171,
        end: 175,
        loc: SourceLocation {
          start: Position { line: 3, column: 17, index: 171 },
          end: Position { line: 3, column: 21, index: 175 },
          filename: undefined,
          identifierName: 'Spec'
        },
        name: 'Spec'
      },
      typeParameters: undefined,
      extends: [
        Node {
          type: 'TSExpressionWithTypeArguments',
          start: 184,
          end: 195,
          loc: SourceLocation {
            start: [Position],
            end: [Position],
            filename: undefined,
            identifierName: undefined
          },
          expression: Node {
            type: 'Identifier',
            start: 184,
            end: 195,
            loc: [SourceLocation],
            name: 'TurboModule'
          }
        }
      ],
      body: Node {
        type: 'TSInterfaceBody',
        start: 196,
        end: 588,
        loc: SourceLocation {
          start: Position { line: 3, column: 42, index: 196 },
          end: Position { line: 20, column: 1, index: 588 },
          filename: undefined,
          identifierName: undefined
        },
        body: [
          Node {
            type: 'TSPropertySignature',
            start: 202,
            end: 586,
            loc: [SourceLocation],
            key: [Node],
            computed: false,
            typeAnnotation: [Node]
          }
        ]
      }
    }
  ]
}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
> Process 'command '/home/sectiontn/Android/Sdk//cmake/3.18.1/bin/cmake'' finished with non-zero exit value 1

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:generateCodegenSchemaFromJavaScript'.
> Process 'command 'node'' finished with non-zero exit value 1

* 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

BUILD FAILED in 4m 23s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:190
        throw parsingErrors[0];
        ^

UnusedModuleTypeScriptInterfaceParserError: Module NativeSafeAreaContext.d: Unused NativeModule spec. Please load the NativeModule by calling TurboModuleRegistry.get<Spec>('<moduleName>').
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:810:13
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildModuleSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:799:22)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:179:9
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:178:22)
    at Object.parseFile (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:209:10)
    at files.reduce.modules (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
    at Array.reduce (<anonymous>)
    at combineSchemas (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:71:16) {
  nodes: [
    Node {
      type: 'TSInterfaceDeclaration',
      start: 161,
      end: 588,
      loc: SourceLocation {
        start: Position { line: 3, column: 7, index: 161 },
        end: Position { line: 20, column: 1, index: 588 },
        filename: undefined,
        identifierName: undefined
      },
      id: Node {
        type: 'Identifier',
        start: 171,
        end: 175,
        loc: SourceLocation {
          start: Position { line: 3, column: 17, index: 171 },
          end: Position { line: 3, column: 21, index: 175 },
          filename: undefined,
          identifierName: 'Spec'
        },
        name: 'Spec'
      },
      typeParameters: undefined,
      extends: [
        Node {
          type: 'TSExpressionWithTypeArguments',
          start: 184,
          end: 195,
          loc: SourceLocation {
            start: [Position],
            end: [Position],
            filename: undefined,
            identifierName: undefined
          },
          expression: Node {
            type: 'Identifier',
            start: 184,
            end: 195,
            loc: [SourceLocation],
            name: 'TurboModule'
          }
        }
      ],
      body: Node {
        type: 'TSInterfaceBody',
        start: 196,
        end: 588,
        loc: SourceLocation {
          start: Position { line: 3, column: 42, index: 196 },
          end: Position { line: 20, column: 1, index: 588 },
          filename: undefined,
          identifierName: undefined
        },
        body: [
          Node {
            type: 'TSPropertySignature',
            start: 202,
            end: 586,
            loc: [SourceLocation],
            key: [Node],
            computed: false,
            typeAnnotation: [Node]
          }
        ]
      }
    }
  ]
}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
> Process 'command '/home/sectiontn/Android/Sdk//cmake/3.18.1/bin/cmake'' finished with non-zero exit value 1

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:generateCodegenSchemaFromJavaScript'.
> Process 'command 'node'' finished with non-zero exit value 1

* 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

BUILD FAILED in 4m 23s

    at makeError (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/execa/index.js:174:9)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
cortinico commented 2 years ago

Could you paste the content of this file?

/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log

cortinico commented 2 years ago

Also are you on a blank project?

cortinico commented 2 years ago

I've just tried to reproduce locally with:

npx react-native init RN0693 --version 0.69.3
cd RN0693/android/
./gradlew installRelease -PnewArchEnabled=true

I was able to build and install the app correctly. I could not see any of the errors you're having.

So we need the CMakeOutput.log file to see what's going on.

SectionTN commented 2 years ago

hey @cortinico, thanks for response, i wasn't on a fresh project, anyway i get erros when i try to init new project using npx react-native init tried many thing, and they doesn't work

cortinico commented 2 years ago

Could you share the CMakeOutput.log file?

SectionTN commented 2 years ago

the cmake output is The system is: Linux - 5.15.0-43-generic - x86_64 as you see in the screenshot: image

cortinico commented 2 years ago

Could you share the CMakeError.log file which is located in the same folder?

SectionTN commented 2 years ago

excuse me but there is no file named CMakeError.log in the same directory

SectionTN commented 2 years ago

also this happens when i want to init a new project image

cortinico commented 2 years ago

also this happens when i want to init a new project

This is another issue. You're having an EIO: i/o error, read which has something to do with your machine (either you have some permission issues or your disk is about to fail).

SectionTN commented 2 years ago

tried with sudo npx react-native..... and it doesn't work, anyway how i can solve new arch build fail ?

cortinico commented 2 years ago

how i can solve new arch build fail ?

Without an error log we can't really help. Could you provide the full output of the console for your build?

SectionTN commented 2 years ago

you mean this output ?

yarn android
yarn run v1.22.19
$ react-native run-android
warn Package react-native-flipper contains invalid configuration: "dependency.platforms.ios.project" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1451 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
* daemon not running; starting now at tcp:5037
* daemon started successfully
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :lottie-react-native
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

> Configure project :react-native-firebase_analytics
:react-native-firebase_analytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_analytics:firebase.bom using default value: 30.3.0
:react-native-firebase_analytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_analytics:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_analytics:android.compileSdk using custom value: 33
:react-native-firebase_analytics:android.targetSdk using custom value: 33
:react-native-firebase_analytics:android.minSdk using custom value: 24
:react-native-firebase_analytics:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:firebase.bom using default value: 30.3.0
:react-native-firebase_app:play.play-services-auth using default value: 20.2.0
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_app:android.compileSdk using custom value: 33
:react-native-firebase_app:android.targetSdk using custom value: 33
:react-native-firebase_app:android.minSdk using custom value: 24
:react-native-firebase_app:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_app-check
:react-native-firebase_app-check package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app-check/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app-check:firebase.bom using default value: 30.3.0
:react-native-firebase_app-check package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app-check/package.json
:react-native-firebase_app-check:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_app-check:android.compileSdk using custom value: 33
:react-native-firebase_app-check:android.targetSdk using custom value: 33
:react-native-firebase_app-check:android.minSdk using custom value: 24
:react-native-firebase_app-check:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_auth
:react-native-firebase_auth package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_auth:firebase.bom using default value: 30.3.0
:react-native-firebase_auth package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_auth:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_auth:android.compileSdk using custom value: 33
:react-native-firebase_auth:android.targetSdk using custom value: 33
:react-native-firebase_auth:android.minSdk using custom value: 24
:react-native-firebase_auth:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_crashlytics
:react-native-firebase_crashlytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/crashlytics/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_crashlytics:firebase.bom using default value: 30.3.0
:react-native-firebase_crashlytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/crashlytics/package.json
:react-native-firebase_crashlytics:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_crashlytics:android.compileSdk using custom value: 33
:react-native-firebase_crashlytics:android.targetSdk using custom value: 33
:react-native-firebase_crashlytics:android.minSdk using custom value: 24
:react-native-firebase_crashlytics:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_database
:react-native-firebase_database package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/database/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_database:firebase.bom using default value: 30.3.0
:react-native-firebase_database package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/database/package.json
:react-native-firebase_database:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_database:android.compileSdk using custom value: 33
:react-native-firebase_database:android.targetSdk using custom value: 33
:react-native-firebase_database:android.minSdk using custom value: 24
:react-native-firebase_database:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_firestore
:react-native-firebase_firestore package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/firestore/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_firestore:firebase.bom using default value: 30.3.0
:react-native-firebase_firestore package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/firestore/package.json
:react-native-firebase_firestore:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_firestore:android.compileSdk using custom value: 33
:react-native-firebase_firestore:android.targetSdk using custom value: 33
:react-native-firebase_firestore:android.minSdk using custom value: 24
:react-native-firebase_firestore:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_storage
:react-native-firebase_storage package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/storage/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_storage:firebase.bom using default value: 30.3.0
:react-native-firebase_storage package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/storage/package.json
:react-native-firebase_storage:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_storage:android.compileSdk using custom value: 33
:react-native-firebase_storage:android.targetSdk using custom value: 33
:react-native-firebase_storage:android.minSdk using custom value: 24
:react-native-firebase_storage:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-flipper
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

> Configure project :react-native-mmkv
MMKV: node_modules/ found at: /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules
WARNING:DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.

> Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-reanimated/android/react-native-reanimated-69-hermes.aar
WARNING:The specified Android SDK Build Tools version (29.0.2) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.2.1.
Android SDK Build Tools 30.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :ReactAndroid:hermes-engine:downloadHermes
Download https://github.com/facebook/hermes/tarball/hermes-2022-05-20-RNv0.69.0-ee8941b8874132b8f83e4486b63ed5c19fc3f111

> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Configuring incomplete, errors occurred!
See also "/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log".

> Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED

> Task :app:generateCodegenSchemaFromJavaScript
Execution optimizations have been disabled for task ':app:generateCodegenSchemaFromJavaScript' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform'. Reason: Task ':app:generateCodegenSchemaFromJavaScript' uses this output of task ':ReactAndroid:extractNativeDependencies' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform'. Reason: Task ':app:generateCodegenSchemaFromJavaScript' uses this output of task ':ReactAndroid:hermes-engine:unzipHermes' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.

> Task :app:generateCodegenSchemaFromJavaScript FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
11 actionable tasks: 10 executed, 1 from cache
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:190
        throw parsingErrors[0];
        ^

UnusedModuleTypeScriptInterfaceParserError: Module NativeSafeAreaContext.d: Unused NativeModule spec. Please load the NativeModule by calling TurboModuleRegistry.get<Spec>('<moduleName>').
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:810:13
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildModuleSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:799:22)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:179:9
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:178:22)
    at Object.parseFile (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:209:10)
    at files.reduce.modules (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
    at Array.reduce (<anonymous>)
    at combineSchemas (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:71:16) {
  nodes: [
    Node {
      type: 'TSInterfaceDeclaration',
      start: 161,
      end: 588,
      loc: SourceLocation {
        start: Position { line: 3, column: 7, index: 161 },
        end: Position { line: 20, column: 1, index: 588 },
        filename: undefined,
        identifierName: undefined
      },
      id: Node {
        type: 'Identifier',
        start: 171,
        end: 175,
        loc: SourceLocation {
          start: Position { line: 3, column: 17, index: 171 },
          end: Position { line: 3, column: 21, index: 175 },
          filename: undefined,
          identifierName: 'Spec'
        },
        name: 'Spec'
      },
      typeParameters: undefined,
      extends: [
        Node {
          type: 'TSExpressionWithTypeArguments',
          start: 184,
          end: 195,
          loc: SourceLocation {
            start: [Position],
            end: [Position],
            filename: undefined,
            identifierName: undefined
          },
          expression: Node {
            type: 'Identifier',
            start: 184,
            end: 195,
            loc: [SourceLocation],
            name: 'TurboModule'
          }
        }
      ],
      body: Node {
        type: 'TSInterfaceBody',
        start: 196,
        end: 588,
        loc: SourceLocation {
          start: Position { line: 3, column: 42, index: 196 },
          end: Position { line: 20, column: 1, index: 588 },
          filename: undefined,
          identifierName: undefined
        },
        body: [
          Node {
            type: 'TSPropertySignature',
            start: 202,
            end: 586,
            loc: [SourceLocation],
            key: [Node],
            computed: false,
            typeAnnotation: [Node]
          }
        ]
      }
    }
  ]
}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
> Process 'command '/home/sectiontn/Android/Sdk//cmake/3.18.1/bin/cmake'' finished with non-zero exit value 1

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:generateCodegenSchemaFromJavaScript'.
> Process 'command 'node'' finished with non-zero exit value 1

* 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

BUILD FAILED in 4m 23s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:190
        throw parsingErrors[0];
        ^

UnusedModuleTypeScriptInterfaceParserError: Module NativeSafeAreaContext.d: Unused NativeModule spec. Please load the NativeModule by calling TurboModuleRegistry.get<Spec>('<moduleName>').
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:810:13
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildModuleSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:799:22)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:179:9
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:178:22)
    at Object.parseFile (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:209:10)
    at files.reduce.modules (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
    at Array.reduce (<anonymous>)
    at combineSchemas (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:71:16) {
  nodes: [
    Node {
      type: 'TSInterfaceDeclaration',
      start: 161,
      end: 588,
      loc: SourceLocation {
        start: Position { line: 3, column: 7, index: 161 },
        end: Position { line: 20, column: 1, index: 588 },
        filename: undefined,
        identifierName: undefined
      },
      id: Node {
        type: 'Identifier',
        start: 171,
        end: 175,
        loc: SourceLocation {
          start: Position { line: 3, column: 17, index: 171 },
          end: Position { line: 3, column: 21, index: 175 },
          filename: undefined,
          identifierName: 'Spec'
        },
        name: 'Spec'
      },
      typeParameters: undefined,
      extends: [
        Node {
          type: 'TSExpressionWithTypeArguments',
          start: 184,
          end: 195,
          loc: SourceLocation {
            start: [Position],
            end: [Position],
            filename: undefined,
            identifierName: undefined
          },
          expression: Node {
            type: 'Identifier',
            start: 184,
            end: 195,
            loc: [SourceLocation],
            name: 'TurboModule'
          }
        }
      ],
      body: Node {
        type: 'TSInterfaceBody',
        start: 196,
        end: 588,
        loc: SourceLocation {
          start: Position { line: 3, column: 42, index: 196 },
          end: Position { line: 20, column: 1, index: 588 },
          filename: undefined,
          identifierName: undefined
        },
        body: [
          Node {
            type: 'TSPropertySignature',
            start: 202,
            end: 586,
            loc: [SourceLocation],
            key: [Node],
            computed: false,
            typeAnnotation: [Node]
          }
        ]
      }
    }
  ]
}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
> Process 'command '/home/sectiontn/Android/Sdk//cmake/3.18.1/bin/cmake'' finished with non-zero exit value 1

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:generateCodegenSchemaFromJavaScript'.
> Process 'command 'node'' finished with non-zero exit value 1

* 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

BUILD FAILED in 4m 23s

    at makeError (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/execa/index.js:174:9)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
SectionTN commented 2 years ago

that's the gradle output, anyway i'll boot into windows and init a new RN project to try new arch on it.

cortinico commented 2 years ago

The issue is here:

> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Configuring incomplete, errors occurred!
See also "/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log".

The problem is that the file CMakeOutput.log contains no relevant information. Could you check if other files in the same folder have some logs that could be relevant?

SectionTN commented 2 years ago

No i haven't found any file containing any log

SectionTN commented 2 years ago

even hermes fail on a fresh project:

Download https://github.com/facebook/hermes/tarball/hermes-2022-05-20-RNv0.69.0-ee8941b8874132b8f83e4486b63ed5c19fc3f111

> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Configuring incomplete, errors occurred!
See also "/home/sectiontn/RN0693/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log".

> Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED
<==-----------> 15% EXECUTING [5m 1s]
> :ReactAndroid:downloadBoost > boost_1_76_0.tar.gz > 109.39 MB/124.24 MB downloaded
cortinico commented 2 years ago

Not sure how to help you as it seems to be an isolate issue of your machine 🤔

SectionTN commented 2 years ago

before i switch to ubuntu, i've tried on windows and it fails. i got those 3 lines from CMake:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
SectionTN commented 2 years ago

now i was able to get some Output logs @cortinico

The system is: Linux - 5.15.0-43-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc 
Build flags: 
Id flags:  

The output was:
0

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/sectiontn/RN0693/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/3.18.1-g262b901/CompilerIdC/a.out"

Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/sectiontn/RN0693/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_d4a85/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_d4a85.dir/build.make CMakeFiles/cmTC_d4a85.dir/build
gmake[1]: Entering directory '/home/sectiontn/RN0693/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o
/usr/bin/cc   -v -o CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o -c /home/sectiontn/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeCCompilerABI.c
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.2.0-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1) 
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_d4a85.dir/'
 /usr/lib/gcc/x86_64-linux-gnu/11/cc1 -quiet -v -imultiarch x86_64-linux-gnu /home/sectiontn/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_d4a85.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -mtune=generic -march=x86-64 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/ccC6mZ1T.s
GNU C17 (Ubuntu 11.2.0-19ubuntu1) version 11.2.0 (x86_64-linux-gnu)
    compiled by GNU C version 11.2.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-linux-gnu/11/include
 /usr/local/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C17 (Ubuntu 11.2.0-19ubuntu1) version 11.2.0 (x86_64-linux-gnu)
    compiled by GNU C version 11.2.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: ead6677a8de2192bf1e5ee7b28d13856
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_d4a85.dir/'
 as -v --64 -o CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o /tmp/ccC6mZ1T.s
GNU assembler version 2.38 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.'
Linking C executable cmTC_d4a85
/home/sectiontn/Android/Sdk/cmake/3.18.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d4a85.dir/link.txt --verbose=1
/usr/bin/cc  -v CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o -o cmTC_d4a85 
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.2.0-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1) 
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_d4a85' '-mtune=generic' '-march=x86-64' '-dumpdir' 'cmTC_d4a85.'
 /usr/lib/gcc/x86_64-linux-gnu/11/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccZTww0Y.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_d4a85 /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_d4a85' '-mtune=generic' '-march=x86-64' '-dumpdir' 'cmTC_d4a85.'
gmake[1]: Leaving directory '/home/sectiontn/RN0693/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeTmp'

Parsed C implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/usr/lib/gcc/x86_64-linux-gnu/11/include]
    add: [/usr/local/include]
    add: [/usr/include/x86_64-linux-gnu]
    add: [/usr/include]
  end of search list found
  collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/11/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/11/include]
  collapse include dir [/usr/local/include] ==> [/usr/local/include]
  collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu]
  collapse include dir [/usr/include] ==> [/usr/include]
  implicit include dirs: [/usr/lib/gcc/x86_64-linux-gnu/11/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include]

Parsed C implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /home/sectiontn/RN0693/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_d4a85/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_d4a85.dir/build.make CMakeFiles/cmTC_d4a85.dir/build]
  ignore line: [gmake[1]: Entering directory '/home/sectiontn/RN0693/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeTmp']
  ignore line: [Building C object CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o]
  ignore line: [/usr/bin/cc   -v -o CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o -c /home/sectiontn/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeCCompilerABI.c]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/usr/bin/cc]
  ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa]
  ignore line: [OFFLOAD_TARGET_DEFAULT=1]
  ignore line: [Target: x86_64-linux-gnu]
  ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.2.0-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-nvptx/usr amdgcn-amdhsa=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2]
  ignore line: [Thread model: posix]
  ignore line: [Supported LTO compression algorithms: zlib zstd]
  ignore line: [gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1) ]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_d4a85.dir/']
  ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/11/cc1 -quiet -v -imultiarch x86_64-linux-gnu /home/sectiontn/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_d4a85.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -mtune=generic -march=x86-64 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/ccC6mZ1T.s]
  ignore line: [GNU C17 (Ubuntu 11.2.0-19ubuntu1) version 11.2.0 (x86_64-linux-gnu)]
  ignore line: [    compiled by GNU C version 11.2.0  GMP version 6.2.1  MPFR version 4.1.0  MPC version 1.2.1  isl version isl-0.24-GMP]
  ignore line: []
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"]
  ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/include-fixed"]
  ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include"]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/11/include]
  ignore line: [ /usr/local/include]
  ignore line: [ /usr/include/x86_64-linux-gnu]
  ignore line: [ /usr/include]
  ignore line: [End of search list.]
  ignore line: [GNU C17 (Ubuntu 11.2.0-19ubuntu1) version 11.2.0 (x86_64-linux-gnu)]
  ignore line: [    compiled by GNU C version 11.2.0  GMP version 6.2.1  MPFR version 4.1.0  MPC version 1.2.1  isl version isl-0.24-GMP]
  ignore line: []
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [Compiler executable checksum: ead6677a8de2192bf1e5ee7b28d13856]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_d4a85.dir/']
  ignore line: [ as -v --64 -o CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o /tmp/ccC6mZ1T.s]
  ignore line: [GNU assembler version 2.38 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38]
  ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/]
  ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.']
  ignore line: [Linking C executable cmTC_d4a85]
  ignore line: [/home/sectiontn/Android/Sdk/cmake/3.18.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d4a85.dir/link.txt --verbose=1]
  ignore line: [/usr/bin/cc  -v CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o -o cmTC_d4a85 ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/usr/bin/cc]
  ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper]
  ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa]
  ignore line: [OFFLOAD_TARGET_DEFAULT=1]
  ignore line: [Target: x86_64-linux-gnu]
  ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.2.0-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-nvptx/usr amdgcn-amdhsa=/build/gcc-11-gBFGDP/gcc-11-11.2.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2]
  ignore line: [Thread model: posix]
  ignore line: [Supported LTO compression algorithms: zlib zstd]
  ignore line: [gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1) ]
  ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/]
  ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_d4a85' '-mtune=generic' '-march=x86-64' '-dumpdir' 'cmTC_d4a85.']
  link line: [ /usr/lib/gcc/x86_64-linux-gnu/11/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccZTww0Y.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_d4a85 /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o]
    arg [/usr/lib/gcc/x86_64-linux-gnu/11/collect2] ==> ignore
    arg [-plugin] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so] ==> ignore
    arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper] ==> ignore
    arg [-plugin-opt=-fresolution=/tmp/ccZTww0Y.res] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [--build-id] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [-m] ==> ignore
    arg [elf_x86_64] ==> ignore
    arg [--hash-style=gnu] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-dynamic-linker] ==> ignore
    arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
    arg [-pie] ==> ignore
    arg [-znow] ==> ignore
    arg [-zrelro] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_d4a85] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o] ==> ignore
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/11] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/11]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib]
    arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
    arg [-L/lib/../lib] ==> dir [/lib/../lib]
    arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
    arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
    arg [-L/usr/lib/gcc/x86_64-linux-gnu/11/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/11/../../..]
    arg [CMakeFiles/cmTC_d4a85.dir/CMakeCCompilerABI.c.o] ==> ignore
    arg [-lgcc] ==> lib [gcc]
    arg [--push-state] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--pop-state] ==> ignore
    arg [-lc] ==> lib [c]
    arg [-lgcc] ==> lib [gcc]
    arg [--push-state] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--pop-state] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o] ==> ignore
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/11] ==> [/usr/lib/gcc/x86_64-linux-gnu/11]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib] ==> [/usr/lib]
  collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
  collapse library dir [/lib/../lib] ==> [/lib]
  collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
  collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/11/../../..] ==> [/usr/lib]
  implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
  implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/11;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
  implicit fwks: []
cortinico commented 2 years ago

now i was able to get some Output logs

I see no errors in this log (sadly).

SectionTN commented 2 years ago

I don't know why newArch is not working for me even in new project, i have cmake and NDK and my env is totally okay, the question is WHY :(

crstnmac commented 2 years ago

Im facing the same issue while starting a new project in windows

SectionTN commented 2 years ago

what issue exactly you're facing ?

crstnmac commented 2 years ago

getting https://github.com/facebook/react-native/issues/34306#issuecomment-1199646704 error and https://github.com/facebook/react-native/issues/34306#issuecomment-1199788533

crstnmac commented 2 years ago

CMAKE error log https://gist.github.com/crstnmac/8e31d7e97dc417540296d67e08bba591

I use a Windows 11 OS

SectionTN commented 2 years ago

The system cannot find the file specified

probably a path is wrong in environment variables.

cortinico commented 2 years ago

Im facing the same issue while starting a new project in windows

Is this on a 'fresh' project on Windows? Are you running inside a Visual Studio Console?

SectionTN commented 2 years ago

@cortinico okay after some days of fighting with the new arch i was able to get this: CmakeErrorLog:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
No such file or directory

Gradle Task hermes-engine:

Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring incomplete, errors occurred!
See also "/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log".
See also "/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeError.log".
cortinico commented 2 years ago

@SectionTN It seems the issue you're having is that CMake is not able to find your C/C++ compiler. This seems specific to your setup. Which C++ compiler do you have? Do you have gcc installed?

On Ubuntu you should be good to go with:

sudo apt-get install build-essential
SectionTN commented 2 years ago

@SectionTN It seems the issue you're having is that CMake is not able to find your C/C++ compiler. This seems specific to your setup. Which C++ compiler do you have? Do you have gcc installed?

On Ubuntu you should be good to go with:

sudo apt-get install build-essential

it is fixed after installing icu one hour ago, i can confirm that hermes can build without any issue, the problem now is with invertase react native firebase (exactly firestore library)

https://github.com/invertase/react-native-firebase/issues/6452#issue-1329946262

cortinico commented 2 years ago

it is fixed after installing icu one hour ago, i can confirm that hermes can build without any issue

Thanks for the update. Closing here

SectionTN commented 2 years ago

anyway this is required to build C++ on Ubuntu, sudo apt-get install build-essential wasn't enough.

git clone https://github.com/unicode-org/icu
cd icu/icu4c
cd source
./configure --prefix=/usr
make
sudo make install
JavidHaji-zada commented 2 years ago

I am facing a similar issue on Mac M1. Here is the full insight: https://scans.gradle.com/s/33updvsu4suw2 It says

Cannot run program "cmake" (in directory "/Users/javidhaji-zada/Desktop/react-native-template-new-architecture/node_modules/react-native/sdks/hermes"): error=2, No such file or directory

I tried clean installing packages but no luck.

Any ideas on how to overcome the issue?

SectionTN commented 2 years ago

did you set NDK 24 for Mac M1 ? it adds support for arm64 or something

JavidHaji-zada commented 2 years ago

Inside android/build.gradle I have the following snippet:

if (System.properties['os.arch'] == "aarch64") {
         // For M1 Users we need to use the NDK 24+ which added support for aarch64  
         ndkVersion = "25.1.8937393" // r25 LTS  
    } else {  
        // Otherwise we default to the side-by-side NDK version from AGP.  
        ndkVersion = "21.4.7075529"  
}  

I dug a little bit and apparently, System.properties['os.arch'] returns x86_64 whereas I was expecting it to be aarch64 as I am on MacOS M1. I tried removing the above code and setting ndk version to as default, "25.1.8937393" and yet again, I am getting the same error.

SectionTN commented 2 years ago

we don't have the same NDK Version, could you use NDK 24

if (System.properties['os.arch'] == "aarch64") {
            // For M1 Users we need to use the NDK 24 which added support for aarch64
            ndkVersion = "24.0.8215888"
        } else {
            // Otherwise we default to the side-by-side NDK version from AGP.
            ndkVersion = "21.4.7075529"
        }

Also, i've tried react-native-template, it doesn't work, i was having a headache so i've stopped messing around, i advise you to init a new rn project and test new arch there, since not all libraries work with the new arch.

SectionTN commented 2 years ago

also, do you have cmake installed on your windows ? if notc try something like choco install cmake if you use choco, if not download it from Android Studio SDK components and try exporting the path in your system environment variables, i'm in linux, you should export something like this export PATH=$PATH:$ANDROID_HOME/cmake/3.18.1/bin in windows it looks like %ANDROID_HOME%/cmake/3.18.1/bin open cmd or any terminal, yous should get the following output when typing cmake:

Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>
  cmake [options] -S <path-to-source> -B <path-to-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.
JavidHaji-zada commented 2 years ago

do you have cmake installed on your windows?

No, I didn't have it, I installed and now it seems to be working 🎉

SectionTN commented 2 years ago

Glad to see it working for you 🎉