[gmx-users] Gromacs 2018.3 install warning

Du, Yu duyu at sioc.ac.cn
Wed Aug 29 14:10:41 CEST 2018


All right. Thanks for reply.

At2018-08-29 20:04:49,Paul bauer<paul.bauer.q at gmail.com>wrote:
> Hello,
> 
> we have not yet full support for gcc-8, but this is being worked on. You 
> can disregard those warnings safely for now.
> 
> /Paul
> 
> On 29/08/2018 14:01, Du, Yu wrote:
> > Dear gmx-users,
> >
> >
> >
> >
> > I was installing gromacs-2018.3 with gcc8.1, `make -j 24` gave the following warning:
> >
> >
> > `make check` with regression test set 100% passed. Hope next version will fix these warnings.
> >
> >
> > ##################################Warnings##################################################
> > [ 33%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/gmxpreprocess/pdb2top.cpp.o
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_tune_pme.cpp: In function ‘void make_benchmark_tprs(const char*, char**, gmx_int64_t, gmx_int64_t, real, real, real, int*, t_inputinfo*, FILE*)’:
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_tune_pme.cpp:1080:21: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
> >           std::strncpy(fn_bench_tprs[j], fn_sim_tpr, std::strlen(fn_sim_tpr)-std::strlen(".tpr"));
> >           ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_tune_pme.cpp:1080:63: note: length computed here
> >           std::strncpy(fn_bench_tprs[j], fn_sim_tpr, std::strlen(fn_sim_tpr)-std::strlen(".tpr"));
> >                                                      ~~~~~~~~~~~^~~~~~~~~~~~
> > [ 33%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/gmxpreprocess/pgutil.cpp.o
> >
> >
> > [ 35%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/analysisdata/datamodule.cpp.o
> > In function ‘void calc_cumulatives(t_UmbrellaWindow*, int, t_UmbrellaOptions*, const char*, const char*)’,
> >      inlined from ‘void do_bootstrapping(const char*, const char*, const char*, const char*, char*, double*, t_UmbrellaWindow*, int, t_UmbrellaOptions*)’ at /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp:1689:29:
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp:1274:16: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
> >           sprintf(fn, "%s_cumul.xvg", std::strncpy(buf, fnhist, std::strlen(fnhist)-4));
> >           ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp: In function ‘void do_bootstrapping(const char*, const char*, const char*, const char*, char*, double*, t_UmbrellaWindow*, int, t_UmbrellaOptions*)’:
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp:1274:74: note: length computed here
> >           sprintf(fn, "%s_cumul.xvg", std::strncpy(buf, fnhist, std::strlen(fnhist)-4));
> >                                                                 ~~~~~~~~~~~^~~~~~~~
> > In function ‘void print_histograms(const char*, t_UmbrellaWindow*, int, int, t_UmbrellaOptions*, const char*)’,
> >      inlined from ‘void do_bootstrapping(const char*, const char*, const char*, const char*, char*, double*, t_UmbrellaWindow*, int, t_UmbrellaOptions*)’ at /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp:1735:29:
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp:1516:16: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
> >           sprintf(fn, "%s_bs%d.xvg", std::strncpy(buf, fnhist, std::strlen(fnhist)-4), bs_index);
> >           ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp: In function ‘void do_bootstrapping(const char*, const char*, const char*, const char*, char*, double*, t_UmbrellaWindow*, int, t_UmbrellaOptions*)’:
> > /share/home/para008/software_new/src/gromacs-2018.3/src/gromacs/gmxana/gmx_wham.cpp:1516:73: note: length computed here
> >           sprintf(fn, "%s_bs%d.xvg", std::strncpy(buf, fnhist, std::strlen(fnhist)-4), bs_index);
> >                                                                ~~~~~~~~~~~^~~~~~~~
> > [ 35%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/analysisdata/datamodulemanager.cpp.o
> > ##################################Warnings##################################################
> >
> >
> >
> > --
> > Du, Yu
> > PhD Student,
> > Shanghai Institute of Organic Chemistry
> > 345 Ling Ling Rd., Shanghai, China.
> > Zip: 200032, Tel: (86) 021 5492 5275
> 
> 
> -- 
> Gromacs Users mailing list
> 
> * Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!
> 
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
> 
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a mail to gmx-users-request at gromacs.org.



More information about the gromacs.org_gmx-users mailing list