beehive-lab / TornadoVM

TornadoVM: A practical and efficient heterogeneous programming framework for managed languages
https://www.tornadovm.org
Apache License 2.0
1.17k stars 110 forks source link

Cannot install on Linux : No rule to make target 'jdk21' #349

Closed R366Y closed 5 months ago

R366Y commented 5 months ago

Thank you for taking the time to submit a bug report. Please fill the following template with your report to help our team to fix and/or propose solutions.


Describe the bug

I'm trying to install tornadoVM following the tutorial I have linux jdk21 installed : /usr/lib/jvm/jdk-21-oracle-x64

How To Reproduce

git cloned master branch

cd TornadoVM/bin
./tornadovm-installer --jdk jdk21 --backend opencl,ptx
_... downloaded some stuff..._
Checking dependency: cmake-3.25.2-linux-x86_64.tar.gz

Checking dependency: apache-maven-3.9.3-bin.tar.gz

Checking dependency: jdk-21_linux-x64_bin.tar.gz
make: *** No rule to make target 'jdk21'.  Stop.
 ------------------------------------------
        TornadoVM installation done        
 ------------------------------------------
Creating source file ......................
........................................[ok]

To run TornadoVM, first run `source setvars.sh`

Expected behavior

A clear and concise description of what you expected to happen.

Computing system setup (please complete the following information):

Additional context

Add any other context about the problem here.


stratika commented 5 months ago

hi @R366Y, my guess is that the script breaks because you invoke it from within the bin directory, and then it cannot find the Makefile.

You can try to run the installer script, as follows:

cd TornadoVM
./bin/tornadovm-installer --jdk jdk21 --backend opencl,ptx
R366Y commented 5 months ago

It worked! thank you very much and sorry for the dumb question.

stratika commented 5 months ago

Sure, no problem. We can update the script, but in this case the script should be aware of where is the root directory of the project.