compiler errors - gcc : unknown type name -


i trying install linear solver called pdslin on ubuntu16.04 lts machine. installed dependencies when running make pdslin got warnings , errors. not understand -c in gcc -c come , whether reason of not identifying "superlu_options_t" variable.

(cd src; make lib;) make[1]: entering directory '/home/afrah/pdslin/src' (make all; cd slu; make lib) make[2]: entering directory '/home/afrah/pdslin/src' gcc -c -i/home/afrah/pdslin/include -i/home/afrah/superlu_5.2.0/src -i/usr/include -ddebuglevel=0 -dprntlevel=0 -dadd_ -duse_vendor_blas -i/home/afrah/superlu_dist_5.1.2/src -dscotch_order -i/usr/local/include -i/usr/share/parmetis/include   -i/usr/share/mpich-install/include -i/home/afrah/petsc/include -i/home/afrah/petsc/arch-linux2-c-debug/include -wall -dwith_hips -dwith_petsc   pdslin_graph.c pdslin_graph.c: in function ‘a_plus_at_comprow_loc_with_diag’: pdslin_graph.c:51:26: warning: variable ‘sz_tcolind_loc’ set not used [-wunused-but-set-variable]    int_t sz_tcolind_send, sz_tcolind_loc, sz_tcolind_recv;                           ^ pdslin_graph.c: in function ‘perm_snodes’: pdslin_graph.c:898:22: warning: passing argument 1 of ‘parmetis_v3_nodend’ incompatible pointer type [-wincompatible-pointer-types]    parmetis_v3_nodend(disp, m_rowptr, m_colind, &numflag, options,                       ^ // similar warnings pdslin_graph.c:1034:9: warning: variable ‘numflag’ set not used [-wunused-but-set-variable]    int   numflag;          ^ gcc -c -i/home/afrah/pdslin/include -i/home/afrah/superlu_5.2.0/src -i/usr/include -ddebuglevel=0 -dprntlevel=0 -dadd_ -duse_vendor_blas -i/home/afrah/superlu_dist_5.1.2/src -dscotch_order -i/usr/local/include -i/usr/share/parmetis/include   -i/usr/share/mpich-install/include -i/home/afrah/petsc/include -i/home/afrah/petsc/arch-linux2-c-debug/include -wall -dwith_hips -dwith_petsc   pdslin_wrapper.c gcc -c -i/home/afrah/pdslin/include -i/home/afrah/superlu_5.2.0/src -i/usr/include -ddebuglevel=0 -dprntlevel=0 -dadd_ -duse_vendor_blas -i/home/afrah/superlu_dist_5.1.2/src -dscotch_order -i/usr/local/include -i/usr/share/parmetis/include   -i/usr/share/mpich-install/include -i/home/afrah/petsc/include -i/home/afrah/petsc/arch-linux2-c-debug/include -wall -dwith_hips -dwith_petsc   pdslin_perm.c pdslin_perm.c: in function ‘comp_perm’: pdslin_perm.c:113:24: warning: passing argument 1 of ‘parmetis_v3_nodend’ incompatible pointer type [-wincompatible-pointer-types]      parmetis_v3_nodend(disp, rowptr_l, colind_l, &numflag, options,                         ^ in file included pdslin_perm.c:14:0: /home/afrah/superlu_dist_5.1.2/src/parmetis.h:102:13: note: expected ‘idx_t * {aka long int *}’ argument of type ‘int *’  int __cdecl parmetis_v3_nodend(              ^ pdslin_perm.c:113:30: warning: passing argument 2 of ‘parmetis_v3_nodend’ incompatible pointer type [-wincompatible-pointer-types]      parmetis_v3_nodend(disp, rowptr_l, colind_l, &numflag, options,                               ^ in file included pdslin_perm.c:14:0: /home/afrah/superlu_dist_5.1.2/src/parmetis.h:102:13: note: expected ‘idx_t * {aka long int *}’ argument of type ‘int *’  int __cdecl parmetis_v3_nodend(              ^ pdslin_perm.c:113:40: warning: passing argument 3 of ‘parmetis_v3_nodend’ incompatible pointer type [-wincompatible-pointer-types]      parmetis_v3_nodend(disp, rowptr_l, colind_l, &numflag, options,                                         ^  // warnings  gcc -c -i/home/afrah/pdslin/include -i/home/afrah/superlu_5.2.0/src -i/usr/include -ddebuglevel=0 -dprntlevel=0 -dadd_ -duse_vendor_blas -i/home/afrah/superlu_dist_5.1.2/src -dscotch_order -i/usr/local/include -i/usr/share/parmetis/include   -i/usr/share/mpich-install/include -i/home/afrah/petsc/include -i/home/afrah/petsc/arch-linux2-c-debug/include -wall -dwith_hips -dwith_petsc   pdslin_util.c in file included pdslin_util.c:11:0: /home/afrah/pdslin/include/pdslin_slu.h:49:24: error: unknown type name ‘superlu_options_t’  void get_perm_c_dist_t(superlu_options_t *options, int_t pnum, int_t ispec, s                         ^ /home/afrah/pdslin/include/pdslin_slu.h:70:24: error: unknown type name ‘superlu_options_t’  int_t pdslin_symbfact( superlu_options_t *options, /* input options */                         ^ pdslin_util.c: in function ‘a_plus_at’: pdslin_util.c:116:9: warning: variable ‘nnz_loc’ set not used [-wunused-but-set-variable]    int_t nnz_loc;    /* number of local nonzeros in matrix */          ^ pdslin_util.c:107:26: warning: variable ‘sz_tcolind_loc’ set not used [-wunused-but-set-variable]    int_t sz_tcolind_send, sz_tcolind_loc, sz_tcolind_recv;                           ^ pdslin_util.c: in function ‘pdslin_print_stat’: pdslin_util.c:1047:13: warning: format ‘%ld’ expects argument of type ‘long int’, argument 4 has type ‘long long int’ [-wformat=]      printf( "   domain dim             : (%.2lf, %.2lf ) %ld / %ld, %ld\n",              ^ pdslin_util.c:1047:13: warning: format ‘%ld’ expects argument of type ‘long int’, argument 5 has type ‘long long int’ [-wformat=] pdslin_util.c:1047:13: warning: format ‘%ld’ expects argument of type ‘long int’, argument 6 has type ‘long long int’ [-wformat=] pdslin_util.c:1049:13: warning: format ‘%ld’ expects argument of type ‘long int’, argument 4 has type ‘long long int’ [-wformat=]      printf( "   domain nnz             : (%.2lf, %.2lf ) %ld / %ld, %ld\n",              ^  // warnings  makefile:103: recipe target 'pdslin_util.o' failed make[2]: *** [pdslin_util.o] error 1 make[2]: leaving directory '/home/afrah/pdslin/src' make[2]: entering directory '/home/afrah/pdslin/src/slu' gcc -c -i/home/afrah/pdslin/include -i/home/afrah/superlu_5.2.0/src -i/usr/include -ddebuglevel=0 -dprntlevel=0 -dadd_ -duse_vendor_blas -i/home/afrah/superlu_dist_5.1.2/src -dscotch_order -i/usr/local/include -i/usr/share/parmetis/include   -i/usr/share/mpich-install/include -i/home/afrah/petsc/include -i/home/afrah/petsc/arch-linux2-c-debug/include -wall -dwith_hips -dwith_petsc   get_perm_c.c get_perm_c.c:49:11: error: unknown type name ‘superlu_options_t’            superlu_options_t *options,            ^ get_perm_c.c:167:19: error: unknown type name ‘superlu_options_t’  get_perm_c_dist_t(superlu_options_t *options, int_t pnum, int_t ispec, superm                    ^ makefile:41: recipe target 'get_perm_c.o' failed make[2]: *** [get_perm_c.o] error 1 make[2]: leaving directory '/home/afrah/pdslin/src/slu' makefile:46: recipe target 'lib' failed make[1]: *** [lib] error 2 make[1]: leaving directory '/home/afrah/pdslin/src' makefile:8: recipe target 'all' failed make: *** [all] error 2 

this makefile:

 # # top directory make.inc #  # on hopper: % module load cray-petsc loads cray-tpsl, including pt-schotch , parmetis.  ######################################################################## # home directory, software located top  = /home/afrah/pdslin  includedir =/usr/include ######################################################################## # hybrid solver library name lib  = $(top)/lib/libhybrid.a  ######################################################################## # libraries: # # mpi/blas libraries l_mpi =  /usr/share/mpich-install/lib/libmpi.a -llibmpi i_mpi =  -i/usr/share/mpich-install/include l_blas = -llibblas -lliblapack  ######################################################################## # make utility make = make  ######################################################################## # archiver , flags build library arch         = /usr/bin/ar archflags    = -cr ranlib       = /usr/bin/ranlib ######################################################################## # c compiler , flags cc    = gcc flags =  -wall -dwith_hips -dwith_petsc flags =  -wall -dwith_hips -dwith_petsc   ######################################################################## # fortran compiler , flags fc     = mpif90 flib   = -pgf90libs fflags = -fast  fflags = -g  ######################################################################## # linker used link example program library #linker = /usr/share/mpich-install/bin/mpicc -wl,--allow-multiple-definition linker = cc -wl,--allow-multiple-definition   ######################################################################## # c++ compiler (this not needed standard compilation) cpp = mpicxx  ####################################################################  #l_ppart = -l/usr/share/parmetis/lib/libparmetis -lparmetis   #i_ppart = -i/usr/local/include    l_ppart =  -l/usr/local/lib  -llibscotch  -llibptscotch \            -l/usr/local/lib  -lptscotcherr  -llibscotchmetis -lptscotchparmetis  i_ppart = -dscotch_order -i/usr/local/include  #------------------------------------------------------# # metis library, , header files l_metis = -l/usr/share/parmetis/lib/libmetis -lmetis  i_metis =  -i/usr/share/parmetis/include    #------------------------------------------------------# # superlu_dist library, , header files  (hopper: module load superlu_dist) # sludist = /global/common/hopper2/acts/superlu/superlu_dist/2.5 # l_sludist = -l$(sludist)/craypgi-xe6_o/lib -lsuperlu_dist_2.5 # i_sludist = -ddebuglevel=0 -dprntlevel=1 -dadd_ -duse_vendor_blas -i$(sludist)/src   sludist = /home/afrah/superlu_dist_5.1.2 i_sludist = -ddebuglevel=0 -dprntlevel=0 -dadd_ -duse_vendor_blas -i$(sludist)/src l_sludist =  -l$(sludist)/lib -llibsuperlu_dist.so   #------------------------------------------------------# # petsc library, , header files # double version i_petsc = -i/home/afrah/petsc/include \           -i/home/afrah/petsc/arch-linux2-c-debug/include l_petsc = -l/home/afrah/petsc/arch-linux2-c-debug/lib -llibpetsc   #------------------------------------------------------# # other optional libraries  # serial superlu l_slu = -l/home/afrah/superlu_5.2.0/lib -llibsuperlu_5.2.a i_slu = -i/home/afrah/superlu_5.2.0/src  ######################################################################## ######################################################################## # accumulate includes , libraries  inc  = -i$(top)/include $(i_slu) -i$(includedir) $(i_sludist) $(i_ppart) $(i_metis)  $(i_mpi) $(i_petsc) libs = $(lib) $(l_slu) $(l_sludist) $(l_ppart) $(l_metis) $(l_blas) $(l_mpi) $ 

(l_petsc) zlibs = $(lib) $(l_sludist) $(l_ppart) $(l_metis) $(l_blas) $(l_mpi) $(l_slu) $(l_petsc)


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -