ornladios / ADIOS2

Next generation of ADIOS developed in the Exascale Computing Program
https://adios2.readthedocs.io/en/latest/index.html
Apache License 2.0
265 stars 121 forks source link

Unable to install with GCC 11.4.0 #4172

Open princesswinnie1122 opened 1 month ago

princesswinnie1122 commented 1 month ago

Hello, I'm installing ADIOS2 for LAMMPS...but kept on failing the installation process. Below are the details. Please let me know if I missing anything! Thanks a lot!

eisenhauer commented 1 month ago

Certainly odd. It looks like when compilng the EVPath subproject the CMake-generated config.h file isn't being included (that's where IPCONFIG_ENVVAR_PREFIX should be defined). So maybe it's not being generated somehow, maybe the include path has something ahead of it so a different config.h is found, maybe something else. You mention the compiler, has this succeeded with other compiler versions? Seeing the output of "make VERBOSE=1" might be helpful as we'd see the compiler full command line.

anagainaru commented 1 month ago

I installed LAMMPS with ADIOS2 on Perlmutter not too long ago using gcc/11.2.0 and it worked (I have to check what other module I loaded). What system are you trying to build this on?

pnorbert commented 1 week ago

Is there any update on this issue? In your build directory, what is the content of thirdparty/EVPath/EVPath/config.h This file contains #define IPCONFIG_ENVVAR_PREFIX "ADIOS2_", and therefore it should be defined when compiling the EVPath source code, so I never see this error that you have. But I am not using gcc/11, only gcc/9, gcc/10 and gcc/12 versions.

/home/scteam06/lammps/build/ADIOS-2.8.0/thirdparty/EVPath/EVPath/ip_config.c: In function ‘get_self_ip_iface’:
/home/scteam06/lammps/build/ADIOS-2.8.0/thirdparty/EVPath/EVPath/ip_config.c:251:26: error: ‘IPCONFIG_ENVVAR_PREFIX’ undeclared (first use in this function)
  251 |         char *c = getenv(IPCONFIG_ENVVAR_PREFIX "LAST_RESORT_IP_ADDR");
      |                          ^~~~~~~~~~~~~~~~~~~~~~