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

Android build Error: Only Win32 target is supported #312

Open
tsogzark opened this issue May 13, 2024 · 0 comments
Open

Android build Error: Only Win32 target is supported #312

tsogzark opened this issue May 13, 2024 · 0 comments

Comments

@tsogzark
Copy link

    "react": "18.2.0",
    "react-native": "0.73.0",
> Task :react-native-quick-crypto:buildCMakeDebug[arm64-v8a]
C/C++: ninja: Entering directory `C:\Users\tsogzark\Desktop\Work\ankiall\frontend\ankiall\node_modules\react-native-quick-crypto\android\.cxx\Debug\16w17163\arm64-v8a'
C/C++: C:\Users\tsogzark\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --sysroot=C:/Users/tsogzark/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Dreactnativequickcrypto_EXPORTS -IC:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/android/../cpp -IC:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native/ReactAndroid/src/main/jni/react/turbomodule -IC:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native/ReactCommon -IC:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native/ReactCommon/callinvoker -IC:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native/ReactCommon/jsi -IC:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native/ReactCommon/turbomodule/core -IC:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native/ReactCommon/react/nativemodule/core -isystem C:/Users/tsogzark/.gradle/caches/transforms-3/0859cc2ebf96bc372b2c46ef5b293d59/transformed/jetified-react-android-0.73.0-debug/prefab/modules/turbomodulejsijni/include -isystem C:/Users/tsogzark/.gradle/caches/transforms-3/057fda56c2cfc52d70a46042a30c6944/transformed/jetified-fbjni-0.5.1/prefab/modules/fbjni/include -isystem C:/Users/tsogzark/.gradle/caches/transforms-3/0859cc2ebf96bc372b2c46ef5b293d59/transformed/jetified-react-android-0.73.0-debug/prefab/modules/jsi/include -isystem C:/Users/tsogzark/.gradle/caches/transforms-3/0859cc2ebf96bc372b2c46ef5b293d59/transformed/jetified-react-android-0.73.0-debug/prefab/modules/reactnativejni/include -isystem C:/Users/tsogzark/.gradle/caches/transforms-3/0859cc2ebf96bc372b2c46ef5b293d59/transformed/jetified-react-android-0.73.0-debug/prefab/modules/react_nativemodule_core/include -isystem C:/Users/tsogzark/.gradle/caches/transforms-3/9293682cb53936b0e929c86eac194797/transformed/jetified-openssl-1.1.1l-beta-1/prefab/modules/crypto/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/reactnativequickcrypto.dir/f03f16cb4b628bb95b685f47f87965ac/cpp/fastpbkdf2/fastpbkdf2.c.o -MF CMakeFiles\reactnativequickcrypto.dir\f03f16cb4b628bb95b685f47f87965ac\cpp\fastpbkdf2\fastpbkdf2.c.o.d -o CMakeFiles/reactnativequickcrypto.dir/f03f16cb4b628bb95b685f47f87965ac/cpp/fastpbkdf2/fastpbkdf2.c.o -c C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c:15:
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.h:18:
C/C++: In file included from C:\msys64\mingw64\include/stdint.h:28:
C/C++: In file included from C:\msys64\mingw64\include/crtdefs.h:10:
C/C++: In file included from C:\msys64\mingw64\include/corecrt.h:10:
C/C++: C:\msys64\mingw64\include/_mingw.h:278:2: error: Only Win32 target is supported!
C/C++: #error Only Win32 target is supported!
C/C++:  ^
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c:15:
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.h:19:
C/C++: C:\msys64\mingw64\include/stdlib.h:173:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
C/C++:   extern __declspec(dllimport) char *_sys_errlist[1];
C/C++:          ^
C/C++: C:\msys64\mingw64\include/stdlib.h:174:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
C/C++:   extern __declspec(dllimport) int _sys_nerr;
C/C++:          ^
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c:18:
C/C++: C:\msys64\mingw64\include/string.h:51:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
C/C++:   _SECIMP errno_t __cdecl memcpy_s (void *_dest,size_t _numberOfElements,const void *_src,size_t _count);
C/C++:   ^
C/C++: C:\msys64\mingw64\include/stdlib.h:22:17: note: expanded from macro '_SECIMP'
C/C++: #define _SECIMP __declspec(dllimport)
C/C++:                 ^
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c:18:
C/C++: In file included from C:\msys64\mingw64\include/string.h:190:
C/C++: C:\msys64\mingw64\include/sec_api/string_s.h:26:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
C/C++:   _SECIMP errno_t __cdecl strerror_s(char *_Buf,size_t _SizeInBytes,int _ErrNum);
C/C++:   ^
C/C++: C:\msys64\mingw64\include/stdlib.h:22:17: note: expanded from macro '_SECIMP'
C/C++: #define _SECIMP __declspec(dllimport)
C/C++:                 ^
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c:18:
C/C++: In file included from C:\msys64\mingw64\include/string.h:190:
C/C++: C:\msys64\mingw64\include/sec_api/string_s.h:50:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
C/C++:   _SECIMP errno_t __cdecl memmove_s(void *_dest,size_t _numberOfElements,const void *_src,size_t _count);
C/C++:   ^
C/C++: C:\msys64\mingw64\include/stdlib.h:22:17: note: expanded from macro '_SECIMP'
C/C++: #define _SECIMP __declspec(dllimport)
C/C++:                 ^
C/C++: In file included from C:/Users/tsogzark/Desktop/Work/ankiall/frontend/ankiall/node_modules/react-native-quick-crypto/cpp/fastpbkdf2/fastpbkdf2.c:20:
C/C++: In file included from C:/Users/tsogzark/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/endian.h:10:
C/C++: C:/Users/tsogzark/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/sys/endian.h:54:30: error: expected function body after function declarator
C/C++: uint32_t htonl(uint32_t __x) __attribute_const__ __INTRODUCED_IN(21);
C/C++:                              ^
C/C++: C:/Users/tsogzark/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/sys/endian.h:55:30: error: expected function body after function declarator
C/C++: uint16_t htons(uint16_t __x) __attribute_const__ __INTRODUCED_IN(21);
C/C++:                              ^
C/C++: C:/Users/tsogzark/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/sys/endian.h:56:30: error: expected function body after function declarator
C/C++: uint32_t ntohl(uint32_t __x) __attribute_const__ __INTRODUCED_IN(21);
C/C++:                              ^
C/C++: C:/Users/tsogzark/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/sys/endian.h:57:30: error: expected function body after function declarator
C/C++: uint16_t ntohs(uint16_t __x) __attribute_const__ __INTRODUCED_IN(21);
C/C++:                              ^
C/C++: 10 errors generated.

> Task :react-native-quick-crypto:buildCMakeDebug[arm64-v8a] FAILED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant