Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom C/C++: clang++: error: -Wl,-rpath: 'linker' input unused [-Werror,-Wunused-command-line-argument] #47904

Open
ObscurusGrassator opened this issue Nov 22, 2024 · 0 comments
Labels
Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@ObscurusGrassator
Copy link

Description

I add ```include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake)`` line to CMakeLists.txt and copy OnLoad.cpp file from node_module to directory with CMakeLists.txt.
In old architecture this work ok.

Steps to reproduce

  1. npx @react-native-community/cli@latest init Demo --install-pods false
  2. Adding steps from: https://github.com/ObscurusGrassator/openWakeWord-cpp/blob/AndroidImplementation
  3. Last 2 "openWakeWord" word I must rename to "openWakeWord2" in CMakeLists.txt: https://github.com/ObscurusGrassator/openWakeWord-cpp/blob/AndroidImplementation/src/android/CMakeLists.txt
  4. react-native start --reset-cache --verbose

React Native Version

0.76.3

Affected Platforms

Runtime - Android, Build - MacOS

Areas

Bridgeless - The New Initialization Flow

Output of npx react-native info

System:
  OS: macOS 14.7
  CPU: (12) arm64 Apple M2 Max
  Memory: 1.14 GB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: ~/.nvm/versions/node/v20.17.0/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.17.0/bin/npm
  Watchman:
    version: 2024.04.08.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    System Images:
      - android-34 | AOSP ATD ARM 64 v8a
      - android-34 | ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
      - android-35 | AOSP ATD ARM 64
      - android-35 | ARM 64 v8a
      - android-35 | Google APIs ARM 64 v8a
      - android-35 | Google Play ARM 64 v8a
      - android-35 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
      - android-35 | Pre-Release 16 KB Page Size Google APIs ARM 64 v8a
      - android-35 | Google APIs ATD ARM 64
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11330709
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.6
    path: /usr/bin/javac
  Ruby:
    version: 2.7.8
    path: /opt/homebrew/opt/[email protected]/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.2
    wanted: 15.1.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false



### Stacktrace or Logs

```text
> Task :app:buildCMakeDebug[arm64-v8a] FAILED
C/C++: ninja: Entering directory `/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/.cxx/Debug/5i53s494/arm64-v8a'
C/C++: /Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DopenWakeWord_EXPORTS -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/android -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/react/renderer/components/rngesturehandler_codegen -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/react/renderer/components/rnreanimated -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/0b396a6571faea36ef3e81439b17aeab/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/jsi/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/reactnative/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fexceptions -frtti -Wall -Wextra -Wl,-rpath,'' -fno-limit-debug-info  -fPIC -Wall -Werror -Wno-error=cpp -fexceptions -frtti -std=c++20 -DLOG_TAG=\"ReactNative\" -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -MD -MT CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -MF CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o.d -o CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -c /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp
C/C++: clang++: error: -Wl,-rpath: 'linker' input unused [-Werror,-Wunused-command-line-argument]
C/C++: [2/5] Building CXX object CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o
C/C++: FAILED: CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o 
C/C++: /Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DopenWakeWord_EXPORTS -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/android -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/react/renderer/components/rngesturehandler_codegen -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/react/renderer/components/rnreanimated -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/0b396a6571faea36ef3e81439b17aeab/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/jsi/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/reactnative/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fexceptions -frtti -Wall -Wextra -Wl,-rpath,'' -fno-limit-debug-info  -fPIC -Wall -Werror -Wno-error=cpp -fexceptions -frtti -std=c++20 -DLOG_TAG=\"ReactNative\" -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -MD -MT CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o -MF CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o.d -o CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o -c /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
C/C++: clang++: error: -Wl,-rpath: 'linker' input unused [-Werror,-Wunused-command-line-argument]
C/C++: [3/5] Building CXX object CMakeFiles/openWakeWord2.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp.o
C/C++: clang++: warning: -Wl,-rpath: 'linker' input unused [-Wunused-command-line-argument]
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:39:19: warning: unused parameter 'stream' [-Wunused-parameter]
C/C++:     AAudioStream *stream,
C/C++:                   ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:40:11: warning: unused parameter 'userData' [-Wunused-parameter]
C/C++:     void *userData,
C/C++:           ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:103:21: warning: unused variable 'result' [-Wunused-variable]
C/C++:     aaudio_result_t result = AAudio_createStreamBuilder(&builder);
C/C++:                     ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:72:26: warning: unused parameter 'instance' [-Wunused-parameter]
C/C++:     JNIEnv *env, jobject instance, jobject assetManager,
C/C++:                          ^
C/C++: 4 warnings generated.

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

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

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
242 actionable tasks: 17 executed, 225 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/.cxx/Debug/5i53s494/arm64-v8a'
  [0/2] Re-checking globbed directories...
  [1/5] Building CXX object CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o
  FAILED: CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o 
  /Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DopenWakeWord_EXPORTS -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/android -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/react/renderer/components/rngesturehandler_codegen -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/react/renderer/components/rnreanimated -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/0b396a6571faea36ef3e81439b17aeab/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/jsi/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/reactnative/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fexceptions -frtti -Wall -Wextra -Wl,-rpath,'' -fno-limit-debug-info  -fPIC -Wall -Werror -Wno-error=cpp -fexceptions -frtti -std=c++20 -DLOG_TAG=\"ReactNative\" -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -MD -MT CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -MF CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o.d -o CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -c /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp
  clang++: error: -Wl,-rpath: 'linker' input unused [-Werror,-Wunused-command-line-argument]
  [2/5] Building CXX object CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o
  FAILED: CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o 
  /Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DopenWakeWord_EXPORTS -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/android -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/react/renderer/components/rngesturehandler_codegen -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/react/renderer/components/rnreanimated -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/0b396a6571faea36ef3e81439b17aeab/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/jsi/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/8ab812ce1f3114aaddddfebd3794d6a8/transformed/jetified-react-android-0.76.3-debug/prefab/modules/reactnative/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fexceptions -frtti -Wall -Wextra -Wl,-rpath,'' -fno-limit-debug-info  -fPIC -Wall -Werror -Wno-error=cpp -fexceptions -frtti -std=c++20 -DLOG_TAG=\"ReactNative\" -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -MD -MT CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o -MF CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o.d -o CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o -c /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
  clang++: error: -Wl,-rpath: 'linker' input unused [-Werror,-Wunused-command-line-argument]
  [3/5] Building CXX object CMakeFiles/openWakeWord2.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp.o
  clang++: warning: -Wl,-rpath: 'linker' input unused [-Wunused-command-line-argument]
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:39:19: warning: unused parameter 'stream' [-Wunused-parameter]
      AAudioStream *stream,
                    ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:40:11: warning: unused parameter 'userData' [-Wunused-parameter]
      void *userData,
            ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:103:21: warning: unused variable 'result' [-Wunused-variable]
      aaudio_result_t result = AAudio_createStreamBuilder(&builder);
                      ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:72:26: warning: unused parameter 'instance' [-Wunused-parameter]
      JNIEnv *env, jobject instance, jobject assetManager,
                           ^
  4 warnings generated.
  ninja: build stopped: subcommand failed.
  
  C++ build system [build] failed while executing:
      /Applications/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/.cxx/Debug/5i53s494/arm64-v8a \
        openWakeWord \
        openWakeWord2 \
        react_codegen_safeareacontext
    from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app

* 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 3s


### Reproducer

 a

### Screenshots and Videos

_No response_
@ObscurusGrassator ObscurusGrassator added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

1 participant