Unable to compile kotlin

https://codeload.github.com/JetBrains/kotlin-native/tar.gz/v1.4.0
gcc version 10.1.0 (GCC)
openjdk version "1.8.0_252"
manjaro linux

when I try:

./gradlew dist distPlatformLibs

it errors with:

/usr/lib64/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../include/c++/10.1.0/mutex:270:17: error: use of undeclared identifier 'pthread_mutex_clocklock'
      { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); }
                ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../include/c++/10.1.0/mutex:336:17: error: use of undeclared identifier 'pthread_mutex_clocklock'
      { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); }
                ^
2 errors generated.
1 Like

upgrading to gcc 10.2.0 using glibc 2.32, doesn’t fix the problem.

some help would be really appreciated.

You don’t have permission to delete this topic. If you really want it to be deleted, submit a flag for moderator attention together with reasoning.

sigh.

forget it.

If you still have the error try writing on the issue tracker of Kotlin:
https://youtrack.jetbrains.com/issues/KT

1 Like

https://youtrack.jetbrains.com/issue/KT-45437