hmenke / ryuon-cmake

CMake build system for RYUON
https://kichiki.github.io/ryuon/
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Could NOT find ARPACK (missing: ARPACK_LIBRARIES) #1

Closed ZERuan closed 6 years ago

ZERuan commented 6 years ago

Thank you for your help, but new error: Could NOT find ARPACK (missing: ARPACK_LIBRARIES)

The program is:

zruan@ci2ma-All-Series:~$ cd Desktop/ryuon-cmake/
zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake$ mkdir build
zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake$ cd build/
zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The Fortran compiler identification is GNU 5.4.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
CMake Error at /usr/local/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find ARPACK (missing: ARPACK_LIBRARIES)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  FindARPACK.cmake:6 (find_package_handle_standard_args)
  CMakeLists.txt:35 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/zruan/Desktop/ryuon-cmake/build/CMakeFiles/CMakeOutput.log".
zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake/build$ make -j 16
make: *** No targets specified and no makefile found.  Stop.
zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake/build$ make -j 16 test
make: *** No rule to make target 'test'.  Stop.
zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake/build$ 
hmenke commented 6 years ago

Well, you have to install ARPACK. All required packages are list in the README. If you are using Ubuntu 18.04 LTS, you can install all dependencies with a single command:

sudo apt-get install build-essential cmake git libarpack2-dev libblas-dev libgsl-dev gfortran guile-2.0-dev liblapack-dev libnetcdf-dev libpython2.7-dev python2.7 swig
ZERuan commented 6 years ago

@hmenke Thanks a lot. However, after make -j 16, with so many warnings and notes, it turned out to be failed:

Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake/build$ make -j 16
Scanning dependencies of target stokes_swig_compilation
Scanning dependencies of target nitsol
Scanning dependencies of target iter
[  1%] Swig source
[  2%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nitbd.f.o
[  3%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nitdrv.f.o
[  4%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nitbt.f.o
[  5%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nittfq.f.o
[  6%] Building C object CMakeFiles/iter.dir/libiter/src/bico.c.o
[  7%] Building C object CMakeFiles/iter.dir/libiter/src/cg.c.o
[  7%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nitsol.f.o
[  8%] Building C object CMakeFiles/iter.dir/libiter/src/bicg.c.o
[ 10%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nitgm.f.o
[ 10%] Building C object CMakeFiles/iter.dir/libiter/src/cg_.c.o
[ 11%] Building C object CMakeFiles/iter.dir/libiter/src/atpres.c.o
[ 12%] Building C object CMakeFiles/iter.dir/libiter/src/bi-cgstab.c.o
[ 13%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nitjv.f.o
[ 14%] Building Fortran object CMakeFiles/nitsol.dir/nitsol/Nitsol/nitstb.f.o
[ 14%] Building C object CMakeFiles/iter.dir/libiter/src/bicgstab.c.o
/home/zruan/Desktop/ryuon-cmake/libiter/src/bico.c: In function ‘bico’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/bico.c:101:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1);
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bico.c:28:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bico.c:101:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1);
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bico.c:28:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bico.c:108:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bico.c:39:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg.c: In function ‘cg’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg.c:170:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg.c:170:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg.c:174:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c: In function ‘cg_’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:161:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // b2 = (b, b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c: In function ‘sta’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:161:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // b2 = (b, b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:169:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c: In function ‘cg_pc’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:395:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // b2 = (b, b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:395:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // b2 = (b, b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:403:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cg_.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
[ 15%] Building C object CMakeFiles/iter.dir/libiter/src/cgne.c.o
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:203:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:203:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:208:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r0, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:56:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c: In function ‘sta_pc’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:501:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:501:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:506:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r0, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:56:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicg.c: In function ‘bicg’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicg.c:95:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1);
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c: In function ‘sta2’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicg.c:28:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:843:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:843:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:848:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r0, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:56:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicg.c:95:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1);
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicg.c:28:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicg.c:100:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicg.c:39:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c: In function ‘sta2_pc’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:1266:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:1266:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:1271:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r0, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:56:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c: In function ‘gpb’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:1688:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:1688:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:1693:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r0, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:56:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c: In function ‘gpb_pc’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:2112:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:2112:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:2117:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r0, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bi-cgstab.c:56:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/atpres.c: In function ‘atpres’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/atpres.c:231:31: warning: passing argument 2 of ‘dnrm2_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b_norm = dnrm2_ (&n, b, &i_1);
                               ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicgstab.c: In function ‘bicgstab’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/atpres.c:42:1: note: expected ‘double *’ but argument is of type ‘const double *’
 dnrm2_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicgstab.c:200:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicgstab.c:45:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicgstab.c:200:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicgstab.c:45:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicgstab.c:204:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); //         - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/atpres.c:239:26: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       daxpy_ (&n, &d_m1, b, &i_1, tmp, &i_1);
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/atpres.c:49:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/atpres.c:245:19: warning: passing argument 2 of ‘dcopy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       dcopy_ (&n, b, &i_1, r, &i_1);
                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/atpres.c:45:1: note: expected ‘double *’ but argument is of type ‘const double *’
 dcopy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/bicgstab.c:56:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
[ 16%] Building C object CMakeFiles/iter.dir/libiter/src/cgs.c.o
[ 17%] Building C object CMakeFiles/iter.dir/libiter/src/orthomin.c.o
[ 17%] Building C object CMakeFiles/iter.dir/libiter/src/gmres.c.o
[ 18%] Building C object CMakeFiles/iter.dir/libiter/src/qmr.c.o
[ 19%] Building C object CMakeFiles/iter.dir/libiter/src/myblas.c.o
[ 20%] Building C object CMakeFiles/iter.dir/libiter/src/libiter.c.o
/home/zruan/Desktop/ryuon-cmake/libiter/src/cgs.c: In function ‘cgs’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/cgs.c:193:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cgs.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cgs.c:193:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cgs.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cgs.c:198:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/cgs.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
[ 21%] Building C object CMakeFiles/iter.dir/libiter/src/steepest.c.o
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c: In function ‘gmres_m’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:281:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, f, &i_1, f, &i_1); // (f,f)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:42:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:281:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, f, &i_1, f, &i_1); // (f,f)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:42:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:293:21: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_1, f, &i_1, v, &i_1); // v = f - v
                     ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:53:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:386:25: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       daxpy_ (&n, &d_1, f, &i_1, v, &i_1); // v = f - v
                         ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:53:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c: In function ‘gmres_m_pc’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:721:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, f, &i_1, f, &i_1); // (f,f)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:42:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:721:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, f, &i_1, f, &i_1); // (f,f)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:42:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:733:21: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_1, f, &i_1, v, &i_1); // v = f - v
                     ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:53:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:830:25: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       daxpy_ (&n, &d_1, f, &i_1, v, &i_1); // v = f - v
                         ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:53:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c: In function ‘gmres’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:1043:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, f, &i_1, f, &i_1); // (f,f)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:42:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:1043:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, f, &i_1, f, &i_1); // (f,f)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:42:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:1078:21: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_1, f, &i_1, v, &i_1); // v = f - v
                     ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/gmres.c:53:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c: In function ‘otmk’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:206:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:46:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:206:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:46:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:211:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:54:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c: In function ‘otmk_pc’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:493:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:46:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:493:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&m, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:46:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:498:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&m, &d_m1, b, &i_1, r, &i_1);
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/orthomin.c:54:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
[ 22%] Linking Fortran static library libnitsol.a
/home/zruan/Desktop/ryuon-cmake/libiter/src/steepest.c: In function ‘steepest’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/steepest.c:150:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/steepest.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/steepest.c:150:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1); // (b,b)
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/steepest.c:37:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/steepest.c:154:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/steepest.c:48:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/qmr.c: In function ‘qmr’:
/home/zruan/Desktop/ryuon-cmake/libiter/src/qmr.c:99:26: warning: passing argument 2 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1);
                          ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/qmr.c:28:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/qmr.c:99:35: warning: passing argument 4 of ‘ddot_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   double b2 = ddot_ (&n, b, &i_1, b, &i_1);
                                   ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/qmr.c:28:1: note: expected ‘double *’ but argument is of type ‘const double *’
 ddot_(int* N, 
 ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/qmr.c:106:22: warning: passing argument 3 of ‘daxpy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   daxpy_ (&n, &d_m1, b, &i_1, r, &i_1); // r = A.x - b
                      ^
/home/zruan/Desktop/ryuon-cmake/libiter/src/qmr.c:39:1: note: expected ‘double *’ but argument is of type ‘const double *’
 daxpy_(int* N,
 ^
[ 22%] Built target nitsol
[ 22%] Linking C static library libiter.a
[ 22%] Built target iter
Scanning dependencies of target stokes
[ 24%] Building C object CMakeFiles/stokes.dir/libstokes/src/KIrand.c.o
[ 24%] Building C object CMakeFiles/stokes.dir/libstokes/src/XA.c.o
[ 26%] Building C object CMakeFiles/stokes.dir/libstokes/src/XC.c.o
[ 25%] Building C object CMakeFiles/stokes.dir/libstokes/src/XC-slip.c.o
[ 26%] Building C object CMakeFiles/stokes.dir/libstokes/src/XA-slip.c.o
[ 27%] Building C object CMakeFiles/stokes.dir/libstokes/src/XG.c.o
[ 28%] Building C object CMakeFiles/stokes.dir/libstokes/src/XG-slip.c.o
[ 29%] Building C object CMakeFiles/stokes.dir/libstokes/src/XP.c.o
[ 30%] Building C object CMakeFiles/stokes.dir/libstokes/src/XM.c.o
[ 32%] Building C object CMakeFiles/stokes.dir/libstokes/src/YB.c.o
[ 32%] Building C object CMakeFiles/stokes.dir/libstokes/src/XM-slip.c.o
[ 33%] Building C object CMakeFiles/stokes.dir/libstokes/src/XQ.c.o
[ 34%] Building C object CMakeFiles/stokes.dir/libstokes/src/YA-slip.c.o
[ 34%] Building C object CMakeFiles/stokes.dir/libstokes/src/YA.c.o
[ 34%] Building C object CMakeFiles/stokes.dir/libstokes/src/YB-slip.c.o
[ 35%] Building C object CMakeFiles/stokes.dir/libstokes/src/YC-slip.c.o
[ 36%] Building C object CMakeFiles/stokes.dir/libstokes/src/YC.c.o
[ 37%] Building C object CMakeFiles/stokes.dir/libstokes/src/YG-slip.c.o
[ 38%] Building C object CMakeFiles/stokes.dir/libstokes/src/YG.c.o
[ 38%] Building C object CMakeFiles/stokes.dir/libstokes/src/YH-slip.c.o
[ 39%] Building C object CMakeFiles/stokes.dir/libstokes/src/YH.c.o
[ 40%] Building C object CMakeFiles/stokes.dir/libstokes/src/YM-slip.c.o
[ 41%] Building C object CMakeFiles/stokes.dir/libstokes/src/ZM-slip.c.o
[ 42%] Building C object CMakeFiles/stokes.dir/libstokes/src/YM.c.o
[ 42%] Building C object CMakeFiles/stokes.dir/libstokes/src/ZM.c.o
[ 43%] Building C object CMakeFiles/stokes.dir/libstokes/src/angles-guile.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c: In function ‘angles_guile_get’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:84:7: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
     = scm_num2ulong (scm_length (scm_angles),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:100:4: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
    scm_int2num (i));
    ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:100:4: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:123:18: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
       double k = scm_num2dbl (scm_list_ref (scm_angle, scm_int2num (0)),
                  ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:123:56: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double k = scm_num2dbl (scm_list_ref (scm_angle, scm_int2num (0)),
                                                        ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:127:57: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double t0 = scm_num2dbl (scm_list_ref (scm_angle, scm_int2num (1)),
                                                         ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:133:19: warning: implicit declaration of function ‘scm_num2int’ [-Wimplicit-function-declaration]
       int scale = scm_num2int (scm_list_ref (scm_angle, scm_int2num (2)),
                   ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:133:57: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       int scale = scm_num2int (scm_list_ref (scm_angle, scm_int2num (2)),
                                                         ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:138:51: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       SCM scm_triplets = scm_list_ref (scm_angle, scm_int2num (3));
                                                   ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:156:8: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
        scm_int2num (j));
        ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:181:12: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
            scm_int2num (0)),
            ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:185:12: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
            scm_int2num (1)),
            ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:189:12: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
            scm_int2num (2)),
            ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/angles-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
[ 44%] Building C object CMakeFiles/stokes.dir/libstokes/src/angles.c.o
[ 45%] Building C object CMakeFiles/stokes.dir/libstokes/src/bd-imp-fast.c.o
[ 46%] Building C object CMakeFiles/stokes.dir/libstokes/src/bd-imp-nitsol.c.o
[ 47%] Building C object CMakeFiles/stokes.dir/libstokes/src/bd-imp.c.o
[ 47%] Building C object CMakeFiles/stokes.dir/libstokes/src/bead-rod-guile.c.o
[ 47%] Built target stokes_swig_compilation
[ 48%] Building C object CMakeFiles/stokes.dir/libstokes/src/bead-rod.c.o
[ 49%] Building C object CMakeFiles/stokes.dir/libstokes/src/bench.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c: In function ‘BeadRod_guile_get’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:88:7: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
     = scm_num2ulong (scm_length (scm_brs),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:97:16: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
   double eps = scm_num2dbl (scm_list_ref (scm_brs, scm_int2num (0)),
                ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:97:52: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
   double eps = scm_num2dbl (scm_list_ref (scm_brs, scm_int2num (0)),
                                                    ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:97:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:102:43: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
   SCM scm_scheme = scm_list_ref (scm_brs, scm_int2num (1));
                                           ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:144:4: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    scm_int2num (i));
    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:171:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double a0 = scm_num2dbl (scm_list_ref (scm_br, scm_int2num (0)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:177:26: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
  = scm_list_ref (scm_br, scm_int2num (1));
                          ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:198:8: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
        scm_int2num (j));
        ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:214:14: warning: implicit declaration of function ‘scm_num2int’ [-Wimplicit-function-declaration]
    int ia0 = scm_num2int (scm_list_ref (scm_pair, scm_int2num (0)),
              ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:214:51: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    int ia0 = scm_num2int (scm_list_ref (scm_pair, scm_int2num (0)),
                                                   ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:218:51: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    int ib0 = scm_num2int (scm_list_ref (scm_pair, scm_int2num (1)),
                                                   ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bead-rod-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
[ 50%] Building C object CMakeFiles/stokes.dir/libstokes/src/bonds-groups.c.o
[ 51%] Building C object CMakeFiles/stokes.dir/libstokes/src/bonds-guile.c.o
[ 52%] Building C object CMakeFiles/stokes.dir/libstokes/src/bonds.c.o
[ 52%] Building C object CMakeFiles/stokes.dir/libstokes/src/brownian.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c: In function ‘BONDS_guile_get’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:104:23: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
   unsigned long len = scm_num2ulong (scm_length (scm_bonds),
                       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:119:8: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
        scm_int2num (i));
        ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:119:8: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:142:18: warning: implicit declaration of function ‘scm_num2int’ [-Wimplicit-function-declaration]
       int type = scm_num2int (scm_list_ref (scm_bond, scm_int2num (0)),
                  ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:142:55: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       int type = scm_num2int (scm_list_ref (scm_bond, scm_int2num (0)),
                                                       ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:147:48: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       SCM scm_params = scm_list_ref (scm_bond, scm_int2num (1));
                                                ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:168:57: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       int fene = scm_num2int (scm_list_ref (scm_params, scm_int2num (0)),
                                                         ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:171:19: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
       double p1 = scm_num2dbl (scm_list_ref (scm_params, scm_int2num (1)),
                   ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:171:58: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double p1 = scm_num2dbl (scm_list_ref (scm_params, scm_int2num (1)),
                                                          ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:173:58: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double p2 = scm_num2dbl (scm_list_ref (scm_params, scm_int2num (2)),
                                                          ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:179:48: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    p3 = scm_num2dbl (scm_list_ref (scm_params, scm_int2num (3)),
                                                ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:187:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       int nex = scm_num2int (scm_list_ref (scm_bond, scm_int2num (3)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:193:47: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       SCM scm_pairs = scm_list_ref (scm_bond, scm_int2num (2));
                                               ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:211:12: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
            scm_int2num (j));
            ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:236:8: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
        scm_int2num (0)),
        ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:240:8: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
        scm_int2num (1)),
        ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/bonds-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
[ 53%] Building C object CMakeFiles/stokes.dir/libstokes/src/chebyshev.c.o
[ 54%] Building C object CMakeFiles/stokes.dir/libstokes/src/confinement-guile.c.o
[ 55%] Building C object CMakeFiles/stokes.dir/libstokes/src/coll.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c: In function ‘CF_guile_get’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:114:7: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
     = scm_num2ulong (scm_length (scm_confinement),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:128:7: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
     = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (0)),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:128:51: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
     = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (0)),
                                                   ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:128:51: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:131:51: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
     = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (1)),
                                                   ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:136:49: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
   SCM scm_conf = scm_list_ref (scm_confinement, scm_int2num (2));
                                                 ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:159:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (3)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:183:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (3)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:186:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (4)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:210:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (3)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:213:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (4)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:216:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (5)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:219:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (6)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:243:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (3)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:246:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (4)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:249:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (5)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:252:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (6)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:276:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (3)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:279:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (4)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:282:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (5)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:306:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (3)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:309:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
      = scm_num2dbl (scm_list_ref (scm_confinement, scm_int2num (4)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/confinement-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
[ 56%] Building C object CMakeFiles/stokes.dir/libstokes/src/dgeev_c.c.o
[ 57%] Building C object CMakeFiles/stokes.dir/libstokes/src/confinement.c.o
[ 58%] Building C object CMakeFiles/stokes.dir/libstokes/src/dgemv_c.c.o
[ 58%] Building C object CMakeFiles/stokes.dir/libstokes/src/dgemm_c.c.o
[ 59%] Building C object CMakeFiles/stokes.dir/libstokes/src/dgetri_c.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c: In function ‘lapack_inv’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c:231:16: warning: passing argument 2 of ‘dcopy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   dcopy_ (&nn, a, &i_1, ai, &i_1);
                ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c:10:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dcopy_ (int *, double *, int *, double *, int *);
      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c: In function ‘lapack_solve_lin’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c:300:16: warning: passing argument 2 of ‘dcopy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   dcopy_ (&nn, a, &i_1, lu, &i_1);
                ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c:10:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dcopy_ (int *, double *, int *, double *, int *);
      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c:310:15: warning: passing argument 2 of ‘dcopy_’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   dcopy_ (&n, b, &i_1, x, &i_1);
               ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgetri_c.c:10:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dcopy_ (int *, double *, int *, double *, int *);
      ^
[ 60%] Building C object CMakeFiles/stokes.dir/libstokes/src/dnaupd_c.c.o
[ 61%] Building C object CMakeFiles/stokes.dir/libstokes/src/dpotrf_c.c.o
[ 61%] Building C object CMakeFiles/stokes.dir/libstokes/src/dsaupd_c.c.o
[ 62%] Building C object CMakeFiles/stokes.dir/libstokes/src/ev-LJ-guile.c.o
[ 63%] Building C object CMakeFiles/stokes.dir/libstokes/src/ev-LJ.c.o
[ 64%] Building C object CMakeFiles/stokes.dir/libstokes/src/ev-dh-grid.c.o
[ 65%] Building C object CMakeFiles/stokes.dir/libstokes/src/ev-dh-guile.c.o
[ 66%] Building C object CMakeFiles/stokes.dir/libstokes/src/ev-dh.c.o
[ 66%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-2.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c: In function ‘EV_LJ_guile_get’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:78:7: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
     = scm_num2ulong (scm_length (scm_LJs),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:94:9: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
         scm_int2num (i));
         ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:94:9: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:117:19: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
       double e  = scm_num2dbl (scm_list_ref (scm_LJ, scm_int2num (0)),
                   ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:117:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double e  = scm_num2dbl (scm_list_ref (scm_LJ, scm_int2num (0)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:120:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double r0 = scm_num2dbl (scm_list_ref (scm_LJ, scm_int2num (1)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:123:45: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       SCM scm_plist = scm_list_ref (scm_LJ, scm_int2num (2));
                                             ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:138:12: warning: implicit declaration of function ‘scm_num2int’ [-Wimplicit-function-declaration]
    int p = scm_num2int (scm_list_ref (scm_plist, scm_int2num (j)),
            ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:138:50: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    int p = scm_num2int (scm_list_ref (scm_plist, scm_int2num (j)),
                                                  ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-LJ-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
[ 67%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-2f.c.o
[ 68%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-2ft.c.o
[ 69%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-2fts.c.o
[ 70%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-3f-matrix.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c: In function ‘EV_DH_guile_get’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:84:7: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
     = scm_num2ulong (scm_length (scm_ev_dh),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:99:16: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
   double eps = scm_num2dbl (scm_list_ref (scm_ev_dh, scm_int2num (0)),
                ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:99:54: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
   double eps = scm_num2dbl (scm_list_ref (scm_ev_dh, scm_int2num (0)),
                                                      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:99:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:102:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
   double T = scm_num2dbl (scm_list_ref (scm_ev_dh, scm_int2num (1)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:105:52: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
   double e = scm_num2dbl (scm_list_ref (scm_ev_dh, scm_int2num (2)),
                                                    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:108:53: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
   double rd = scm_num2dbl (scm_list_ref (scm_ev_dh, scm_int2num (3)),
                                                     ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:117:7: warning: implicit declaration of function ‘scm_num2int’ [-Wimplicit-function-declaration]
     = scm_num2int (scm_list_ref (scm_ev_dh, scm_int2num (4)),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:117:45: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
     = scm_num2int (scm_list_ref (scm_ev_dh, scm_int2num (4)),
                                             ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:123:32: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
     = scm_list_ref (scm_ev_dh, scm_int2num (5));
                                ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:142:4: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    scm_int2num (i));
    ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:165:57: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double nu = scm_num2dbl (scm_list_ref (scm_chain, scm_int2num (0)),
                                                         ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:169:57: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double l0 = scm_num2dbl (scm_list_ref (scm_chain, scm_int2num (1)),
                                                         ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:174:29: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
  = scm_list_ref (scm_chain, scm_int2num (2));
                             ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:190:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    int p = scm_num2int (scm_list_ref (scm_particles, scm_int2num (j)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/ev-dh-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
[ 70%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-3ft-matrix.c.o
[ 71%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-3fts-matrix.c.o
[ 73%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-3f.c.o
[ 73%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-3ft.c.o
[ 74%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald-3fts.c.o
[ 75%] Building C object CMakeFiles/stokes.dir/libstokes/src/ewald.c.o
[ 76%] Building C object CMakeFiles/stokes.dir/libstokes/src/excluded-volume-guile.c.o
[ 76%] Building C object CMakeFiles/stokes.dir/libstokes/src/excluded-volume.c.o
[ 77%] Building C object CMakeFiles/stokes.dir/libstokes/src/f.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c: In function ‘EV_guile_get’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:83:7: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
     = scm_num2ulong (scm_length (scm_EVs),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:99:17: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
   double rmax = scm_num2dbl (scm_list_ref (scm_EVs, scm_int2num (0)),
                 ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:99:53: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
   double rmax = scm_num2dbl (scm_list_ref (scm_EVs, scm_int2num (0)),
                                                     ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:99:53: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:107:43: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       SCM scm_EV = scm_list_ref (scm_EVs, scm_int2num (i));
                                           ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:128:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double v0 = scm_num2dbl (scm_list_ref (scm_EV, scm_int2num (0)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:131:18: warning: implicit declaration of function ‘scm_num2int’ [-Wimplicit-function-declaration]
       int fene = scm_num2int (scm_list_ref (scm_EV, scm_int2num (1)),
                  ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:131:53: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       int fene = scm_num2int (scm_list_ref (scm_EV, scm_int2num (1)),
                                                     ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:135:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double p1 = scm_num2dbl (scm_list_ref (scm_EV, scm_int2num (2)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:138:54: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       double p2 = scm_num2dbl (scm_list_ref (scm_EV, scm_int2num (3)),
                                                      ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:161:49: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       SCM scm_particles = scm_list_ref (scm_EV, scm_int2num (4));
                                                 ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:175:55: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
    int ip = scm_num2int (scm_list_ref (scm_particles, scm_int2num (j)),
                                                       ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/excluded-volume-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
[ 78%] Building C object CMakeFiles/stokes.dir/libstokes/src/ft.c.o
[ 79%] Building C object CMakeFiles/stokes.dir/libstokes/src/grid.c.o
[ 80%] Building C object CMakeFiles/stokes.dir/libstokes/src/fts.c.o
[ 80%] Building C object CMakeFiles/stokes.dir/libstokes/src/lub-matrix.c.o
[ 81%] Building C object CMakeFiles/stokes.dir/libstokes/src/lub.c.o
[ 82%] Building C object CMakeFiles/stokes.dir/libstokes/src/matrix.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c: In function ‘mul_matrices’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:341:13: warning: passing argument 5 of ‘dgemm_wrap’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
        1.0, A,
             ^
In file included from /home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:34:0:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgemm_c.h:45:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dgemm_wrap (int m, int n, int k,
      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:342:8: warning: passing argument 6 of ‘dgemm_wrap’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
        B,
        ^
In file included from /home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:34:0:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgemm_c.h:45:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dgemm_wrap (int m, int n, int k,
      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c: In function ‘dot_prod_matrix’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:381:13: warning: passing argument 4 of ‘dgemv_wrap’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
        1.0, mat,
             ^
In file included from /home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:35:0:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgemv_c.h:41:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dgemv_wrap (int m, int n, double alpha, double *a,
      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:382:8: warning: passing argument 5 of ‘dgemv_wrap’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
        x,
        ^
In file included from /home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:35:0:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgemv_c.h:41:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dgemv_wrap (int m, int n, double alpha, double *a,
      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c: In function ‘dot_prod_matrix_’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:422:15: warning: passing argument 4 of ‘dgemv_wrap’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
        alpha, mat,
               ^
In file included from /home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:35:0:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgemv_c.h:41:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dgemv_wrap (int m, int n, double alpha, double *a,
      ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:423:8: warning: passing argument 5 of ‘dgemv_wrap’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
        x,
        ^
In file included from /home/zruan/Desktop/ryuon-cmake/libstokes/src/matrix.c:35:0:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/dgemv_c.h:41:6: note: expected ‘double *’ but argument is of type ‘const double *’
 void dgemv_wrap (int m, int n, double alpha, double *a,
      ^
[ 83%] Building C object CMakeFiles/stokes.dir/libstokes/src/minv-poly.c.o
[ 84%] Building C object CMakeFiles/stokes.dir/libstokes/src/nitsol_c.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/nitsol_c.c: In function ‘NITSOL_solve’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/nitsol_c.c:724:3: warning: implicit declaration of function ‘nitsol_’ [-Wimplicit-function-declaration]
   nitsol_ (&(nit->n),
   ^
[ 85%] Building C object CMakeFiles/stokes.dir/libstokes/src/noHI.c.o
[ 85%] Building C object CMakeFiles/stokes.dir/libstokes/src/non-ewald.c.o
[ 86%] Building C object CMakeFiles/stokes.dir/libstokes/src/ode.c.o
[ 87%] Building C object CMakeFiles/stokes.dir/libstokes/src/ode-quaternion.c.o
[ 88%] Building C object CMakeFiles/stokes.dir/libstokes/src/stokes-nc-read.c.o
[ 89%] Building C object CMakeFiles/stokes.dir/libstokes/src/periodicity.c.o
[ 90%] Building C object CMakeFiles/stokes.dir/libstokes/src/stokes-guile.c.o
[ 90%] Building C object CMakeFiles/stokes.dir/libstokes/src/stokes-nc.c.o
[ 91%] Building C object CMakeFiles/stokes.dir/libstokes/src/stokes.c.o
[ 92%] Building C object CMakeFiles/stokes.dir/libstokes/src/twobody-slip.c.o
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c: In function ‘guile_check_symbol’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:35:9: warning: implicit declaration of function ‘scm_str2symbol’ [-Wimplicit-function-declaration]
   sym = scm_str2symbol (name);
         ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:35:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   sym = scm_str2symbol (name);
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:38:9: warning: implicit declaration of function ‘scm_sym2var’ [-Wimplicit-function-declaration]
   var = scm_sym2var (sym, 
         ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:39:8: warning: implicit declaration of function ‘scm_current_module_lookup_closure’ [-Wimplicit-function-declaration]
        scm_current_module_lookup_closure (), 
        ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:38:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   var = scm_sym2var (sym, 
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c: In function ‘guile_get_int’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:98:8: warning: implicit declaration of function ‘scm_num2int’ [-Wimplicit-function-declaration]
    i = scm_num2int (scm_param, 0, "guile_get_int");
        ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c: In function ‘guile_get_double’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:125:8: warning: implicit declaration of function ‘scm_num2dbl’ [-Wimplicit-function-declaration]
    d = scm_num2dbl (scm_param, "guile_get_double");
        ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c: In function ‘guile_get_doubles’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:152:10: warning: implicit declaration of function ‘scm_num2ulong’ [-Wimplicit-function-declaration]
    len = scm_num2ulong (scm_length (scm_param),
          ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:163:7: warning: implicit declaration of function ‘scm_int2num’ [-Wimplicit-function-declaration]
       scm_int2num (i)),
       ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:163:7: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:186:9: warning: passing argument 2 of ‘scm_vector_ref’ makes pointer from integer without a cast [-Wint-conversion]
         scm_int2num (i)),
         ^
In file included from /usr/local/include/guile/2.2/libguile/fluids.h:27:0,
                 from /usr/local/include/guile/2.2/libguile.h:54,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:20:
/usr/local/include/guile/2.2/libguile/vectors.h:33:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_vector_ref (SCM v, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c: In function ‘guile_get_doubles_’:
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:222:7: warning: passing argument 2 of ‘scm_list_ref’ makes pointer from integer without a cast [-Wint-conversion]
       scm_int2num (i)),
       ^
In file included from /usr/local/include/guile/2.2/libguile.h:72:0,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:20:
/usr/local/include/guile/2.2/libguile/list.h:49:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_list_ref (SCM lst, SCM k);
             ^
/home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:239:9: warning: passing argument 2 of ‘scm_vector_ref’ makes pointer from integer without a cast [-Wint-conversion]
         scm_int2num (i)),
         ^
In file included from /usr/local/include/guile/2.2/libguile/fluids.h:27:0,
                 from /usr/local/include/guile/2.2/libguile.h:54,
                 from /home/zruan/Desktop/ryuon-cmake/libstokes/src/stokes-guile.c:20:
/usr/local/include/guile/2.2/libguile/vectors.h:33:13: note: expected ‘SCM {aka struct scm_unused_struct *}’ but argument is of type ‘int’
 SCM_API SCM scm_vector_ref (SCM v, SCM k);
             ^
[ 93%] Building C object CMakeFiles/stokes.dir/libstokes/src/twobody.c.o
[ 94%] Building C object CMakeFiles/stokes.dir/libstokes/src/two-body-res.c.o
[ 95%] Linking C static library libstokes.a
[ 95%] Built target stokes
Scanning dependencies of target _stokes
Scanning dependencies of target test-stokes
Scanning dependencies of target stokes3
[ 96%] Building C object CMakeFiles/test-stokes.dir/stokes/src/test-stokes.c.o
[ 97%] Building C object CMakeFiles/stokes3.dir/stokes/src/stokes3.c.o
[ 97%] Building C object CMakeFiles/stokes3.dir/stokes/src/file.c.o
[ 97%] Building C object CMakeFiles/_stokes.dir/CMakeFiles/_stokes.dir/stokesPYTHON_wrap.c.o
[ 98%] Linking C executable test-stokes
[ 99%] Linking C executable stokes3
[ 99%] Built target test-stokes
libstokes.a(angles-guile.c.o): In function `angles_guile_get':
angles-guile.c:(.text+0xdc): undefined reference to `scm_num2ulong'
angles-guile.c:(.text+0x14b): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x1db): undefined reference to `scm_num2ulong'
angles-guile.c:(.text+0x235): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x25d): undefined reference to `scm_num2dbl'
angles-guile.c:(.text+0x279): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x2a1): undefined reference to `scm_num2dbl'
angles-guile.c:(.text+0x2df): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x30c): undefined reference to `scm_num2int'
angles-guile.c:(.text+0x31e): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x3ae): undefined reference to `scm_num2ulong'
angles-guile.c:(.text+0x3cf): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x465): undefined reference to `scm_num2ulong'
angles-guile.c:(.text+0x4c5): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x4f2): undefined reference to `scm_num2int'
angles-guile.c:(.text+0x504): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x531): undefined reference to `scm_num2int'
angles-guile.c:(.text+0x543): undefined reference to `scm_int2num'
angles-guile.c:(.text+0x570): undefined reference to `scm_num2int'
libstokes.a(bead-rod-guile.c.o): In function `BeadRod_guile_get':
bead-rod-guile.c:(.text+0xeb): undefined reference to `scm_num2ulong'
bead-rod-guile.c:(.text+0x111): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x139): undefined reference to `scm_num2dbl'
bead-rod-guile.c:(.text+0x160): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x273): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x33b): undefined reference to `scm_num2ulong'
bead-rod-guile.c:(.text+0x3cd): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x3f5): undefined reference to `scm_num2dbl'
bead-rod-guile.c:(.text+0x423): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x4eb): undefined reference to `scm_num2ulong'
bead-rod-guile.c:(.text+0x512): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x54f): undefined reference to `scm_num2ulong'
bead-rod-guile.c:(.text+0x5e5): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x612): undefined reference to `scm_num2int'
bead-rod-guile.c:(.text+0x627): undefined reference to `scm_int2num'
bead-rod-guile.c:(.text+0x654): undefined reference to `scm_num2int'
libstokes.a(bonds-guile.c.o): In function `BONDS_guile_get':
bonds-guile.c:(.text+0xdc): undefined reference to `scm_num2ulong'
bonds-guile.c:(.text+0x151): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x1e4): undefined reference to `scm_num2ulong'
bonds-guile.c:(.text+0x241): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x26e): undefined reference to `scm_num2int'
bonds-guile.c:(.text+0x283): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x316): undefined reference to `scm_num2ulong'
bonds-guile.c:(.text+0x371): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x39e): undefined reference to `scm_num2int'
bonds-guile.c:(.text+0x3b3): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x3db): undefined reference to `scm_num2dbl'
bonds-guile.c:(.text+0x3f7): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x41f): undefined reference to `scm_num2dbl'
bonds-guile.c:(.text+0x44b): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x473): undefined reference to `scm_num2dbl'
bonds-guile.c:(.text+0x48f): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x4bc): undefined reference to `scm_num2int'
bonds-guile.c:(.text+0x4d1): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x564): undefined reference to `scm_num2ulong'
bonds-guile.c:(.text+0x58b): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x627): undefined reference to `scm_num2ulong'
bonds-guile.c:(.text+0x68d): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x6ba): undefined reference to `scm_num2int'
bonds-guile.c:(.text+0x6cc): undefined reference to `scm_int2num'
bonds-guile.c:(.text+0x6f9): undefined reference to `scm_num2int'
libstokes.a(confinement-guile.c.o): In function `CF_guile_get':
confinement-guile.c:(.text+0xf6): undefined reference to `scm_num2ulong'
confinement-guile.c:(.text+0x15d): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x188): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x1a7): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x1d2): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x1fc): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x2a2): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x2cd): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x3cf): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x3fa): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x416): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x441): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x548): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x573): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x58f): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x5ba): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x5d6): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x601): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x61d): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x648): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x74f): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x77a): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x796): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x7c1): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x7dd): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x808): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x824): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x84f): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x960): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x98b): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x9a7): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0x9d2): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0x9ee): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0xa19): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0xb25): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0xb50): undefined reference to `scm_num2dbl'
confinement-guile.c:(.text+0xb6c): undefined reference to `scm_int2num'
confinement-guile.c:(.text+0xb97): undefined reference to `scm_num2dbl'
libstokes.a(ev-LJ-guile.c.o): In function `EV_LJ_guile_get':
ev-LJ-guile.c:(.text+0xcd): undefined reference to `scm_num2ulong'
ev-LJ-guile.c:(.text+0x141): undefined reference to `scm_int2num'
ev-LJ-guile.c:(.text+0x1ce): undefined reference to `scm_num2ulong'
ev-LJ-guile.c:(.text+0x225): undefined reference to `scm_int2num'
ev-LJ-guile.c:(.text+0x24d): undefined reference to `scm_num2dbl'
ev-LJ-guile.c:(.text+0x269): undefined reference to `scm_int2num'
ev-LJ-guile.c:(.text+0x291): undefined reference to `scm_num2dbl'
ev-LJ-guile.c:(.text+0x2ad): undefined reference to `scm_int2num'
ev-LJ-guile.c:(.text+0x33a): undefined reference to `scm_num2ulong'
ev-LJ-guile.c:(.text+0x35b): undefined reference to `scm_int2num'
ev-LJ-guile.c:(.text+0x388): undefined reference to `scm_num2int'
libstokes.a(ev-dh-guile.c.o): In function `EV_DH_guile_get':
ev-dh-guile.c:(.text+0xf2): undefined reference to `scm_num2ulong'
ev-dh-guile.c:(.text+0x14e): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x176): undefined reference to `scm_num2dbl'
ev-dh-guile.c:(.text+0x192): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x1ba): undefined reference to `scm_num2dbl'
ev-dh-guile.c:(.text+0x1d6): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x1fe): undefined reference to `scm_num2dbl'
ev-dh-guile.c:(.text+0x21a): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x242): undefined reference to `scm_num2dbl'
ev-dh-guile.c:(.text+0x2e9): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x316): undefined reference to `scm_num2int'
ev-dh-guile.c:(.text+0x32e): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x3bb): undefined reference to `scm_num2ulong'
ev-dh-guile.c:(.text+0x3e2): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x475): undefined reference to `scm_num2ulong'
ev-dh-guile.c:(.text+0x4d2): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x4fa): undefined reference to `scm_num2dbl'
ev-dh-guile.c:(.text+0x516): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x53e): undefined reference to `scm_num2dbl'
ev-dh-guile.c:(.text+0x55a): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x5ed): undefined reference to `scm_num2ulong'
ev-dh-guile.c:(.text+0x614): undefined reference to `scm_int2num'
ev-dh-guile.c:(.text+0x641): undefined reference to `scm_num2int'
libstokes.a(excluded-volume-guile.c.o): In function `EV_guile_get':
excluded-volume-guile.c:(.text+0x101): undefined reference to `scm_num2ulong'
excluded-volume-guile.c:(.text+0x20e): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x239): undefined reference to `scm_num2dbl'
excluded-volume-guile.c:(.text+0x288): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x31a): undefined reference to `scm_num2ulong'
excluded-volume-guile.c:(.text+0x373): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x39b): undefined reference to `scm_num2dbl'
excluded-volume-guile.c:(.text+0x3b7): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x3e4): undefined reference to `scm_num2int'
excluded-volume-guile.c:(.text+0x3f9): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x421): undefined reference to `scm_num2dbl'
excluded-volume-guile.c:(.text+0x43d): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x465): undefined reference to `scm_num2dbl'
excluded-volume-guile.c:(.text+0x50c): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x59b): undefined reference to `scm_num2ulong'
excluded-volume-guile.c:(.text+0x5c2): undefined reference to `scm_int2num'
excluded-volume-guile.c:(.text+0x5ef): undefined reference to `scm_num2int'
libstokes.a(stokes-guile.c.o): In function `guile_check_symbol':
stokes-guile.c:(.text+0x19): undefined reference to `scm_str2symbol'
stokes-guile.c:(.text+0x29): undefined reference to `scm_current_module_lookup_closure'
stokes-guile.c:(.text+0x43): undefined reference to `scm_sym2var'
libstokes.a(stokes-guile.c.o): In function `guile_get_int':
stokes-guile.c:(.text+0x12d): undefined reference to `scm_num2int'
libstokes.a(stokes-guile.c.o): In function `guile_get_double':
stokes-guile.c:(.text+0x1a9): undefined reference to `scm_num2dbl'
libstokes.a(stokes-guile.c.o): In function `guile_get_doubles':
stokes-guile.c:(.text+0x243): undefined reference to `scm_num2ulong'
stokes-guile.c:(.text+0x2ad): undefined reference to `scm_int2num'
stokes-guile.c:(.text+0x2d5): undefined reference to `scm_num2dbl'
stokes-guile.c:(.text+0x37c): undefined reference to `scm_int2num'
stokes-guile.c:(.text+0x3a4): undefined reference to `scm_num2dbl'
libstokes.a(stokes-guile.c.o): In function `guile_get_doubles_':
stokes-guile.c:(.text+0x456): undefined reference to `scm_num2ulong'
stokes-guile.c:(.text+0x49d): undefined reference to `scm_int2num'
stokes-guile.c:(.text+0x4c5): undefined reference to `scm_num2dbl'
stokes-guile.c:(.text+0x54a): undefined reference to `scm_int2num'
stokes-guile.c:(.text+0x572): undefined reference to `scm_num2dbl'
libstokes.a(stokes-guile.c.o): In function `guile_get_length':
stokes-guile.c:(.text+0x61a): undefined reference to `scm_num2ulong'
collect2: error: ld returned 1 exit status
CMakeFiles/stokes3.dir/build.make:112: recipe for target 'stokes3' failed
make[2]: *** [stokes3] Error 1
CMakeFiles/Makefile2:297: recipe for target 'CMakeFiles/stokes3.dir/all' failed
make[1]: *** [CMakeFiles/stokes3.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking C shared module _stokes.so
[100%] Built target _stokes
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
hmenke commented 6 years ago

You have the wrong version of Guile installed. You need Guile <= 2.0 (yes, that is indeed a less or equal sign). Install the guile-2.0-dev package (if you are on Ubuntu or another Debian-like distro) and remove anything related to Guile with version greater than 2.0. You can list all packages with guile in their name using dpkg -l | grep guile.

ZERuan commented 6 years ago

Error 1 has been fixed, but Error 2 still exist.

[ 30%] Linking C static library libstokes.a
[ 95%] Built target stokes
make[2]: *** No rule to make target '/usr/local/lib/libguile-2.2.so', needed by 'test-stokes'.  Stop.
make[2]: *** No rule to make target '/usr/local/lib/libguile-2.2.so', needed by 'stokes3'.  Stop.
CMakeFiles/Makefile2:220: recipe for target 'CMakeFiles/test-stokes.dir/all' failed
make[1]: *** [CMakeFiles/test-stokes.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:297: recipe for target 'CMakeFiles/stokes3.dir/all' failed
make[1]: *** [CMakeFiles/stokes3.dir/all] Error 2
make[2]: *** No rule to make target '/usr/local/lib/libguile-2.2.so', needed by '_stokes.so'.  Stop.
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/_stokes.dir/all' failed
make[1]: *** [CMakeFiles/_stokes.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
hmenke commented 6 years ago

Remove your build directory and start over from a fresh working tree. As you can see there are still references to libguile-2.2.so in your CMake configuration.

ZERuan commented 6 years ago

This is what I got, this means I have install stokes, but I have to install libtier and llibstokes? As I cannot find libiter and libstokes in /usr/local/lib

......
[ 99%] Built target test-stokes
[ 99%] Built target stokes3
[100%] Linking C shared module _stokes.so
[100%] Built target _stokes
zruan@ci2ma-All-Series:~/Desktop/ryuon-cmake/build$ make -j 16 test
Running tests...
Test project /home/zruan/Desktop/ryuon-cmake/build
    Start 1: test-stokes.c
1/2 Test #1: test-stokes.c ....................   Passed    0.27 sec
    Start 2: test-stokes.py
2/2 Test #2: test-stokes.py ...................   Passed    0.50 sec

100% tests passed, 0 tests failed out of 2

Total Test time (real) =   0.77 sec
ZERuan commented 6 years ago

fatal error

hmenke commented 6 years ago

Currently the CMake script has no support for installation.

$ sudo make install
make: *** No rule to make target 'install'.  Stop.

You can simply use test-stokes and the Python interface from within the build directory. libiter, nitsol and libstokes are statically linked.

~/ryuon-cmake/build $ ./test-stokes 
xi = 0.350941
[...]
~/ryuon-cmake/build $ python test-stokes.py 
xi = 0.350941271209
[...]

Do you need an installation target?

ZERuan commented 6 years ago

Yes, I need to install libiter and libstokes, as other stokes dynamic program needs to use them. At first, I used the test-stokes.c in Desktop/ryuon-cmake/stokes/src to test, but it turned out to be: test-stokes So I thought I should make before test, but: cpu Then I change the -march=prescott to -march=x86-64 in makefile in Desktop/ryuon-cmake/stokes/src, but: /usr/bin/ld: cannot find -lnitsol /usr/bin/ld: cannot find -lalapack error Could tell me how to find lnitsol and lalapack? Thanks a lot.

ZERuan commented 6 years ago

And I tried to use another code to test, there were also some errors: another error

hmenke commented 6 years ago

I have added installation support.

git clone --recursive https://github.com/hmenke/ryuon-cmake
cd ryuon-cmake/
mkdir build
cd build/
cmake ..
make -j
make -j test
sudo make install
cd ../stokes/src/
gcc -I/usr/local/include/libstokes -I/usr/local/include/libiter test-stokes.c -lstokes -lgsl -larpack -lnetcdf
ZERuan commented 6 years ago

no rule

hmenke commented 6 years ago

You clearly did not do the steps I posted.

ZERuan commented 6 years ago

Thanks. That is what I did. 1 2 3

ZERuan commented 6 years ago

got it, I should download it from https://github.com/hmenke/ryuon-cmake again

hmenke commented 6 years ago

No, you skipped the first step. Installation support does not magically appear. You have to update your copy of ryuon-cmake, either using git pull origin master or by downloading a fresh clone.

ZERuan commented 6 years ago

Sorry, I am confused. Could you send me full steps?Thanks.

hmenke commented 6 years ago

The full steps are shown in my earlier comment: https://github.com/hmenke/ryuon-cmake/issues/1#issuecomment-417836039

ZERuan commented 6 years ago

Hi Menke, Thanks a lot. I think I have install libiter, libstokes and stokes successfully:

root@阮竹恩:~/ryuon-cmake/build# sudo make install
[ 12%] Built target iter_object
[ 13%] Built target iter_static
[ 19%] Built target nitsol_object
[ 20%] Built target nitsol_static
[ 21%] Built target nitsol_shared
[ 91%] Built target stokes_object
[ 92%] Built target iter_shared
[ 93%] Built target stokes_shared
[ 94%] Built target stokes_static
[ 96%] Built target stokes3
[ 98%] Built target test-stokes
[100%] Built target _stokes
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/include/nitsol/nitsol.h
-- Installing: /usr/local/lib/libnitsol.so
-- Installing: /usr/local/include/libiter
-- Installing: /usr/local/include/libiter/atpres.h
-- Installing: /usr/local/include/libiter/bi-cgstab.h
-- Installing: /usr/local/include/libiter/bicg.h
-- Installing: /usr/local/include/libiter/bicgstab.h
-- Installing: /usr/local/include/libiter/bico.h
-- Installing: /usr/local/include/libiter/cg.h
-- Installing: /usr/local/include/libiter/cg_.h
-- Installing: /usr/local/include/libiter/cgne.h
-- Installing: /usr/local/include/libiter/cgs.h
-- Installing: /usr/local/include/libiter/gmres.h
-- Installing: /usr/local/include/libiter/libiter.h
-- Installing: /usr/local/include/libiter/memory-check.h
-- Installing: /usr/local/include/libiter/myblas.h
-- Installing: /usr/local/include/libiter/orthomin.h
-- Installing: /usr/local/include/libiter/qmr.h
-- Installing: /usr/local/include/libiter/steepest.h
-- Installing: /usr/local/lib/libiter.so
-- Installing: /usr/local/include/libstokes
-- Installing: /usr/local/include/libstokes/KIrand.h
-- Installing: /usr/local/include/libstokes/angles-guile.h
-- Installing: /usr/local/include/libstokes/angles.h
-- Installing: /usr/local/include/libstokes/bd-imp-fast.h
-- Installing: /usr/local/include/libstokes/bd-imp-nitsol.h
-- Installing: /usr/local/include/libstokes/bd-imp.h
-- Installing: /usr/local/include/libstokes/bead-rod-guile.h
-- Installing: /usr/local/include/libstokes/bead-rod.h
-- Installing: /usr/local/include/libstokes/bench.h
-- Installing: /usr/local/include/libstokes/bonds-groups.h
-- Installing: /usr/local/include/libstokes/bonds-guile.h
-- Installing: /usr/local/include/libstokes/bonds.h
-- Installing: /usr/local/include/libstokes/brownian.h
-- Installing: /usr/local/include/libstokes/chebyshev.h
-- Installing: /usr/local/include/libstokes/coll.h
-- Installing: /usr/local/include/libstokes/confinement-guile.h
-- Installing: /usr/local/include/libstokes/confinement.h
-- Installing: /usr/local/include/libstokes/dgeev_c.h
-- Installing: /usr/local/include/libstokes/dgemm_c.h
-- Installing: /usr/local/include/libstokes/dgemv_c.h
-- Installing: /usr/local/include/libstokes/dgetri_c.h
-- Installing: /usr/local/include/libstokes/dnaupd_c.h
-- Installing: /usr/local/include/libstokes/dpotrf_c.h
-- Installing: /usr/local/include/libstokes/dsaupd_c.h
-- Installing: /usr/local/include/libstokes/ev-LJ-guile.h
-- Installing: /usr/local/include/libstokes/ev-LJ.h
-- Installing: /usr/local/include/libstokes/ev-dh-grid.h
-- Installing: /usr/local/include/libstokes/ev-dh-guile.h
-- Installing: /usr/local/include/libstokes/ev-dh.h
-- Installing: /usr/local/include/libstokes/ewald-2.h
-- Installing: /usr/local/include/libstokes/ewald-2f.h
-- Installing: /usr/local/include/libstokes/ewald-2ft.h
-- Installing: /usr/local/include/libstokes/ewald-2fts.h
-- Installing: /usr/local/include/libstokes/ewald-3f-matrix.h
-- Installing: /usr/local/include/libstokes/ewald-3f.h
-- Installing: /usr/local/include/libstokes/ewald-3ft-matrix.h
-- Installing: /usr/local/include/libstokes/ewald-3ft.h
-- Installing: /usr/local/include/libstokes/ewald-3fts-matrix.h
-- Installing: /usr/local/include/libstokes/ewald-3fts.h
-- Installing: /usr/local/include/libstokes/ewald.h
-- Installing: /usr/local/include/libstokes/excluded-volume-guile.h
-- Installing: /usr/local/include/libstokes/excluded-volume.h
-- Installing: /usr/local/include/libstokes/f.h
-- Installing: /usr/local/include/libstokes/ft.h
-- Installing: /usr/local/include/libstokes/fts.h
-- Installing: /usr/local/include/libstokes/grid.h
-- Installing: /usr/local/include/libstokes/libstokes.h
-- Installing: /usr/local/include/libstokes/lub-matrix.h
-- Installing: /usr/local/include/libstokes/lub.h
-- Installing: /usr/local/include/libstokes/matrix.h
-- Installing: /usr/local/include/libstokes/memory-check.h
-- Installing: /usr/local/include/libstokes/minv-poly.h
-- Installing: /usr/local/include/libstokes/nitsol_c.h
-- Installing: /usr/local/include/libstokes/noHI.h
-- Installing: /usr/local/include/libstokes/non-ewald.h
-- Installing: /usr/local/include/libstokes/ode-quaternion.h
-- Installing: /usr/local/include/libstokes/ode.h
-- Installing: /usr/local/include/libstokes/periodicity.h
-- Installing: /usr/local/include/libstokes/stokes-guile.h
-- Installing: /usr/local/include/libstokes/stokes-nc-read.h
-- Installing: /usr/local/include/libstokes/stokes-nc.h
-- Installing: /usr/local/include/libstokes/stokes.h
-- Installing: /usr/local/include/libstokes/two-body-res.h
-- Installing: /usr/local/include/libstokes/twobody-slip.h
-- Installing: /usr/local/include/libstokes/twobody.h
-- Installing: /usr/local/lib/libstokes.so
-- Set runtime path of "/usr/local/lib/libstokes.so" to ""
-- Installing: /usr/local/lib/python2.7/dist-packages/stokes/__init__.py
-- Installing: /usr/local/lib/python2.7/dist-packages/stokes/stokes.py
-- Installing: /usr/local/lib/python2.7/dist-packages/stokes/_stokes.so
root@阮竹恩:~/ryuon-cmake/build# cd ../stokes/src/
root@阮竹恩:~/ryuon-cmake/stokes/src# gcc -I/usr/local/include/libstokes -I/usr/local/include/libiter test-stokes.c -lstokes -lgsl -larpack -lnetcdf
root@阮竹恩:~/ryuon-cmake/stokes/src#

The next step is to use it.

ZERuan commented 6 years ago

image

hmenke commented 6 years ago

It's good to hear that it worked out for you. For simple experiments I recommend that you use the Python interface, which you should be able to access by using import stokes.

$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import stokes
>>> help(stokes) # lists all available functions

That saves you the complications with compiling and linking.

ZERuan commented 6 years ago

Hi Menke, Thank you very much for guiding installation of libiter, libstokes and stokes. However, when I tried to use it, there were still some problems: image The code in shear-stoke2.c is:

include

include

I found the location of libstokes.h is: libstokes-1

ZERuan commented 6 years ago

As I noticed, there was only libstokes.so being installed in /usr/local/lib/libstokes.so image

ZERuan commented 6 years ago

image

hmenke commented 6 years ago

Learn how to use a compiler https://gcc.gnu.org/onlinedocs/

ZERuan commented 6 years ago

I installed them in the Linux Subsystem for Windows 10 I typed what you said: gcc -I/usr/local/include/libstokes -I/usr/local/include/libiter test-stokes.c -lstokes -lgsl -larpack -lnetcdf And then got: image

So, thank you very much, even though I don't know how to open the result right now.

ZERuan commented 6 years ago

Hi Menke, thanks a lot for installation guiding . As the results shown below, I think it worked out for me image

But when I try to ran another .c file, some errores appeared as below. I have tried to fix the problems, but failed. Could you help me with these errores? Thanks. image

gcc -I/usr/local/include/libstokes -I/usr/local/include/libiter shear-stoke.c -lstokes -lgsl -larpack -lnetcdf
shear-stoke.c: In function ‘main’:
shear-stoke.c:366:27: warning: implicit declaration of function ‘bonds_init’; did you mean ‘stokes_init’? [-Wimplicit-function-declaration]
                     bonds=bonds_init ();
                           ^~~~~~~~~~
                           stokes_init
shear-stoke.c:366:26: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
                     bonds=bonds_init ();
                          ^
shear-stoke.c:367:21: warning: implicit declaration of function ‘bonds_add_type’ [-Wimplicit-function-declaration]
                     bonds_add_type (bonds,A_coe,B_coe);
                     ^~~~~~~~~~~~~~
shear-stoke.c:378:33: warning: implicit declaration of function ‘bond_pairs_add’ [-Wimplicit-function-declaration]
                                 bond_pairs_add (bonds->pairs [0], i, j);
                                 ^~~~~~~~~~~~~~
shear-stoke.c:378:54: error: dereferencing pointer to incomplete type ‘struct bonds’
                                 bond_pairs_add (bonds->pairs [0], i, j);
                                                      ^~
shear-stoke.c:383:21: warning: implicit declaration of function ‘bonds_calc_force’; did you mean ‘CF_calc_force’? [-Wimplicit-function-declaration]
                     bonds_calc_force (bonds,sys_fts,f_bonds,0);
                     ^~~~~~~~~~~~~~~~
                     CF_calc_force
shear-stoke.c:387:21: warning: implicit declaration of function ‘c_solve_mob_3fts_matrix’; did you mean ‘solve_mob_3fts_matrix’? [-Wimplicit-function-declaration]
                     c_solve_mob_3fts_matrix (sys_fts,f_bonds,t,e,u,o,s,old_mat,mat_set);
                     ^~~~~~~~~~~~~~~~~~~~~~~
                     solve_mob_3fts_matrix
shear-stoke.c:417:22: warning: implicit declaration of function ‘bonds_free’; did you mean ‘stokes_free’? [-Wimplicit-function-declaration]
                      bonds_free (bonds);
                      ^~~~~~~~~~
                      stokes_free
shear-stoke.c: In function ‘calcu_nt’:
shear-stoke.c:609:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    bonds=bonds_init ();
         ^
shear-stoke.c:620:46: error: dereferencing pointer to incomplete type ‘struct bonds’
                         bond_pairs_add (bonds->pairs [0], i, j);
                                              ^~
shear-stoke.c:628:18: error: dereferencing pointer to incomplete type ‘struct bond_pairs’
       nt_m+=pairs->n;
                  ^~
shear-stoke.c: In function ‘calcu_break’:
shear-stoke.c:644:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     bonds=bonds_init ();
          ^
shear-stoke.c:669:46: error: dereferencing pointer to incomplete type ‘struct bonds’
                         bond_pairs_add (bonds->pairs [0], i, j);
                                              ^~
shear-stoke.c:679:23: error: dereferencing pointer to incomplete type ‘struct bond_pairs’
             ia = pairs->ia [0];
hmenke commented 6 years ago

shear-stoke.c is neither part of RYUON, nor part of ryuon-cmake. Please ask the author of this file for help.

ZERuan commented 6 years ago

Thanks all the same. Best regards.