Skip to content

Conversation

@kohnish
Copy link

@kohnish kohnish commented Nov 13, 2024

  • Fix isl pointed to deprecated url
  • Add precompiled dependencies for linux aarch64 (still incomplete probably)
  • Add Linux ARM 64 enum (still incomplete)
  • Add aarch64 linux clang in konan.property (untested)

@SvyatoslavScherbina SvyatoslavScherbina requested review from 4u7 and removed request for 4u7 November 28, 2024 09:45
Copy link
Contributor

@4u7 4u7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems verification-metadata.xml is updated manually. We have a section in the readme about dependency-verification.
https://github.com/JetBrains/kotlin?tab=readme-ov-file#dependency-verification

@kohnish
Copy link
Author

kohnish commented Dec 4, 2024

It seems verification-metadata.xml is updated manually. We have a section in the readme about dependency-verification. https://github.com/JetBrains/kotlin?tab=readme-ov-file#dependency-verification

Thanks. Somehow nodejs is gone if I do it automatically, I'll investigate. In any case, I'm ok if this PR gets merged. I still haven't managed to compile on aarch64 linux.

@barre121
Copy link

barre121 commented Mar 10, 2025

Hope we poor linux/Aarch64 owners will get some working prebuilt KN compiler binary.

I want to use this on my android device so bad, please!

Screenshot_20250310_194153_Termux

Copy link
Contributor

@SvyatoslavScherbina SvyatoslavScherbina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the status of this PR? Is it ready for review?
What is the scope of this PR?

Changes in toolchain_builder seem unrelated to supporting Linux/arm64 as a host OS.

#!/bin/bash

set -eou pipefail
set -eo pipefail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOOLCHAIN_VERSION_SUFFIX is optional as you see and the script was failing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can and should be handled the same way as in run_container.sh:

TOOLCHAIN_VERSION_SUFFIX="${3:-""}"

So, removing -u shouldn't even be required there.

@kohnish
Copy link
Author

kohnish commented Sep 2, 2025

What is the status of this PR? Is it ready for review? What is the scope of this PR?

Changes in toolchain_builder seem unrelated to supporting Linux/arm64 as a host OS.

it's ready to be merged as I mentioned. It's meant to "start" fixing something that is broken. Any change here is reaction to the build failure by following the documentation.

Copy link
Contributor

@SvyatoslavScherbina SvyatoslavScherbina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in toolchain_builder are not necessary to support linux arm64 as a host OS: the built toolchain already exists, it is used for linux arm64 target support.

Change in HostManager doesn't seem to improve anything without actually supporting linux arm64 as a host. It would make sense as a part of a larger PR that actually does unblock anything.

An example of a meaningful contribution to linux arm64 host support: build the actual missing dependencies of the compiler (like LLVM and libffi) and check whether it works with them.

#!/bin/bash

set -eou pipefail
set -eo pipefail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can and should be handled the same way as in run_container.sh:

TOOLCHAIN_VERSION_SUFFIX="${3:-""}"

So, removing -u shouldn't even be required there.

@kohnish kohnish force-pushed the linux-arm64 branch 2 times, most recently from 8852060 to e327baa Compare September 4, 2025 21:14
* Fix isl pointed to deprecated url
* Add precompiled dependencies for linux aarch64
* Add Linux ARM 64 enum (still incomplete)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants