Re: potential bug while compiling the Windows version of NAMD

From: Osvalds Verners (osvalds.verners_at_yahoo.com)
Date: Mon Apr 05 2021 - 23:11:10 CDT

 Hello David,
thank you for getting back and apologies for a delayed response. I am using gcc version 10.2.0.
Best regards,
Osvalds Verners
    On Tuesday, March 30, 2021, 03:26:36 AM GMT+3, David Hardy <dhardy_at_ks.uiuc.edu> wrote:
 
 Hi Osvalds,
What version of gcc are you using?
Best regards,Dave
--David J. Hardy, Ph.D.Beckman InstituteUniversity of Illinois at Urbana-Champaign405 N. Mathews Ave., Urbana, IL 61801dhardy_at_ks.uiuc.edu, http://www.ks.uiuc.edu/~dhardy/

On Mar 25, 2021, at 12:37 PM, Osvalds Verners <osvalds.verners_at_REMOVE_yahoo.com> wrote:
 Dear Sir/Madam,

I would like to report an error which occurred while compiling the NAMD_2.14_Win64-multicore version using the following command:
./build charm++  multicore-win64 gcc --with-production

---
In file included from bind.c:11:bind.c: In function ‘cmi_hwloc_alloc_heap’:/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc/include/private/private.h:282:29: warning: implicit declaration of function ‘sysconf’; did you mean ‘siscanf’? [-Wimplicit-function-declaration]  282 | #define hwloc_getpagesize() sysconf(_SC_PAGE_SIZE)      |                             ^~~~~~~/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc/include/private/private.h:282:29: note: in definition of macro ‘hwloc_getpagesize’  282 | #define hwloc_getpagesize() sysconf(_SC_PAGE_SIZE)      |                             ^~~~~~~/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc/include/private/private.h:282:37: error: ‘_SC_PAGE_SIZE’ undeclared (first use in this function); did you mean ‘USN_PAGE_SIZE’?  282 | #define hwloc_getpagesize() sysconf(_SC_PAGE_SIZE)      |                                     ^~~~~~~~~~~~~/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc/include/private/private.h:282:37: note: in definition of macro ‘hwloc_getpagesize’  282 | #define hwloc_getpagesize() sysconf(_SC_PAGE_SIZE)      |                                     ^~~~~~~~~~~~~/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc/include/private/private.h:282:37: note: each undeclared identifier is reported only once for each function it appears in  282 | #define hwloc_getpagesize() sysconf(_SC_PAGE_SIZE)      |                                     ^~~~~~~~~~~~~/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc/include/private/private.h:282:37: note: in definition of macro ‘hwloc_getpagesize’  282 | #define hwloc_getpagesize() sysconf(_SC_PAGE_SIZE)      |                                     ^~~~~~~~~~~~~make[2]: *** [Makefile:721: bind.lo] Error 1make[2]: Leaving directory '/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc/src'make[1]: *** [Makefile:418: all-recursive] Error 1make[1]: Leaving directory '/NAMD_2.14_Source/charm-6.10.2/multicore-win64-gcc/tmp/hwloc'make: *** [Makefile:565: hwloc-target] Error 2
---
Since I have not changed any source file, it could be considered as a potential bug (did not find in the known bugs list though).
Best regards,
Osvalds Verners  
  

This archive was generated by hypermail 2.1.6 : Fri Dec 31 2021 - 23:17:11 CST