# BinDeps provider for hwloc library on Windows

**URL:** <https://discourse.julialang.org/t/bindeps-provider-for-hwloc-library-on-windows/13832>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 21, 2018, 1:31pm UTC](https://discourse.julialang.org/t/bindeps-provider-for-hwloc-library-on-windows/13832 "2018-08-21T13:31:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schnetter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schnetter/32/45_2.png) [@schnetter](https://discourse.julialang.org/u/schnetter)\
**Post date:** [August 21, 2018, 1:31pm UTC](https://discourse.julialang.org/t/bindeps-provider-for-hwloc-library-on-windows/13832/1 "2018-08-21T13:31:47Z")

</div>

I maintain Julia bindings for the [hwloc](https://www.open-mpi.org/projects/hwloc/) library at [https://github.com/JuliaParallel/Hwloc.jl](https://github.com/JuliaParallel/Hwloc.jl). Installing hwloc works fine on Linux and Darwin (macOS), but fails on Windows. I have a Windows desktop for experimenting, but am not familiar with Windows or with BinDeps for Windows. Things fail (see below), and I am looking for pointers for how to debug this.

I have Appveyor set up, and it might be easiest to look here [https://github.com/JuliaParallel/Hwloc.jl/pull/17](https://github.com/JuliaParallel/Hwloc.jl/pull/17) to see the build errors. In short, `deps/build.jl` contains

```nohighlight
provides(Binaries,
         URI("http://www.open-mpi.org/software/hwloc/v2.0/downloads/" *
             "hwloc-win$(Base.Sys.WORD_SIZE)-build-2.0.1.zip"),
         [libhwloc],
         unpacked_dir="hwloc-win$(Base.Sys.WORD_SIZE)-build-2.0.1/bin",
         os = :Windows)

```

and this leads to the error

```julia
ERROR: LoadError: Provider Binaries failed to satisfy dependency libhwloc

```

for both 32-bit and 64-bit Windows. Apart from this error message, there is not much more information pointing to what exactly went wrong. See the Appveyor results from the pull request above for the complete output with all details.

I also briefly tried using WinRPM, but didn’t get much further. If you think that WinRPM is the way to go, let me know, and I’ll re-enable it.

I’d be grateful for any pointers.  
-erik

---

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [August 21, 2018, 4:53pm UTC](https://discourse.julialang.org/t/bindeps-provider-for-hwloc-library-on-windows/13832/2 "2018-08-21T16:53:06Z")

</div>

You got me curious and I spend some time looking into this, but in the end it turns out that the dll in the download has a different name and it is just a matter to update the alias. Send in a PR.

---

<div class="post-metadata">

**Author:** ![schnetter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schnetter/32/45_2.png) [@schnetter](https://discourse.julialang.org/u/schnetter)\
**Post date:** [August 21, 2018, 5:39pm UTC](https://discourse.julialang.org/t/bindeps-provider-for-hwloc-library-on-windows/13832/3 "2018-08-21T17:39:40Z")

</div>

D’oh. Thanks for the pointer – I updated the alias.

-erik
