You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
architecture.set(Architecture.LINUX_X64) // or Architecture.LINUX_ARM64
53
+
}
50
54
```
51
55
52
56
### 3. Specify Entry Point and Targets
@@ -196,19 +200,6 @@ Log.fatal(message: T?) // Messages about serious errors that cause the applicati
196
200
## Troubleshooting
197
201
198
202
- For Amazon Linux 2023, create a [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/chapter-layers.html) with the libcrypt.so dependency. This library can be taken from your Linux machine or via the [Github Action workflow](https://github.com/trueangle/kotlin-native-aws-lambda-runtime/actions/workflows/libcrypt.yml).
199
-
- Currently, only x86-64 architecture is supported by the runtime. LinuxArm64 is not supported by Kotlin Native yet, For more details, see:
200
-
1. The list of supported targets for Kotlin Native (
- Currently, it's not possible to build ARM type target on Linux machine (use macOS instead) as Kotlin repo misses necessary metadata. For more details, see:
204
+
1. The list of supported targets for Kotlin Native https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-native-prebuilt/
- If you are running the project build on MacOS you might come across a set of errors connected with
204
-
curl linking e.g. `ld.lld: error: undefined symbol: curl_global_init`. This means that your local
205
-
machine [uses different curl version from what is requested by the runtime](https://youtrack.jetbrains.com/issue/KTOR-6361/Curl-Error-linking-curl-in-linkDebugExecutableLinuxX64-on-macOS).
206
-
To solve that either
207
-
use [Gihub Actions workflow](https://github.com/trueangle/kotlin-native-aws-lambda-runtime/actions/workflows/buildLinux86_64.yml)
208
-
or local docker container with ubuntu 22 under the hood. Example [Dockerfile](Dockerfile) and
209
-
build command:
210
-
211
-
```bash
212
-
docker build -t sample .
213
-
docker run --rm -v $(pwd):/sample -w /sample sample ./gradlew build
0 commit comments