# Error while compiling ASL

**URL:** https://discourse.vtk.org/t/error-while-compiling-asl/7180
**Category:** Support
**Created:** [November 15, 2021, 5:57pm UTC](https://discourse.vtk.org/t/error-while-compiling-asl/7180 "2021-11-15T17:57:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ganesh314159](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ganesh314159/32/4273_2.png) [@Ganesh314159](https://discourse.vtk.org/u/Ganesh314159)
#### Post date: [November 15, 2021, 5:57pm UTC](https://discourse.vtk.org/t/error-while-compiling-asl/7180/1 "2021-11-15T17:57:26Z")

</div>

Well, I was compiling ASL using cmake and got Following error

```auto
CMake Error at /usr/lib64/cmake/vtk/vtkDetectLibraryType.cmake:23 (message):
The `PATH` argument is required.                                                                             
Call Stack (most recent call first):                                                                           
/usr/lib64/cmake/vtk/patches/99/FindHDF5.cmake:1066 (vtk_detect_library_type)                                
/usr/lib64/cmake/vtk/VTK-vtk-module-find-packages.cmake:1355 (find_package)                                  
/usr/lib64/cmake/vtk/vtk-config.cmake:150 (include)                                                          
CMakeLists.txt:56 (find_package)

```

Can you guys help me to fix it?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [November 15, 2021, 8:40pm UTC](https://discourse.vtk.org/t/error-while-compiling-asl/7180/2 "2021-11-15T20:40:19Z")

</div>

Hmm. It seems that HDF5 is not found in your case? Or it ended up using a different variable than is detected. Could you poke around in `FindHDF5` and trace what might be going wrong around line 1066 on your setup? Using `cmake --trace-expand` can help to see what CMake sees (and hopefully the variable name that actually has the path to HDF5 shows up).

---

<div class="post-metadata">

### Author: ![Ganesh314159](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ganesh314159/32/4273_2.png) [@Ganesh314159](https://discourse.vtk.org/u/Ganesh314159)
#### Post date: [November 16, 2021, 3:52am UTC](https://discourse.vtk.org/t/error-while-compiling-asl/7180/3 "2021-11-16T03:52:33Z")

</div>

This is code at line 1066 in FindHDF5.cmake

```auto
        vtk_detect_library_type(_hdf5_libtype PATH "${_hdf5_location}")

```

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [November 16, 2021, 2:01pm UTC](https://discourse.vtk.org/t/error-while-compiling-asl/7180/4 "2021-11-16T14:01:04Z")

</div>

I know that. What I don’t have is the actual values of the variables involved that get to that point. This depends on your environment and HDF5 installation, so I can’t do much without the instructions to make this or traces of how it got into this state. If you look at the way `_hdf5_location` is calculated, it asks a set of variables that it could be in. That is missing some case that ends up happening in your environment.

---

<div class="post-metadata">

### Author: ![Ganesh314159](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ganesh314159/32/4273_2.png) [@Ganesh314159](https://discourse.vtk.org/u/Ganesh314159)
#### Post date: [November 16, 2021, 2:58pm UTC](https://discourse.vtk.org/t/error-while-compiling-asl/7180/5 "2021-11-16T14:58:37Z")

</div>

I am using Garuda Linux
