-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support for Apple Silicon #72
Comments
Hi @josor001, thanks for the bug report. As far as I'm concerned, this fork of @mmitas777 does the version and dependency lifting, at least up to the Live Validation project, right? We only lack the lifting for the following projects, correct? (Snippet taken from https://github.com/SeelabFhdo/lemma/blob/main/build/lemma-build-modules.txt)
Or were some of these also lifted already, @mmitas777? In any case, I'm happy to take a first PR of https://github.com/mmitas777/lemma/tree/eclipse-version-upgrade, thanks! |
If I remember correctly, he was stuck with the live validation part and wanted to finish his master thesis first (should be done in 2-3 weeks), i.e., we could hope that @mmitas777 solves the issue in the coming weeks ;-) @frademacher |
Sure, no rush here :-) I also completely forgot about the Live Validation build problem. Maybe @mmitas777 could describe and document the problem in this issue so that I can have a deeper look at it and know where the concrete pitfalls lurk. @josor001, sure go ahead. If a new Tycho version works for the OpenAPI plugin, then it should probably also work for all other plugins. However, it might be the case that the current Tycho version 4.0.3 now also concentrates on Java 17. In this case, we would probably require an update to all plugins on which OpenAPI depends. Feel free to perform those updates (on the required plugins and maybe using https://github.com/mmitas777/lemma/tree/eclipse-version-upgrade as "inspiration") and open a PR when this has been done. I'd then wait for the update PR of @mmitas777 (probably after the issues with the Live Validation plugin got fixed) and distill a single commit from both PRs, of course mentioning both of you as authors. Update: I forgot to mention that the update of the OpenAPI plugin is highly appreciated, @josor001 :-) |
Did some experiments today regarding a partial update of the tycho version. As it turns out, Tycho >=version 2.7 is somewhat incompatible with lesser tycho versions (<2.7) in the same build. Apparently, there is some bad metadata written to the local m2 repository that confuses tycho build with version <2.7. This means that we have to lift all projects in one step. A pity :-( Concerning the Eclipse version: If we do not want to keep the Java version at 11, we should settle for Eclipse 2022-06 which apparently is the LTS for Java11. |
Hi there, @josor001 and @frademacher! I got the build problems on my ARM Mac (M1) during my master thesis researches. As far as I could test it, the LEMMA build has issues beginning at the first build module when using the Eclipse 2021-03 version. I tried to upgrade the Eclipse version to 2023-06 (maybe an update to the current 2023-09 version won't effect my current tests), the Java version to 17, Tycho to 4.0.2 and dependencies to current versions. I did the tests two months ago, so the versions might not be the newest anymore. This went fine (see https://github.com/mmitas777/lemma/tree/eclipse-version-upgrade till the Live Validation project. Problem is that it uses maven as a dependent plugin in several files, which is not supported at Gradle 7.x anymore (i.e. see https://docs.gradle.org/current/userguide/upgrading_version_6.html#removal_of_the_legacy_maven_plugin). Gradle 8.x leads to more problems in this project and the following gradel build modules due to major syntax changes in the build file. As I don't know how to fix it without modifying the modules too much, I ask you, @frademacher, @josor001 and @pwizenty, for looking over your model processing, OpenAPI, Live Validation and Model Reconstruction projects. @josor001, I also tried to use different tycho versions, even versions 2.3 and 2.6. Problem is that different tycho versions generally lead to dependency resolution problems (modules surprisingly not found, dependencies downloaded to other folders so that following module builds can't find the dependencies anymore,...). Of course I could do a PR of my branch to the main LEMMA repo, but of course the version lifting is still in progress. |
We are currently facing issues with building LEMMA on Apple Silicon. Apparently, this is not an actual LEMMA issue but related to the fact that the eclipse packages were not compatible with Apple until version 2022-03. Since than, eclipse also provides builds for MacOS AArch64.
LEMMA is currently using the eclipse release 2021-03. I.e., we need to lift the version to at least 2022-03 to be compatible with Apple Silicon. @mmitas777 has done some testing on this. Apparently the lift works for most projects, but there are some details that need a little more work.
We are currently working on the issue.
On a related note: I am not sure if there are also issues with executing LEMMA or at least certain LEMMA features (such as live validation of code generation) on Apple. Maybe someone owning a new Mac can clarify this. I.e. what happens when you install Eclipse in >Release 2022-03 and install LEMMA through the updatesite. Does this work?
The text was updated successfully, but these errors were encountered: