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

Add Linux Test #93

Merged
merged 5 commits into from
Nov 14, 2022
Merged

Add Linux Test #93

merged 5 commits into from
Nov 14, 2022

Conversation

irgaly
Copy link
Owner

@irgaly irgaly commented Nov 13, 2022

Linux Test を追加しようとしたが、GitHub Actions Ubuntu-latest 環境でうまくビルドが通らない。

問題は以下の通り:

// kottage/data/sqlite/build.gradle.kts
    targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
            binaries.all {
                linkerOpts.add("-lsqlite3")
                linkerOpts.add("-L/lib/x86_64-linux-gnu")
            }
    }

まだエラーが出る

/usr/bin/ld: /lib/x86_64-linux-gnu/libsqlite3.so: undefined reference to `fcntl64@GLIBC_2.28'
/usr/bin/ld: /lib/x86_64-linux-gnu/libsqlite3.so: undefined reference to `log@GLIBC_2.29'

@irgaly irgaly self-assigned this Nov 13, 2022
@irgaly
Copy link
Owner Author

irgaly commented Nov 13, 2022

konan の gcc toolchain がアップデートされるまで対応は難しそう

@irgaly
Copy link
Owner Author

irgaly commented Nov 13, 2022

macOS であればこの問題は発生せずビルドは通っている

@irgaly
Copy link
Owner Author

irgaly commented Nov 13, 2022

@irgaly irgaly force-pushed the linuxtest branch 3 times, most recently from b44f26c to 7e93daf Compare November 13, 2022 15:24
@irgaly
Copy link
Owner Author

irgaly commented Nov 13, 2022

gcc:7.3 docker container を使えばビルドできた。(glibc を2.27以下にする)

@irgaly irgaly force-pushed the linuxtest branch 15 times, most recently from 784276b to a9e7733 Compare November 14, 2022 12:03
@irgaly irgaly marked this pull request as ready for review November 14, 2022 12:17
@irgaly irgaly merged commit f148450 into main Nov 14, 2022
@irgaly irgaly deleted the linuxtest branch November 14, 2022 12:52
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

Successfully merging this pull request may close these issues.

1 participant