When build CCTM, error occurs: make: *** [EMIS_VARS.o] Error 1 **ERROR** while running make command

Makefile generated
mpiifort -c -fixed -132 -O3 -fno-alias -mp1 -fp-model source -ftz -simd -align all -xHost -vec-guard-write -unroll-aggressive -I /gpfs/duxin/v5.3.1/lib/x86_64/intel/ioapi/lib -I /gpfs/duxin/v5.3.1/lib/x86_64/intel/ioapi/include_files -I /gpfs/duxin/v5.3.1/lib/x86_64/intel/mpi -I. -Dparallel -Dm3dry_opt -DSUBST_BARRIER=SE_BARRIER -DSUBST_GLOBAL_MAX=SE_GLOBAL_MAX -DSUBST_GLOBAL_MIN=SE_GLOBAL_MIN -DSUBST_GLOBAL_MIN_DATA=SE_GLOBAL_MIN_DATA -DSUBST_GLOBAL_TO_LOCAL_COORD=SE_GLOBAL_TO_LOCAL_COORD -DSUBST_GLOBAL_SUM=SE_GLOBAL_SUM -DSUBST_GLOBAL_LOGICAL=SE_GLOBAL_LOGICAL -DSUBST_LOOP_INDEX=SE_LOOP_INDEX -DSUBST_SUBGRID_INDEX=SE_SUBGRID_INDEX -DSUBST_HI_LO_BND_PE=SE_HI_LO_BND_PE -DSUBST_SUM_CHK=SE_SUM_CHK -DSUBST_SE_INIT=SE_INIT -DSUBST_INIT_ARRAY=SE_INIT_ARRAY -DSUBST_COMM=SE_COMM -DSUBST_MY_REGION=SE_MY_REGION -DSUBST_SLICE=SE_SLICE -DSUBST_GATHER=SE_GATHER -DSUBST_DATA_COPY=SE_DATA_COPY -DSUBST_IN_SYN=SE_IN_SYN -DSUBST_PE_COMM="./PE_COMM.EXT" -DSUBST_CONST="./CONST.EXT" -DSUBST_FILES_ID="./FILES_CTM.EXT" -DSUBST_EMISPRM="./EMISPRM.EXT" -DSUBST_MPI="/gpfs/duxin/v5.3.1/lib/x86_64/intel/mpi/include/mpif.h" EMIS_VARS.F
EMIS_VARS.F(372): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [AERO_DATA]
USE AERO_DATA, ONLY : ACORSEM_ASO4_FAC
----------^
EMIS_VARS.F(425): error #6406: Conflicting attributes or multiple declaration of name. [ACORSEM_ASO4_FAC]
EM_NML_B(N_EM_RULE_B)%FAC = REAL( ACORSEM_ASO4_FAC, 4 )
------------------------------------------------^
EMIS_VARS.F(425): warning #7319: This argument’s data type is incompatible with this intrinsic procedure; procedure assumed EXTERNAL. [REAL]
EM_NML_B(N_EM_RULE_B)%FAC = REAL( ACORSEM_ASO4_FAC, 4 )
------------------------------------------------^
EMIS_VARS.F(425): error #6404: This name does not have a type, and must have an explicit type. [REAL]
EM_NML_B(N_EM_RULE_B)%FAC = REAL( ACORSEM_ASO4_FAC, 4 )
------------------------------------------^
EMIS_VARS.F(372): error #6580: Name in only-list does not exist or is not accessible. [ACORSEM_ASO4_FAC]
USE AERO_DATA, ONLY : ACORSEM_ASO4_FAC
----------------------------^
compilation aborted for EMIS_VARS.F (code 1)
make: *** [EMIS_VARS.o] Error 1
ERROR while running make command

How can I fix this error?
Thank you all.

Please include the text of the compile-command for EMIS_VARS.F that generated this error.
…and then chase down the directory-definitions that are relevant to all the “-I” directives.

Thank you very much. I have reuploaded the error.

In your build-directory, is there an aero_data.mod ?

If not, your Makefile needs to have dependencies so that make build it before it gets to compiling EMIS_VARS.F. Maybe make clean and then do a new make?

Thank you for giving me much inspiration. I have fixed this error. It’s my dependency library problem.

Best regards
Roll