Failed to Generate Operators on openEuler 24.03

Symptom

Operators fail to be generated on openEuler 24.03, and the error message "fatal error: 'cstdint' file not found" is displayed.

Possible Cause

See "Possible Cause" in Error Message "fatal error: 'cstdint' file not found" Is Displayed During ATC Conversion or Model Training in CANN Software Installation Guide.

Solution

Run the following command to import environment variables:

export CPLUS_INCLUDE_PATH=/usr/include/c++/12:/usr/include/c++/12/aarch64-openEuler-linux:$CPLUS_INCLUDE_PATH