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

Building from source is incompatible with SWIG 4.2.0 #1632

Closed
cmelchior opened this issue Jan 16, 2024 · 0 comments · Fixed by #1665
Closed

Building from source is incompatible with SWIG 4.2.0 #1632

cmelchior opened this issue Jan 16, 2024 · 0 comments · Fixed by #1665
Assignees

Comments

@cmelchior
Copy link
Contributor

cmelchior commented Jan 16, 2024

There are a few changes in SWIG 4.2.0 that seem to be disruptive. At least this one: swig/swig#1680. Their changelog is here https://www.swig.org/Release/CHANGES.current

 /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:2442:8: error: no matching function for call to 'SWIG_JavaArrayInSchar'
    if (!SWIG_JavaArrayInSchar(jenv, &jarr2, (uint8_t **)&arg2, jarg2)) return ;
         ^~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:950:12: note: candidate function not viable: no known conversion from 'uint8_t **' (aka 'unsigned char **') to 'signed char **' for 3rd argument
  static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:2444:3: error: no matching function for call to 'SWIG_JavaArrayArgoutSchar'
    SWIG_JavaArrayArgoutSchar(jenv, jarr2, (uint8_t *)arg2, jarg2);
    ^~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:971:13: note: candidate function not viable: no known conversion from 'uint8_t *' (aka 'unsigned char *') to 'signed char *' for 3rd argument
  static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:2620:8: error: no matching function for call to 'SWIG_JavaArrayInLonglong'
    if (!SWIG_JavaArrayInLonglong(jenv, &jarr2, (uint64_t **)&arg2, jarg2)) return ;
         ^~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1318:12: note: candidate function not viable: no known conversion from 'uint64_t **' (aka 'unsigned long **') to 'long long **' for 3rd argument
  static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:2626:3: error: no matching function for call to 'SWIG_JavaArrayArgoutLonglong'
    SWIG_JavaArrayArgoutLonglong(jenv, jarr2, (uint64_t *)arg2, jarg2);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1339:13: note: candidate function not viable: no known conversion from 'uint64_t *' (aka 'unsigned long *') to 'long long *' for 3rd argument
  static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:4959:8: error: no matching function for call to 'SWIG_JavaArrayInSchar'
    if (!SWIG_JavaArrayInSchar(jenv, &jarr2, (uint8_t **)&arg2, jarg2)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:950:12: note: candidate function not viable: no known conversion from 'uint8_t **' (aka 'unsigned char **') to 'signed char **' for 3rd argument
  static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:4962:3: error: no matching function for call to 'SWIG_JavaArrayArgoutSchar'
    SWIG_JavaArrayArgoutSchar(jenv, jarr2, (uint8_t *)arg2, jarg2);
    ^~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:971:13: note: candidate function not viable: no known conversion from 'uint8_t *' (aka 'unsigned char *') to 'signed char *' for 3rd argument
  static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:4979:8: error: no matching function for call to 'SWIG_JavaArrayInSchar'
    if (!SWIG_JavaArrayInSchar(jenv, &jarr2, (uint8_t **)&arg2, jarg2)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:950:12: note: candidate function not viable: no known conversion from 'uint8_t **' (aka 'unsigned char **') to 'signed char **' for 3rd argument
  static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:4992:3: error: no matching function for call to 'SWIG_JavaArrayArgoutSchar'
    SWIG_JavaArrayArgoutSchar(jenv, jarr2, (uint8_t *)arg2, jarg2);
    ^~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:971:13: note: candidate function not viable: no known conversion from 'uint8_t *' (aka 'unsigned char *') to 'signed char *' for 3rd argument
  static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6416:8: error: no matching function for call to 'SWIG_JavaArrayInLonglong'
    if (!SWIG_JavaArrayInLonglong(jenv, &jarr4, (size_t **)&arg4, jarg4)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1318:12: note: candidate function not viable: no known conversion from 'size_t **' (aka 'unsigned long **') to 'long long **' for 3rd argument
  static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6429:3: error: no matching function for call to 'SWIG_JavaArrayArgoutLonglong'
    SWIG_JavaArrayArgoutLonglong(jenv, jarr4, (size_t *)arg4, jarg4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1339:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'long long *' for 3rd argument
  static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6533:8: error: no matching function for call to 'SWIG_JavaArrayInLonglong'
    if (!SWIG_JavaArrayInLonglong(jenv, &jarr5, (size_t **)&arg5, jarg5)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1318:12: note: candidate function not viable: no known conversion from 'size_t **' (aka 'unsigned long **') to 'long long **' for 3rd argument
  static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6545:3: error: no matching function for call to 'SWIG_JavaArrayArgoutLonglong'
    SWIG_JavaArrayArgoutLonglong(jenv, jarr5, (size_t *)arg5, jarg5);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1339:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'long long *' for 3rd argument
  static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6566:8: error: no matching function for call to 'SWIG_JavaArrayInLonglong'
    if (!SWIG_JavaArrayInLonglong(jenv, &jarr3, (realm_property_key_t **)&arg3, jarg3)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1318:12: note: candidate function not viable: no known conversion from 'realm_property_key_t **' (aka 'long **') to 'long long **' for 3rd argument
  static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6568:8: error: no matching function for call to 'SWIG_JavaArrayInLonglong'
    if (!SWIG_JavaArrayInLonglong(jenv, &jarr5, (size_t **)&arg5, jarg5)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1318:12: note: candidate function not viable: no known conversion from 'size_t **' (aka 'unsigned long **') to 'long long **' for 3rd argument
  static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6580:3: error: no matching function for call to 'SWIG_JavaArrayArgoutLonglong'
    SWIG_JavaArrayArgoutLonglong(jenv, jarr3, (realm_property_key_t *)arg3, jarg3);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1339:13: note: candidate function not viable: no known conversion from 'realm_property_key_t *' (aka 'long *') to 'long long *' for 3rd argument
  static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6581:3: error: no matching function for call to 'SWIG_JavaArrayArgoutLonglong'
    SWIG_JavaArrayArgoutLonglong(jenv, jarr5, (size_t *)arg5, jarg5);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1339:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'long long *' for 3rd argument
  static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6766:8: error: no matching function for call to 'SWIG_JavaArrayInLonglong'
    if (!SWIG_JavaArrayInLonglong(jenv, &jarr3, (size_t **)&arg3, jarg3)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1318:12: note: candidate function not viable: no known conversion from 'size_t **' (aka 'unsigned long **') to 'long long **' for 3rd argument
  static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
             ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6778:3: error: no matching function for call to 'SWIG_JavaArrayArgoutLonglong'
    SWIG_JavaArrayArgoutLonglong(jenv, jarr3, (size_t *)arg3, jarg3);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1339:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'long long *' for 3rd argument
  static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
              ^
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:6865:8: error: no matching function for call to 'SWIG_JavaArrayInLonglong'
    if (!SWIG_JavaArrayInLonglong(jenv, &jarr2, (realm_object_t ***)&arg2, jarg2)) return 0;
         ^~~~~~~~~~~~~~~~~~~~~~~~
  /Users/cm/Realm/realm-kotlin/packages/jni-swig-stub/build/generated/sources/jni/realmc.cpp:1318:12: note: candidate function not viable: no known conversion from 'realm_object_t ***' (aka 'realm_object ***') to 'long long **' for 3rd argument
  static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
@nhachicha nhachicha self-assigned this Feb 20, 2024
@rorbech rorbech self-assigned this Feb 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants