Just trying out the new memory allocator `freeComp...
# eap
j
Just trying out the new memory allocator
freeCompilerArgs.add("-Xallocator=custom")
and ran into this build error:
/Users/jeff/.gradle/caches/modules-2/files-2.1/com.soywiz.korlibs.korio/korio-iosx64/4.0.6/f5f95756bae903a6f2799d340dc7e3c454de25ef/korio is cached (in /Users/jeff/.konan/kotlin-native-prebuilt-macos-x86_64-1.9.0/klib/cache/ios_x64-gSTATIC-pl/com.soywiz.korlibs.koriokorio/unspecified/82f778b055c4fad9d6e92c5b807cbe2b597c42f7b3c907fa020c3ed0248cf9dd/com.soywiz.korlibs.koriokorio-cache/bin/libcom.soywiz.korlibs.korio:korio-cache.a), but its dependency isn't: /Users/jeff/.konan/kotlin-native-prebuilt-macos-x86_64-1.9.0/klib/common/stdlib
There is data at that location
~/.konan/kotlin-native-prebuilt-macos-x86_64-1.9.0/klib/common/stdlib
, however.
t
please an a Kotlin issue: https://kotl.in/issue
n
We’re having the same issue, but in our case the argument is
-Xallocator=std
(we have a bunch of separate KMP frameworks, so we’re being conservative in terms of memory allocation). My colleague added a comment to the above ticket.
a
Hey @Nikolay Kasyanov, I wonder if you end up finding a workaround for this issue, I see there is a fix merged but in my case migrating to 1.9.10 is not an option
n
@Alex Azarov we have not, unfortunately, gonna move to 1.9.10.
thank you color 1
given the fix description, I wonder if disabling compiler caches would help.
s
It should. But 1.9.10 is already released and does contain the fix, so please try it instead.