Skip to content

gsl not found on Windows build #190

@matteodelucchi

Description

@matteodelucchi

I suggest that there is another issue that is related to the environmental variable that specifies GSL on Windows. Because the Cygwin GSL flags are:

Run cygcheck -cd |grep gsl
  cygcheck -cd |grep gsl
  cygcheck -c libgsl-devel
  cygcheck -l libgsl-devel
  echo "-------------\n"
  echo "$GITHUB_CONTEXT"
  echo "-------------\n"
  echo "GSL DLLs in Cygwin:"
  Get-ChildItem "C:\cygwin64\bin\cyggsl*" -ErrorAction SilentlyContinue
  echo "GSL include directory:"
  Get-ChildItem "C:\cygwin64\usr\include\gsl" -ErrorAction SilentlyContinue
  echo "GSL lib directory:"
  Get-ChildItem "C:\cygwin64\lib\libgsl*" -ErrorAction SilentlyContinue
  echo "LIB_GSL:"
  echo $env:LIB_GSL
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    BUILD_LOC: ./build
    BRANCH: 187-issue-with-ragg-within-the-installation-workflow-for-windows
    JAGS_MAJORV: 4
    JAGS_VERSION: 4.3.1
    JAGS_URL: https://sourceforge.net/projects/mcmc-jags/files/JAGS
    GITHUB_PAT: ***
    R_KEEP_PKG_SOURCE: yes
  
Cygwin Package Information
No setup information found
No setup information found
-------------\n
-------------\n
GSL DLLs in Cygwin:
    Directory: C:\cygwin64\bin
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---           3/[2](https://github.com/furrer-lab/abn/actions/runs/15319433652/job/43099673319?pr=189#step:4:2)4/2017  4:47 PM        2275[3](https://github.com/furrer-lab/abn/actions/runs/15319433652/job/43099673319?pr=189#step:4:3)47 cyggsl-19.dll
GSL include directory:
GSL lib directory:
LIB_GSL:

The LIB_GSL, which is crucial for the Makevars.win, seems empty; therefore, the gsl headers can't be found when installing abn. I wonder if all the other successfully installed packages don't use gsl, if the LIB_GSL is indeed not set correctly, or if abn only doesn't find the flags.
Solutions that come to my mind:

  1. Compile gsl on Windows
  2. Set the flags correctly so they are found by gsl-config.
  3. Check if any other successfully installed packages use gsl and check how they specify the flags.

Originally posted by @matteodelucchi in #189 (comment)

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions