Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking problems against GSL 2.6 on Windows #25

Closed
tschoonj opened this issue Sep 5, 2019 · 4 comments
Closed

Linking problems against GSL 2.6 on Windows #25

tschoonj opened this issue Sep 5, 2019 · 4 comments

Comments

@tschoonj
Copy link
Collaborator

tschoonj commented Sep 5, 2019

It would appear that gsl_spmatrix_compare_idx was removed in 2.6, which is causing linker trouble on Windows.

/bin/sh ./libtool  --tag=FC   --mode=compile gfortran -DHAVE_CONFIG_H -I.  -I. -I.   -g -O2 -c -o fgsl.lo fgsl.F90
libtool: compile:  gfortran -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c fgsl.F90  -DDLL_EXPORT -o .libs/fgsl.o
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I. -I.   -g -O2 -MT libfgsl_la-fgsl_utils.lo -MD -MP -MF .deps/libfgsl_la-fgsl_utils.Tpo -c -o libfgsl_la-fgsl_utils.lo `test -f 'fgsl_utils.c' || echo './'`fgsl_utils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT libfgsl_la-fgsl_utils.lo -MD -MP -MF .deps/libfgsl_la-fgsl_utils.Tpo -c fgsl_utils.c  -DDLL_EXPORT -DPIC -o .libs/libfgsl_la-fgsl_utils.o
mv -f .deps/libfgsl_la-fgsl_utils.Tpo .deps/libfgsl_la-fgsl_utils.Plo
/bin/sh ./libtool  --tag=FC   --mode=link gfortran  -g -O2 -version-info 1:0:0 -no-undefined  -o libfgsl.la -rpath /home/VssAdministrator/install/lib fgsl.lo libfgsl_la-fgsl_utils.lo  -lgsl -lgslcblas -lm 
libtool: link: gfortran -shared  .libs/fgsl.o .libs/libfgsl_la-fgsl_utils.o   -lgsl -lgslcblas  -O2   -o .libs/libfgsl-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libfgsl.dll.a
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .libs/fgsl.o: in function `__fgsl_MOD_fgsl_spmatrix_compare_idx':
D:\a\1\s\fgsl-1.1.0/api/spmatrix.finc:42: undefined reference to `gsl_spmatrix_compare_idx'
collect2.exe: error: ld returned 1 exit status
@reinh-bader
Copy link
Owner

Yes, from the GSL release notes I saw some removals. However, the current release only accounts for those up to version 2.4. I'll update the ticket when I get to 2.6 support.

@kkumer
Copy link

kkumer commented Jan 30, 2020

Just to mention that on linux I had the same problem with missing gsl_spmatrix_compare_idx with GSL 2.6 (I compiled fgsl myself from present git sources). I downgraded GSL to 2.5 and my programs compile ok now.

@reinh-bader
Copy link
Owner

@tschoonj with the 1.4.0 branch created the CI builds fail again.
Some for good reason (GSL 2.4 should be removed), but builds against GSL 2.5 should run OK.

2.6 will also fail at the current stage, but these are marked "allowed failures" anyway.

@reinh-bader
Copy link
Owner

Resolved with the 1.4.0 release. Note that the minimum version of GSL to use is 2.5.

Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants