Skip to Content.
Sympa Menu

charm - Re: [charm] Compiling error

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Compiling error


Chronological Thread 
  • From: Evan Ramos <evan AT hpccharm.com>
  • To: Gerardo Gonzalez <g_glez AT yahoo.com>
  • Cc: "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
  • Subject: Re: [charm] Compiling error
  • Date: Thu, 8 Jul 2021 16:06:45 -0500
  • Authentication-results: ppops.net; spf=none smtp.mailfrom=evan AT hpccharm.com; dkim=fail header.d=hpccharm-com.20150623.gappssmtp.com header.s=20150623

Hi Gerardo,

Charm++ supports building with GCC on Windows through MSYS2, but not Cygwin or the original MSYS. You can install MSYS2 from: https://www.msys2.org/

Once installed and fully updated, run `pacman -S mingw-w64-x86_64-{toolchain,cmake} make autoconf automake git` to install the necessary dependencies. Then, open the MSYS MinGW 64-bit shortcut (not 32-bit or "MSYS2 MSYS") to get a prompt capable of building Charm.

We would recommend using the latest code from our Git repository: https://github.com/UIUC-PPL/charm.git

The build command would be: ./build charm++ multicore-win-x86_64 gcc

Regards,
--
Evan A. Ramos
Software Engineer
Charmworks, Inc.


On Mon, Jul 5, 2021 at 9:36 AM Gerardo Gonzalez <g_glez AT yahoo.com> wrote:
Hi!

I started to compile charm++ under windows10, using gcc. In both Msys/Mingw and cygwin, I got the same error: 

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../hwloc/include/private/autogen -I../../hwloc/inc
lude/hwloc/autogen -I/c/users/gerardo/Documents/FreeLancer/NAMD/NAMDSource/charm-6.10.2/multicore-win64-gc
c/tmp/hwloc/include -I/c/users/gerardo/Documents/FreeLancer/NAMD/NAMDSource/charm-6.10.2/multicore-win64-g
cc/tmp/hwloc/include -DHWLOC_INSIDE_LIBHWLOC -DHWLOC_PLUGINS_PATH=\"/usr/lib/hwloc\" -DRUNSTATEDIR=\"\" -D
_CRT_SECURE_NO_DEPRECATE -I./../include -D__CHARMC__=1 -fno-stack-protector -D_CRT_SECURE_NO_DEPRECATE -MT
 topology.lo -MD -MP -MF .deps/topology.Tpo -c topology.c -o topology.o
topology.c: In function ‘cmi_hwloc_fallback_nbprocessors’:
topology.c:143:7: warning: implicit declaration of function ‘sysconf’; did you mean ‘siscanf’? [-Wimplicit
-function-declaration]
  143 |   n = sysconf(_SC_NPROCESSORS_ONLN);
      |       ^~~~~~~
      |       siscanf
topology.c:143:15: error: ‘_SC_NPROCESSORS_ONLN’ undeclared (first use in this function)
  143 |   n = sysconf(_SC_NPROCESSORS_ONLN);
      |               ^~~~~~~~~~~~~~~~~~~~


Can you help me?

Thanks before hands and best wishes,

Gerardo



Archive powered by MHonArc 2.6.19.

Top of Page