alchitry / Alchitry-Labs-V2

Full rewrite of Alchitry Labs
https://alchitry.com/
GNU General Public License v3.0
14 stars 2 forks source link

Unable to Build AlchitryLabsV2 Project With Vivado 2023.2 on Debian 12.5: Vivado can't launch #15

Closed natalieagus closed 2 weeks ago

natalieagus commented 1 month ago

Hi there, I was trying to build a basic project on Debian 12.5 with Vivado for Alchitry Au. I was always able to build one with Alchitry Labs 1.2.7 successfully (bottom left), but with AlchitryLabsV2 2.0.11 Preview it fails to launch Vivado:

image

I have set the Vivado path to be the same as I did in 1.2.7, which is /mnt/vivado/Vivado/2023.2. The bin exists as shown in the screenshot, and AlchitryLabs1.2.7 was able to find it. I ran AlchitryLabsV2 with root permission too but to no avail.

Here's the versions used:

  1. AlchitryLabsV2 2.0.11 Preview
  2. Debian 12.5
  3. Java: OpenJDK17
  4. Vivado 2023.2

Was wondering if there's incompatibility in the versions. Thanks!

natalieagus commented 1 month ago

Update: If i compile from source, I manage to get it to run Vivado. The above was from https://github.com/alchitry/Alchitry-Labs-V2/releases/download/2.0.11/alchitry-labs-2.0.11-linux-amd64.tar.gz I tried other versions as well: 2.0.10. Same issue. Only if I compile AlchitryLabsV2 from source then it is able to run the Vivado binary.

However I run into another synthesis error (loop limit exceeded) if i use repeat loops. Will open another issue for that.

alchitry commented 1 month ago

This seems to be an issue with the included JRE (maybe permissions. The pre-built code ships with a JRE while you're using your own JRE when you compile from source.

I'm firing up a VM to test this out as I can't reproduce the issue on my desktop (Arch with Gnome).

alchitry commented 1 month ago

I was unable to reproduce this on Ubuntu 22.04.

Check the permissions on the file alchitry-labs-2.0.11/lib/runtime/lib/jspawnhelper to see if it can be executed.

natalieagus commented 4 weeks ago

Yes, jspawnhelper is executable.

image

I specifically use this VM: https://mac.getutm.app/gallery/debian-12-rosetta so that I can compile using my Apple Silicon Mac, and then load the binary to my Alchitry Au using Alchitry Loader from my host OS.

I can try with other native x86 VMs later on, using EC2 instance or something because I don't have the hardware with me. For now, compiling from source works just fine. Thank you.

natalieagus commented 3 weeks ago

Update: it was OK with other VMs, seems like it's specific somehow to this Debian 12.5 + Rosetta VM build. Will update if I ever find out why.

alchitry commented 2 weeks ago

I'm going to close this since it seems machine specific. If more people have this problem we can re-open it.