[ET Trac] #2923: ADIOS2 compilation fails due to unknown type name ‘INT4= ’

Cheng-Hsin Cheng trac-noreply at einsteintoolkit.org
Thu Mar 12 14:46:28 CDT 2026


#2923: ADIOS2 compilation fails due to unknown type name ‘INT4’

 Reporter: Cheng-Hsin Cheng
   Status: new
Milestone: 
  Version: ET_2025_05
     Type: bug
 Priority: major
Component: EinsteinToolkit thorn

ExternalLibraries/ADIOS2 compilation fails at the thirdparth/ffs stage, which seemed to happen when the size of int was not correctly detected by CMake.

This error happened when I was trying to compile on Delta using cmake/3.31.8 and GNU 13.3.1 compilers, more details on the configuration [here](https://bitbucket.org/simfactory/simfactory2/pull-requests/76)

The first error occurred here
```
[ 15%] Building C object thirdparty/ffs/ffs/CMakeFiles/ffs.dir/ffs/ffs_marshal.c.o
In file included from /projects/bcvu/chcheng3/ETK_2025_05/Cactus/configs/et-test-simfactory/scratch/build/ADIOS2/ADIOS2-2.10.2/thirdparty/ffs/ffs/ffs/ffs.c:10:
/projects/bcvu/chcheng3/ETK_2025_05/Cactus/configs/et-test-simfactory/scratch/build/ADIOS2/ADIOS2-2.10.2/thirdparty/ffs/ffs/fm/fm_internal.h:150:5: error: unknown type name ‘INT4’
  150 |     INT4 field_size;
      |     ^~~~
```

In the header `fm_internal.h` the macro `INT4` seems to be undefined when CMake failed to set SIZEOF_INT correctly
```
#if SIZEOF_INT == 4
#define INT4 int
#define UINT4 unsigned int
#endif
```

I am not sure now to get CMake to set it correctly, and need some help resolving it.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2923/adios2-compilation-fails-due-to-unknown
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20260312/d73e7ded/attachment.htm>


More information about the Trac mailing list