I have "Error-[ICTTFC] Incompatible complex type usage" error when using set_config object (OVM)

hi,
this code is part of my env:

function void build();
    super.build();
    
     m_cv_config = new("cv_config");
     **set_config_object("*","cv_config",m_cv_config,0);**       

    test_cfg = cust_svt_ocp_system_configuration::type_id::create("test_cfg");
    **set_config_object("*env", "test_cfg", this.test_cfg, 0)**;

i’m receiving 2 ICTTFC errors, one for each set_config_object command:

Error-[ICTTFC] Incompatible complex type usage
/p/mpg/sa_ppa_fpga_design_05/work/epniel/ICLI_M0//verif/tests/cv_base_test.sv, 94
Incompatible complex type usage in task or function call.
The following expression is incompatible with the formal parameter of the
function. The type of the actual is ‘class
CV_ENV_LIB.cv_env_pkg::cv_config’, while the type of the formal is ‘class
FPGA_CVE_TB_LIB.ovm_pkg::ovm_object’. Expression: this.m_cv_config
Source info: this.set_config_object(“*”, “cv_config”, this.m_cv_config, 0)

Error-[ICTTFC] Incompatible complex type usage
/p/mpg/sa_ppa_fpga_design_05/work/epniel/ICLI_M0//verif/tests/cv_base_test.sv, 114
Incompatible complex type usage in task or function call.
The following expression is incompatible with the formal parameter of the
function. The type of the actual is ‘class
OCP_BFM_LIB.ocp_bfm_env_pkg::cust_svt_ocp_system_configuration’, while the
type of the formal is ‘class FPGA_CVE_TB_LIB.ovm_pkg::ovm_object’.
Expression: this.test_cfg
Source info: this.set_config_object(“*env”, “test_cfg”, this.test_cfg, 0)

I came across this error before in analysis port using, and I needed to make sure both of them are using the same seq_item,
but here, I don’t know what is the “formal” type, where I set it to be ovm_object (I guess it’s somehow related to the FPGA_CVE_TB_LIB, don’t really know how), and how can I solve this.

thanks for your help.
Ori

In reply to oribanin:

If the class types for m_cv_config and test_cfg are both derived from ovm_object, it’s possible you compiled the ovm_pkg into two separate libraries. Make sure that the OVM package is only in one library. If that is the case, please read you tool’s manual as this Mentor sponsored forum is not for tool specific issues.