SIGILL error running Combine

I have compiled successfully Combine post processing tool. I’m trying to test the combine tool with my simulations and the benchmark case but I’m getting the following error. Someone knows what could be generating this error. I did the compilation in the debug mode but there is no a very clear message of the error for me. I appreciate your help @hogrefe.christian @lizadams.

*./run_combine_bench.csh *
Compiler is set to gcc

  •                                                                 *
    
  • This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      *
    
  • I/O Applications Programming Interface, [I/O API] which is      *
    
  • built on top of the netCDF I/O library (Copyright 1993, 1996    *
    
  • University Corporation for Atmospheric Research/Unidata         *
    
  • Program) and the PVM parallel-programming library (from         *
    
  • Oak Ridge National Laboratory).                                 *
    
  • Copyright (C) 1992-2002 MCNC,                                   *
    
  • (C) 1992-2018 Carlie J. Coats, Jr.,                             *
    
  • (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   *
    
  • (C) 2014-2021 UNC Institute for the Environment.                *
    
  • Released under the GNU LGPL  License, version 2.1.  See URL     *
    
  •                                                                 *
    
  •     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     *
    
  •                                                                 *
    
  • for conditions of use.                                          *
    
  •                                                                 *
    
  • ioapi-3.2: $Id: init3.F90 200 2021-05-10 14:06:20Z coats $*
    
  • Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048*
    
  • netCDF version 4.7.0 of Jul 26 2021 17:24:43 $*
    
  •  *
    
  •  *
    
  • Missing environment variable EXECUTION_ID*
    
  • API Started*

Program received signal SIGILL: Illegal instruction.

Backtrace for this error:
#0 0x7f44fd2a449f in ???
#1 0x465771 in ???
#2 0x431d83 in combine

  • at /project/k1090/juan/CMAQ_gnu/CMAQ_mpich/POST/combine/scripts/BLD_combine_v532_gcc/combine.F:130*
    #3 0x433403 in main
  • at /project/k1090/juan/CMAQ_gnu/CMAQ_mpich/POST/combine/scripts/BLD_combine_v532_gcc/combine.F:69*
    Illegal instruction (core dumped)
  •                                                                 *
    
  • This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      *
    
  • I/O Applications Programming Interface, [I/O API] which is      *
    
  • built on top of the netCDF I/O library (Copyright 1993, 1996    *
    
  • University Corporation for Atmospheric Research/Unidata         *
    
  • Program) and the PVM parallel-programming library (from         *
    
  • Oak Ridge National Laboratory).                                 *
    
  • Copyright (C) 1992-2002 MCNC,                                   *
    
  • (C) 1992-2018 Carlie J. Coats, Jr.,                             *
    
  • (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   *
    
  • (C) 2014-2021 UNC Institute for the Environment.                *
    
  • Released under the GNU LGPL  License, version 2.1.  See URL     *
    
  •                                                                 *
    
  •     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     *
    
  •                                                                 *
    
  • for conditions of use.                                          *
    
  •                                                                 *
    
  • ioapi-3.2: $Id: init3.F90 200 2021-05-10 14:06:20Z coats $*
    
  • Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048*
    
  • netCDF version 4.7.0 of Jul 26 2021 17:24:43 $*
    
  •  *
    
  •  *
    
  • Missing environment variable EXECUTION_ID*
    
  • API Started*

Program received signal SIGILL: Illegal instruction.

Backtrace for this error:
#0 0x7ff44002749f in ???
#1 0x465771 in ???
#2 0x431d83 in combine

  • at /project/k1090/juan/CMAQ_gnu/CMAQ_mpich/POST/combine/scripts/BLD_combine_v532_gcc/combine.F:130*
    #3 0x433403 in main
  • at /project/k1090/juan/CMAQ_gnu/CMAQ_mpich/POST/combine/scripts/BLD_combine_v532_gcc/combine.F:69*
    Illegal instruction (core dumped)

See https://cjcoats.github.io/ioapi/ERRORS.html#inst:

This is probably the result of compiling either the library or the model (or both) for a different processor-model than you are running it on…

You need to make sure everything is being compiled for the machine you are running on (for your gcc: -march=native -mtune=native); if you are running on a cluster with different processor-types on different nodes, then you probably need to do a specialized “least common denominator” compile.