[Gmsh] Can't compile with 64bit MINGW (Taucs problem?)

John Staples john.f.staples at gmail.com
Sat Mar 11 10:19:27 CET 2017


First, thank you, Drs. Geuzaine and Remacle, especially, and all the
others, for the many years developing the magnificent GMSH program! It is a
triumph.

I am trying to build from the SVN source with no success.  The steps I took
are:

1. Download GMSH source (version 24830 from https://onelab.info/svn/g
msh/trunk) into C:\GMSH_SVN
2. Create BUILD subdirectory (C:\GMSH_SVN\BUILD)
3. Using CMAKE-GUI ver 3.7.2 with the following parameters:
    CMAKE_PREFIX_PATH=C:\GMSH-DEP211  (BLAS/FLTK dependencies from the
GMSH-2.11sources)
    CMAKE_MAKE_PROGRAM=C:/Program Files/mingw-w64/x86_64-6.3.0-
win32-seh-rt_v5-rev1/mingw64/bin/mingw32-make.exe
    CMAKE_CXX_COMPILER=C:\Program Files\mingw-w64\x86_64-6.3.0-w
in32-seh-rt_v5-rev1\mingw64\bin\g++.exe
    CMAKE_Fortran_COMPILER=C:\Program Files\mingw-w64\x86_64-6.3.0-w
in32-seh-rt_v5-rev1\mingw64\bin\gfortran.exe

   CMAKE RESULTS LOOK GOOD as shown in following output snippet (also see
CMAKE_OUTPUT.txt attached to this email.):

Gmsh 2.16.0 has been configured for Windows
* Build options: Ann Bamg Bfgs Blossom Chaco DIntegration Fltk Gmm
Jpeg(Fltk) Kbipack MathEx Med Mesh Metis Mmg3d Mpeg NativeFileChooser
Netgen NoSocklenT ONELAB ONELABMetamodel OpenGL OptHom Parser Plugins
Png(Fltk) Post Solver Taucs TetGen/BR Tetgen1.5 Voro3D Zlib(Fltk)
 * Build type: RelWithDebInfo
 * C compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-
win32-seh-rt_v5-rev1/mingw64/bin/gcc.exe
 * C++ compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-
win32-seh-rt_v5-rev1/mingw64/bin/g++.exe
 * Install prefix: C:/Program Files (x86)/gmsh

Configuring done
Generating done

4. In DOS CMD window:
Set PATH to

PATH=C:\Program
Files\mingw-w64\x86_64-6.3.0-win32-seh-rt_v5-rev1\mingw64\bin;C:\Program
Files\CMake\bin;C:\Program Files\mingw-w64\x86_64-6.3.0-
win32-seh-rt_v5-rev1\mingw64\bin;

changed to C:\GMSH_SVN\BUILD subdirectory and entered command:

mingw32-make

Results attached in MAKE OUTPUT.txt and shown below:

C:\gmsh_SVN\BUILD>mingw32-make
Scanning dependencies of target gmsh

                                                             [  0%]
Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.cpp.obj
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/Gmsh.cpp.obj
In file included from C:/gmsh-dep211/include/FL/Fl_Group.H:26:0,
                 from C:/gmsh-dep211/include/FL/Fl_Window.H:25,
                 from C:/gmsh_SVN/Fltk/graphicWindow.h:11,
                 from C:\gmsh_SVN\Common\Gmsh.cpp:51:
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void
Fl_Widget::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:575:91: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*cb, long p=0) {callback_=(Fl_Callback*)cb;
user_data_=(void*)p;}

               ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void
Fl_Widget::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:597:46: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void
Fl_Widget::do_callback(Fl_Widget*, long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:835:65: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) {do_callback(o,(void*)arg);}
                                                                 ^~~
In file included from C:/gmsh-dep211/include/FL/Fl_Menu_.H:28:0,
                 from C:/gmsh-dep211/include/FL/Fl_Menu_Bar.H:25,
                 from C:/gmsh_SVN/Fltk/graphicWindow.h:20,
                 from C:\gmsh_SVN\Common\Gmsh.cpp:51:
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void
Fl_Menu_Item::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:243:89: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*c, long p=0) {callback_=(Fl_Callback*)c;
user_data_=(void*)p;}

             ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void
Fl_Menu_Item::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:267:46: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void
Fl_Menu_Item::do_callback(Fl_Widget*, long int) const':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:391:70: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) const {callback_(o, (void*)arg);}
                                                                      ^~~
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/GmshMessage.cpp.obj
[  0%] Building CXX object
CMakeFiles/gmsh.dir/Common/gmshPopplerWrapper.cpp.obj
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/Context.cpp.obj
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/Options.cpp.obj
In file included from C:/gmsh-dep211/include/FL/Fl_Tooltip.H:26:0,
                 from C:\gmsh_SVN\Common\Options.cpp:45:
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void
Fl_Widget::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:575:91: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*cb, long p=0) {callback_=(Fl_Callback*)cb;
user_data_=(void*)p;}

               ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void
Fl_Widget::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:597:46: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void
Fl_Widget::do_callback(Fl_Widget*, long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:835:65: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) {do_callback(o,(void*)arg);}
                                                                 ^~~
In file included from C:/gmsh-dep211/include/FL/Fl_Menu_.H:28:0,
                 from C:/gmsh-dep211/include/FL/Fl_Menu_Bar.H:25,
                 from C:/gmsh_SVN/Fltk/graphicWindow.h:20,
                 from C:/gmsh_SVN/Fltk/drawContextFltk.h:19,
                 from C:\gmsh_SVN\Common\Options.cpp:47:
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void
Fl_Menu_Item::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:243:89: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*c, long p=0) {callback_=(Fl_Callback*)c;
user_data_=(void*)p;}

             ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void
Fl_Menu_Item::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:267:46: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void
Fl_Menu_Item::do_callback(Fl_Widget*, long int) const':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:391:70: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) const {callback_(o, (void*)arg);}
                                                                      ^~~
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/CommandLine.cpp.obj
In file included from C:/gmsh-dep211/include/hdf5.h:23:0,
                 from C:/gmsh-dep211/include/med.h:22,
                 from C:\gmsh_SVN\Common\CommandLine.cpp:41:
C:/gmsh-dep211/include/H5public.h:207:33: warning: invalid suffix on
literal; C++11 requires a space between literal and string macro
[-Wliteral-suffix]
 #   define H5_PRINTF_HADDR_FMT  "%"H5_PRINTF_LL_WIDTH"u"
                                 ^
C:/gmsh-dep211/include/H5public.h:122:13: error: conflicting declaration
'typedef int ssize_t'
 typedef int ssize_t;
             ^~~~~~~
In file included from
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/x86_64-w64-mingw32/include/wchar.h:9:0,
                 from
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/cwchar:44,
                 from
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/bits/postypes.h:40,
                 from
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/bits/char_traits.h:40,
                 from
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/string:40,
                 from C:\gmsh_SVN\Common\CommandLine.cpp:6:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/x86_64-w64-mingw32/include/crtdefs.h:45:35:
note: previous declaration as 'typedef long long int ssize_t'
 __MINGW_EXTENSION typedef __int64 ssize_t;
                                   ^~~~~~~
In file included from C:\gmsh_SVN\Common\CommandLine.cpp:13:0:
C:\gmsh_SVN\Common\CommandLine.cpp: In function 'const char*
GetGmshPackager()':
C:/gmsh_SVN/BUILD/Common/GmshVersion.h:16:28: warning: unknown escape
sequence: '\o'
 #define GMSH_PACKAGER      "lenovolaptopj\owner"
                            ^
C:\gmsh_SVN\Common\CommandLine.cpp:63:39: note: in expansion of macro
'GMSH_PACKAGER'
 const char *GetGmshPackager(){ return GMSH_PACKAGER; }
                                       ^~~~~~~~~~~~~
C:\gmsh_SVN\Common\CommandLine.cpp: In function 'void GetOptions(int,
char**)':
C:/gmsh_SVN/BUILD/Common/GmshVersion.h:16:28: warning: unknown escape
sequence: '\o'
 #define GMSH_PACKAGER      "lenovolaptopj\owner"
                            ^
C:\gmsh_SVN\Common\CommandLine.cpp:993:52: note: in expansion of macro
'GMSH_PACKAGER'
         fprintf(stderr, "Packaged by      : %s\n", GMSH_PACKAGER);
                                                    ^~~~~~~~~~~~~
CMakeFiles\gmsh.dir\build.make:212: recipe for target
'CMakeFiles/gmsh.dir/Common/CommandLine.cpp.obj' failed
mingw32-make[2]: *** [CMakeFiles/gmsh.dir/Common/CommandLine.cpp.obj] Error
1
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/gmsh.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/gmsh.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


Please help with any suggestions.

Thanks, John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170311/76a36cf1/attachment-0001.html>
-------------- next part --------------
The CXX compiler identification is GNU 6.3.0
The C compiler identification is GNU 6.3.0
Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/g++.exe
Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/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
Check for working C compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/gcc.exe
Check for working C compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/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
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
Check size of void* - done
The Fortran compiler identification is GNU 6.3.0
Check for working Fortran compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/gfortran.exe
Check for working Fortran compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/gfortran.exe  -- works
Detecting Fortran compiler ABI info
Detecting Fortran compiler ABI info - done
Checking whether C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/gfortran.exe supports Fortran 90
Checking whether C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/gfortran.exe supports Fortran 90 -- yes
Looking for Fortran sgemm
Looking for Fortran sgemm - not found
Looking for pthread.h
Looking for pthread.h - found
Looking for pthread_create
Looking for pthread_create - not found
Looking for pthread_create in pthreads
Looking for pthread_create in pthreads - not found
Looking for pthread_create in pthread
Looking for pthread_create in pthread - found
Found Threads: TRUE  
A library with BLAS API not found. Please specify library location.
Warning: Could not find Blas or Lapack: most meshing algorithms will not be functional
Found Mesh
Found Solver
Found Post
Found Plugins
Found Parser
Found OpenGL: opengl32  
Found FLTK: C:/gmsh-dep211/lib/fltkimages.lib;C:/gmsh-dep211/lib/fltkgl.lib;opengl32;C:/gmsh-dep211/lib/fltk.lib  
Found Fltk
Found NativeFileChooser
Found ONELAB
Found ONELABMetamodel
Found Jpeg(Fltk)
Found Zlib(Fltk)
Found Png(Fltk)
Found Mpeg
Found OpenGL
System ANN not found: using contrib/ANN instead
Found Ann
Found Bfgs
Found DIntegration
Found OptHom
Found Kbipack
GMP not found: Kbipack uses long int
Found MathEx
Found Metis
Note: By including Metis you have to comply with Metis' special licensing requirements stated in contrib/Metis/README.txt.
Found Chaco
Found TetGen/BR
Found Voro3D
Found Blossom
Found Netgen
Found Bamg
System MMG3D not found: using contrib/mmg3d instead
Found Mmg3d
Found Tetgen1.5
Note: By including Tetgen you have to comply with Tetgen's special licensing requirements stated in contrib/Tetgen1.5/LICENSE.
Found Med
System GMM not found: using contrib/gmm instead
Found Gmm
Found Taucs
OCC lib TKSTEP not Found
OCC lib TKSTEP209 not Found
OCC lib TKSTEPAttr not Found
OCC lib TKSTEPBase not Found
OCC lib TKIGES not Found
OCC lib TKXSBase not Found
OCC lib TKOffset not Found
OCC lib TKFeat not Found
OCC lib TKFillet not Found
OCC lib TKBool not Found
OCC lib TKShHealing not Found
OCC lib TKMesh not Found
OCC lib TKHLR not Found
OCC lib TKBO not Found
OCC lib TKPrim not Found
OCC lib TKTopAlgo not Found
OCC lib TKGeomAlgo not Found
OCC lib TKBRep not Found
OCC lib TKGeomBase not Found
OCC lib TKG3d not Found
OCC lib TKG2d not Found
OCC lib TKMath not Found
OCC lib TKernel not Found
Looking for vsnprintf
Looking for vsnprintf - found
Looking for sys/socket.h
Looking for sys/socket.h - not found
Check size of socklen_t
Check size of socklen_t - failed
Found NoSocklenT
Check size of intptr_t
Check size of intptr_t - done
Looking for dlfcn.h
Looking for dlfcn.h - not found
Looking for linux/joystick.h
Looking for linux/joystick.h - not found
Performing Test WALL
Performing Test WALL - Success
Performing Test WCAST
Performing Test WCAST - Failed
Performing Test WDEPREC
Performing Test WDEPREC - Success
Performing Test WIND
Performing Test WIND - Success
Performing Test NOWARN
Performing Test NOWARN - Success
Performing Test NOOPT
Performing Test NOOPT - Success

Gmsh 2.16.0 has been configured for Windows

 * Build options: Ann Bamg Bfgs Blossom Chaco DIntegration Fltk Gmm Jpeg(Fltk) Kbipack MathEx Med Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen NoSocklenT ONELAB ONELABMetamodel OpenGL OptHom Parser Plugins Png(Fltk) Post Solver Taucs TetGen/BR Tetgen1.5 Voro3D Zlib(Fltk)
 * Build type: RelWithDebInfo
 * C compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/gcc.exe
 * C++ compiler: C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/g++.exe
 * Install prefix: C:/Program Files (x86)/gmsh

Configuring done
Generating done
-------------- next part --------------
C:\gmsh_SVN\BUILD>mingw32-make
Scanning dependencies of target gmsh
                                                                                                                                         [  0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.cpp.obj
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/Gmsh.cpp.obj
In file included from C:/gmsh-dep211/include/FL/Fl_Group.H:26:0,
                 from C:/gmsh-dep211/include/FL/Fl_Window.H:25,
                 from C:/gmsh_SVN/Fltk/graphicWindow.h:11,
                 from C:\gmsh_SVN\Common\Gmsh.cpp:51:
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void Fl_Widget::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:575:91: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*cb, long p=0) {callback_=(Fl_Callback*)cb; user_data_=(void*)p;}
                                                                                           ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void Fl_Widget::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:597:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void Fl_Widget::do_callback(Fl_Widget*, long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:835:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) {do_callback(o,(void*)arg);}
                                                                 ^~~
In file included from C:/gmsh-dep211/include/FL/Fl_Menu_.H:28:0,
                 from C:/gmsh-dep211/include/FL/Fl_Menu_Bar.H:25,
                 from C:/gmsh_SVN/Fltk/graphicWindow.h:20,
                 from C:\gmsh_SVN\Common\Gmsh.cpp:51:
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void Fl_Menu_Item::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:243:89: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*c, long p=0) {callback_=(Fl_Callback*)c; user_data_=(void*)p;}
                                                                                         ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void Fl_Menu_Item::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:267:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void Fl_Menu_Item::do_callback(Fl_Widget*, long int) const':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:391:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) const {callback_(o, (void*)arg);}
                                                                      ^~~
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/GmshMessage.cpp.obj
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/gmshPopplerWrapper.cpp.obj
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/Context.cpp.obj
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/Options.cpp.obj
In file included from C:/gmsh-dep211/include/FL/Fl_Tooltip.H:26:0,
                 from C:\gmsh_SVN\Common\Options.cpp:45:
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void Fl_Widget::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:575:91: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*cb, long p=0) {callback_=(Fl_Callback*)cb; user_data_=(void*)p;}
                                                                                           ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void Fl_Widget::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:597:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Widget.H: In member function 'void Fl_Widget::do_callback(Fl_Widget*, long int)':
C:/gmsh-dep211/include/FL/Fl_Widget.H:835:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) {do_callback(o,(void*)arg);}
                                                                 ^~~
In file included from C:/gmsh-dep211/include/FL/Fl_Menu_.H:28:0,
                 from C:/gmsh-dep211/include/FL/Fl_Menu_Bar.H:25,
                 from C:/gmsh_SVN/Fltk/graphicWindow.h:20,
                 from C:/gmsh_SVN/Fltk/drawContextFltk.h:19,
                 from C:\gmsh_SVN\Common\Options.cpp:47:
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void Fl_Menu_Item::callback(void (*)(Fl_Widget*, long int), long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:243:89: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void callback(Fl_Callback1*c, long p=0) {callback_=(Fl_Callback*)c; user_data_=(void*)p;}
                                                                                         ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void Fl_Menu_Item::argument(long int)':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:267:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void argument(long v) {user_data_ = (void*)v;}
                                              ^
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H: In member function 'void Fl_Menu_Item::do_callback(Fl_Widget*, long int) const':
C:/gmsh-dep211/include/FL/Fl_Menu_Item.H:391:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   void do_callback(Fl_Widget* o,long arg) const {callback_(o, (void*)arg);}
                                                                      ^~~
[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/CommandLine.cpp.obj
In file included from C:/gmsh-dep211/include/hdf5.h:23:0,
                 from C:/gmsh-dep211/include/med.h:22,
                 from C:\gmsh_SVN\Common\CommandLine.cpp:41:
C:/gmsh-dep211/include/H5public.h:207:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
 #   define H5_PRINTF_HADDR_FMT  "%"H5_PRINTF_LL_WIDTH"u"
                                 ^
C:/gmsh-dep211/include/H5public.h:122:13: error: conflicting declaration 'typedef int ssize_t'
 typedef int ssize_t;
             ^~~~~~~
In file included from C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/x86_64-w64-mingw32/include/wchar.h:9:0,
                 from C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/cwchar:44,
                 from C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/bits/postypes.h:40,
                 from C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/bits/char_traits.h:40,
                 from C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/string:40,
                 from C:\gmsh_SVN\Common\CommandLine.cpp:6:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/x86_64-w64-mingw32/include/crtdefs.h:45:35: note: previous declaration as 'typedef long long int ssize_t'
 __MINGW_EXTENSION typedef __int64 ssize_t;
                                   ^~~~~~~
In file included from C:\gmsh_SVN\Common\CommandLine.cpp:13:0:
C:\gmsh_SVN\Common\CommandLine.cpp: In function 'const char* GetGmshPackager()':
C:/gmsh_SVN/BUILD/Common/GmshVersion.h:16:28: warning: unknown escape sequence: '\o'
 #define GMSH_PACKAGER      "lenovolaptopj\owner"
                            ^
C:\gmsh_SVN\Common\CommandLine.cpp:63:39: note: in expansion of macro 'GMSH_PACKAGER'
 const char *GetGmshPackager(){ return GMSH_PACKAGER; }
                                       ^~~~~~~~~~~~~
C:\gmsh_SVN\Common\CommandLine.cpp: In function 'void GetOptions(int, char**)':
C:/gmsh_SVN/BUILD/Common/GmshVersion.h:16:28: warning: unknown escape sequence: '\o'
 #define GMSH_PACKAGER      "lenovolaptopj\owner"
                            ^
C:\gmsh_SVN\Common\CommandLine.cpp:993:52: note: in expansion of macro 'GMSH_PACKAGER'
         fprintf(stderr, "Packaged by      : %s\n", GMSH_PACKAGER);
                                                    ^~~~~~~~~~~~~
CMakeFiles\gmsh.dir\build.make:212: recipe for target 'CMakeFiles/gmsh.dir/Common/CommandLine.cpp.obj' failed
mingw32-make[2]: *** [CMakeFiles/gmsh.dir/Common/CommandLine.cpp.obj] Error 1
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/gmsh.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/gmsh.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


More information about the gmsh mailing list