PCMSolver / pcmsolver

An API for the Polarizable Continuum Model
http://pcmsolver.readthedocs.io/
GNU Lesser General Public License v3.0
33 stars 21 forks source link

PCMSolver on MS Windows - compilation fails... #11

Closed miroi closed 9 years ago

miroi commented 9 years ago

Hi,

what could be be wrong please ?

C:\Users\milias\Documents\work\software\pcmsolver>
C:\Users\milias\Documents\work\software\pcmsolver>python setup.py --generator="MinGW Makefiles"
set CXX=g++ && set CC=gcc && set FC=gfortran && cmake -DEXTRA_CXXFLAGS="''" -DEXTRA_CFLAGS="''" -DEXTRA_FCFLAGS="''" -DUSE_CCACHE="ON" -DENABLE_CODE_COVERAGE
=False -DENABLE_64BIT_INTEGERS=False -DENABLE_OPENMP=False -DPYTHON_INTERPRETER="''" -DBOOST_INCLUDEDIR="''" -DBOOST_LIBRARYDIR="''" -DFORCE_CUSTOM_BOOST="OF
F" -DBOOST_MINIMUM_REQUIRED="1.54.0" -DBOOST_COMPONENTS_REQUIRED="" -DCMAKE_BUILD_TYPE=release -G "MinGW Makefiles" C:\Users\milias\Documents\work\software\p
cmsolver

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: C:/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/mingw64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/mingw64/bin/g++.exe
-- Check for working CXX compiler: C:/mingw64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is GNU 4.9.2
-- Check for working Fortran compiler: C:/mingw64/bin/gfortran.exe
-- Check for working Fortran compiler: C:/mingw64/bin/gfortran.exe  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether C:/mingw64/bin/gfortran.exe supports Fortran 90
-- Checking whether C:/mingw64/bin/gfortran.exe supports Fortran 90 -- yes
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- Verifying Fortran/CXX Compiler Compatibility
-- Verifying Fortran/CXX Compiler Compatibility - Success
-- Performing Test _HAS_CXX11_FLAG
-- Performing Test _HAS_CXX11_FLAG - Success
-- C++11 "__func__" feature works
-- C++11 "auto" feature works
-- C++11 "auto_ret_type" feature works
-- C++11 "class_override_final" feature works
-- C++11 "constexpr" feature works
-- C++11 "cstdint" feature works
-- C++11 "decltype" feature works
-- C++11 "initializer_list" feature works
-- C++11 "lambda" feature works
-- C++11 "long_long" feature works
-- C++11 "nullptr" feature works
-- C++11 "regex" feature works
-- C++11 "rvalue-references" feature works
-- C++11 "sizeof_member" feature works
-- C++11 "static_assert" feature works
-- C++11 "variadic_templates" feature works
-- ccache not available
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.10")
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   chrono
--   timer
--   system
-- Eigen 3.2.0 is located here: C:/Users/milias/Documents/work/software/pcmsolver/external/eigen3/include/eigen3
-- Found ZLIB: C:/libraries/zlib/lib/libz.a (found version "1.2.5")
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found version "1.8.9.1")
-- Found Perl: C:/cygwin64/bin/perl.exe (found version "5.22.0")
-- Could NOT find PY_yaml (missing:  PY_YAML)
-- Only Doxygen available. Local doc target added
-- System                : Windows
-- Processor type        : AMD64
-- C++ compiler flags    : -fPIC -std=c++11 -O3 -DNDEBUG -Wno-unused
-- C compiler flags      : -std=c99 -DRESTRICT=restrict -DFUNDERSCORE=1 -fPIC -O3 -DNDEBUG
-- Fortran compiler flags: -fimplicit-none -fPIC -fautomatic -fmax-errors=1 -O3 -funroll-all-loops -ftree-vectorize
-- Definitions           : HAS_CXX11;HAS_CXX11_FUNC;HAS_CXX11_AUTO;HAS_CXX11_AUTO_RET_TYPE;HAS_CXX11_CLASS_OVERRIDE;HAS_CXX11_CONSTEXPR;HAS_CXX11_CSTDINT_H;H
AS_CXX11_DECLTYPE;HAS_CXX11_INITIALIZER_LIST;HAS_CXX11_LAMBDA;HAS_CXX11_LONG_LONG;HAS_CXX11_NULLPTR;HAS_CXX11_LIB_REGEX;HAS_CXX11_RVALUE_REFERENCES;HAS_CXX11
_SIZEOF_MEMBER;HAS_CXX11_STATIC_ASSERT;HAS_CXX11_VARIADIC_TEMPLATES;TAYLOR_CXXIO
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/milias/Documents/work/software/pcmsolver/build

   configure step is done
   now you need to compile the sources:
   $ cd build
   $ make

C:\Users\milias\Documents\work\software\pcmsolver>cd build

The compilatio goes...

C:\Users\milias\Documents\work\software\pcmsolver\build>mingw32-make
Scanning dependencies of target libgetkw
[  1%] Creating directories for 'libgetkw'
[  2%] No download step for 'libgetkw'
[  3%] No patch step for 'libgetkw'
[  5%] No update step for 'libgetkw'
[  6%] Performing configure step for 'libgetkw'
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: C:/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/mingw64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/mingw64/bin/g++.exe
-- Check for working CXX compiler: C:/mingw64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.58.0
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found version "1.8.9.1")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/milias/Documents/work/software/pcmsolver/build/external/libgetkw-build
[  7%] Performing build step for 'libgetkw'
Scanning dependencies of target getkw
[ 20%] Building CXX object C++/CMakeFiles/getkw.dir/Getkw.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\external\libgetkw\C++\Getkw.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /** \file Getkw.cpp
 ^
[ 40%] Building CXX object C++/CMakeFiles/getkw.dir/GetkwError.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\external\libgetkw\C++\GetkwError.cpp:1:0: warning: -fPIC ignored for target (all code is position independe
nt)
 /*
 ^
[ 60%] Building CXX object C++/CMakeFiles/getkw.dir/Section.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\external\libgetkw\C++\Section.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)

 /** \file Section.cpp
 ^
[ 80%] Building CXX object C++/CMakeFiles/getkw.dir/messages.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\external\libgetkw\C++\messages.cpp:1:0: warning: -fPIC ignored for target (all code is position independent
)
 /*
 ^
[100%] Linking CXX static library libgetkw.a
[100%] Built target getkw
[  8%] Performing install step for 'libgetkw'
[100%] Built target getkw
Install the project...
-- Install configuration: "Release"
-- Installing: C:/Users/milias/Documents/work/software/pcmsolver/build/external/share/libgetkw/getkw.py
-- Installing: C:/Users/milias/Documents/work/software/pcmsolver/build/external/share/libgetkw/pyparsing.py
-- Installing: C:/Users/milias/Documents/work/software/pcmsolver/build/external/lib/libgetkw.a
-- Installing: C:/Users/milias/Documents/work/software/pcmsolver/build/external/include/Getkw.h
-- Installing: C:/Users/milias/Documents/work/software/pcmsolver/build/external/include/Section.h
-- Installing: C:/Users/milias/Documents/work/software/pcmsolver/build/external/include/Keyword.h
-- Installing: C:/Users/milias/Documents/work/software/pcmsolver/build/external/include/GetkwError.h
[ 10%] Completed 'libgetkw'
[ 10%] Built target libgetkw
Scanning dependencies of target pcm
[ 11%] Building Fortran object src/CMakeFiles/pcm.dir/pedra/pedra_precision.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 12%] Building Fortran object src/CMakeFiles/pcm.dir/pedra/pedra_dblas.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 13%] Building Fortran object src/CMakeFiles/pcm.dir/pedra/pedra_print.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 15%] Building Fortran object src/CMakeFiles/pcm.dir/pedra/pedra_symmetry.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 16%] Building Fortran object src/CMakeFiles/pcm.dir/pedra/pedra_dlapack.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 17%] Building Fortran object src/CMakeFiles/pcm.dir/pedra/pedra_utils.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 18%] Building Fortran object src/CMakeFiles/pcm.dir/pedra/pedra_cavity.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 20%] Building Fortran object src/CMakeFiles/pcm.dir/metal/metal_sphere.F90.obj
f951.exe: warning: -fPIC ignored for target (all code is position independent)
[ 21%] Building CXX object src/CMakeFiles/pcm.dir/cavity/Cavity.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\src\cavity\Cavity.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /* pcmsolver_copyright_start */
 ^
[ 22%] Building CXX object src/CMakeFiles/pcm.dir/cavity/Element.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\src\cavity\Element.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /* pcmsolver_copyright_start */
 ^
[ 24%] Building CXX object src/CMakeFiles/pcm.dir/cavity/GePolCavity.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\src\cavity\GePolCavity.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /* pcmsolver_copyright_start */
 ^
[ 25%] Building CXX object src/CMakeFiles/pcm.dir/cavity/RestartCavity.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\src\cavity\RestartCavity.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /* pcmsolver_copyright_start */
 ^
[ 26%] Building CXX object src/CMakeFiles/pcm.dir/interface/Meddle.cpp.obj
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /* pcmsolver_copyright_start */
 ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:60:23: error: function 'pcmsolver_context_t* pcmsolver_new(pcmsolver_reader_t, int
, double*, double*, int*, PCMInput)' definition is marked dllimport
 pcmsolver_context_t * pcmsolver_new(pcmsolver_reader_t input_reading, int nr_nuclei, double charges[], double coordinates[], int symmetry_info[], PCMInput h
ost_input)
                       ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'pcmsolver_context_t* pcmsolver_new(pcmsolver_reader_t, int, double*,
 double*, int*, PCMInput)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:60:23: warning: 'pcmsolver_context_t* pcmsolver_new(pcmsolver_reader_t, int, doubl
e*, double*, int*, PCMInput)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:66:6: error: function 'void pcmsolver_delete(pcmsolver_context_t*)' definition is
marked dllimport
 void pcmsolver_delete(pcmsolver_context_t * context)
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_delete(pcmsolver_context_t*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:66:6: warning: 'void pcmsolver_delete(pcmsolver_context_t*)' redeclared without dl
limport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:73:6: error: function 'bool pcmsolver_is_compatible_library()' definition is marke
d dllimport
 bool pcmsolver_is_compatible_library(void)
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'bool pcmsolver_is_compatible_library()':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:73:6: warning: 'bool pcmsolver_is_compatible_library()' redeclared without dllimpo
rt attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:80:6: error: function 'void pcmsolver_print(pcmsolver_context_t*)' definition is m
arked dllimport
 void pcmsolver_print(pcmsolver_context_t * context)
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_print(pcmsolver_context_t*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:80:6: warning: 'void pcmsolver_print(pcmsolver_context_t*)' redeclared without dll
import attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:86:8: error: function 'std::size_t pcmsolver_get_cavity_size(pcmsolver_context_t*)
' definition is marked dllimport
 size_t pcmsolver_get_cavity_size(pcmsolver_context_t * context)
        ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'std::size_t pcmsolver_get_cavity_size(pcmsolver_context_t*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:86:8: warning: 'std::size_t pcmsolver_get_cavity_size(pcmsolver_context_t*)' redec
lared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:92:8: error: function 'std::size_t pcmsolver_get_irreducible_cavity_size(pcmsolver
_context_t*)' definition is marked dllimport
 size_t pcmsolver_get_irreducible_cavity_size(pcmsolver_context_t * context)
        ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'std::size_t pcmsolver_get_irreducible_cavity_size(pcmsolver_context_
t*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:92:8: warning: 'std::size_t pcmsolver_get_irreducible_cavity_size(pcmsolver_contex
t_t*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:98:6: error: function 'void pcmsolver_get_centers(pcmsolver_context_t*, double*)'
definition is marked dllimport
 void pcmsolver_get_centers(pcmsolver_context_t * context, double centers[])
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_get_centers(pcmsolver_context_t*, double*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:98:6: warning: 'void pcmsolver_get_centers(pcmsolver_context_t*, double*)' redecla
red without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:104:6: error: function 'void pcmsolver_get_center(pcmsolver_context_t*, int, doubl
e*)' definition is marked dllimport
 void pcmsolver_get_center(pcmsolver_context_t * context, int its, double center[])
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_get_center(pcmsolver_context_t*, int, double*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:104:6: warning: 'void pcmsolver_get_center(pcmsolver_context_t*, int, double*)' re
declared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:110:6: error: function 'void pcmsolver_compute_asc(pcmsolver_context_t*, const cha
r*, const char*, int)' definition is marked dllimport
 void pcmsolver_compute_asc(pcmsolver_context_t * context,
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_compute_asc(pcmsolver_context_t*, const char*, const
char*, int)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:110:6: warning: 'void pcmsolver_compute_asc(pcmsolver_context_t*, const char*, con
st char*, int)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:119:6: error: function 'void pcmsolver_compute_response_asc(pcmsolver_context_t*,
const char*, const char*, int)' definition is marked dllimport
 void pcmsolver_compute_response_asc(pcmsolver_context_t * context,
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_compute_response_asc(pcmsolver_context_t*, const char
*, const char*, int)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:119:6: warning: 'void pcmsolver_compute_response_asc(pcmsolver_context_t*, const c
har*, const char*, int)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:128:8: error: function 'double pcmsolver_compute_polarization_energy(pcmsolver_con
text_t*, const char*, const char*)' definition is marked dllimport
 double pcmsolver_compute_polarization_energy(pcmsolver_context_t * context,
        ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'double pcmsolver_compute_polarization_energy(pcmsolver_context_t*, c
onst char*, const char*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:128:8: warning: 'double pcmsolver_compute_polarization_energy(pcmsolver_context_t*
, const char*, const char*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:136:6: error: function 'void pcmsolver_get_surface_function(pcmsolver_context_t*,
std::size_t, double*, const char*)' definition is marked dllimport
 void pcmsolver_get_surface_function(pcmsolver_context_t * context,
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_get_surface_function(pcmsolver_context_t*, std::size_
t, double*, const char*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:136:6: warning: 'void pcmsolver_get_surface_function(pcmsolver_context_t*, std::si
ze_t, double*, const char*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:143:6: error: function 'void pcmsolver_set_surface_function(pcmsolver_context_t*,
std::size_t, double*, const char*)' definition is marked dllimport
 void pcmsolver_set_surface_function(pcmsolver_context_t * context,
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_set_surface_function(pcmsolver_context_t*, std::size_
t, double*, const char*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:143:6: warning: 'void pcmsolver_set_surface_function(pcmsolver_context_t*, std::si
ze_t, double*, const char*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:150:6: error: function 'void pcmsolver_save_surface_functions(pcmsolver_context_t*
)' definition is marked dllimport
 void pcmsolver_save_surface_functions(pcmsolver_context_t * context)
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_save_surface_functions(pcmsolver_context_t*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:150:6: warning: 'void pcmsolver_save_surface_functions(pcmsolver_context_t*)' rede
clared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:156:6: error: function 'void pcmsolver_save_surface_function(pcmsolver_context_t*,
 const char*)' definition is marked dllimport
 void pcmsolver_save_surface_function(pcmsolver_context_t * context, const char * name)
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_save_surface_function(pcmsolver_context_t*, const cha
r*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:156:6: warning: 'void pcmsolver_save_surface_function(pcmsolver_context_t*, const
char*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:162:6: error: function 'void pcmsolver_load_surface_function(pcmsolver_context_t*,
 const char*)' definition is marked dllimport
 void pcmsolver_load_surface_function(pcmsolver_context_t * context, const char * name)
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_load_surface_function(pcmsolver_context_t*, const cha
r*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:162:6: warning: 'void pcmsolver_load_surface_function(pcmsolver_context_t*, const
char*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: At global scope:
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:168:6: error: function 'void pcmsolver_write_timings(pcmsolver_context_t*)' defini
tion is marked dllimport
 void pcmsolver_write_timings(pcmsolver_context_t * context)
      ^
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp: In function 'void pcmsolver_write_timings(pcmsolver_context_t*)':
C:\Users\milias\Documents\work\software\pcmsolver\src\interface\Meddle.cpp:168:6: warning: 'void pcmsolver_write_timings(pcmsolver_context_t*)' redeclared wi
thout dllimport attribute: previous dllimport ignored [-Wattributes]
src\CMakeFiles\pcm.dir\build.make:152: recipe for target 'src/CMakeFiles/pcm.dir/interface/Meddle.cpp.obj' failed
mingw32-make[2]: *** [src/CMakeFiles/pcm.dir/interface/Meddle.cpp.obj] Error 1
CMakeFiles\Makefile2:1075: recipe for target 'src/CMakeFiles/pcm.dir/all' failed
mingw32-make[1]: *** [src/CMakeFiles/pcm.dir/all] Error 2
makefile:137: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\Users\milias\Documents\work\software\pcmsolver\build>
miroi commented 9 years ago

Concerning the dllimport errors, I tried this hint, https://stackoverflow.com/questions/4644758/using-dllimport-procedure, but did not get it compiled anyhow....

robertodr commented 9 years ago

@miroi I managed to compile on AppVeyor, some of the tests are broken. I have been working on the hotfix-appveyor branch and this is the latest (failing) build: https://ci.appveyor.com/project/robertodr/pcmsolver It seems the --verbose argument to ctest is ignored on AppVeyor. I cannot thus gather more information from the CI workers on why the segfaults happen. Can you suggest a strategy to attack these problems?

miroi commented 9 years ago

Aaah...so you managed to make a complete build and run tests on appveyor ? Wau, I see https://ci.appveyor.com/project/robertodr/pcmsolver/build/job/dw7aisg6hhy35ry2

On my branch it failed last time on cmake-boost detection, but you overcome it, right ?

Myself, I can not compile PCMSolver on Windows Server, but appveyor worked did it. Good to know that there is a way to compile it on MS Windows !

Now the strategy: After https://github.com/PCMSolver/pcmsolver/blob/master/.appveyor.yml#L106 try to descend into directories of individual tests (build/test/....) and run execs individually. Maybe ill execs will flush out some traceback info.

miroi commented 9 years ago

Ah, here: https://github.com/PCMSolver/pcmsolver/blob/hotfix-appveyor/.appveyor.yml#L77

ctest -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit

Maybe we will see stderr+traceback on CDash ?

miroi commented 9 years ago

And appveyor.yml can be hidden (and functioning) as .appveyor.yml, right ?

robertodr commented 9 years ago

I simplified the module quite a bit. I got rid of the dependency on compiled Boost libraries and removed all platform-dependent commands from the CMake scripts. I will play around with both your suggestions later tonight. Thanks! As a sidenote, the custom exception class is now gone and you might want to have a go again at the pure PGI build.

robertodr commented 9 years ago

Yes you can choose whatever name for the YAML file in the project settings on AppVeyor.

miroi commented 9 years ago

Fine, I will try PGI set (pgf90,pgcc, pgCC) and XL (xlf90,xlcc,xlCC) sets.

robertodr commented 9 years ago

Closing this and re-opening as "tests segfault"