[aurix development studio] 報錯ctc S911: internal consistency check failed - please report 求助

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager

Hi, 我在使用aurix development studio 遇到了ctc S911: internal consistency check failed - please report報錯, 該怎麼解決?

 

 


Building file: ../src/sja1105.c Invoking: TASKING C/C++ Compiler ctc S911: internal consistency check failed - please report cctc -cs --dep-file="src/sja1105.d" --misrac-version=2004 -D__CPU__=tc39xb "-fD:/tc397/code-1222/tc397_fx/TriCore Debug (TASKING)/TASKING_C_C___Compiler-Include_paths__-I_.opt" --iso=99 --c++14 --language=+volatile --exceptions --anachronisms --fp-model=3 -O0 --tradeoff=4 --compact-max-size=200 -g -Wc-w544 -Wc-w557 -Ctc39xb -Y0 -N0 -Z0 -o "src/sja1105.src" "../src/sja1105.c" && \ make: *** [src/subdir.mk:43: src/sja1105.src] Error 1 if [ -f "src/sja1105.d" ]; then sed.exe -r -e 's/\b(.+\.o)\b/src\/\1/g' -e 's/\\/\//g' -e 's/\/\//\//g' -e 's/"//g' -e 's/([a-zA-Z]:\/)/\L\1/g' -e 's/\d32:/@TARGET_DELIMITER@/g; s/\\\d32/@ESCAPED_SPACE@/g; s/\d32/\\\d32/g; s/@ESCAPED_SPACE@/\\\d32/g; s/@TARGET_DELIMITER@/\d32:/g' "src/sja1105.d" > "src/sja1105.d_sed" && cp "src/sja1105.d_sed" "src/sja1105.d" && rm -f "src/sja1105.d_sed" 2>/dev/null; else echo 'No dependency file to process';fi make: *** Waiting for unfinished jobs.... TASKING VX-toolset for AURIX Development Studio (non-commercial): control program v1.1r8 Build 22011964 Building file: ../Cpu0_Main.c

 

感謝.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/aurix-development-studio-%E6%8A%A5%E9%94%99ctc-S911-internal-consistency-check-failed-please/td-p/666241

1 解決方案
Translation_Bot
Community Manager
Community Manager
Community Manager

The S911 error does indicate an internal problem which prevents the C compiler executable from creating an output file.Typically the cause of this kind of errors is a C compiler optimization which fails.You can verify this in your use case.The C source file which does cause the problem is:

/src/sja1105.c

Please add the entry:

#pragma optimize 0

at the beginning of this file to figure out if disabling all C compiler optimization can mitigate the issue.

If so you can try to locate the individual optimization which causes the problem by enabling optimizations following this approach:

Use

#pragma optimize 0cef

If this still works then:

#pragma optimize 0gik

If this still works then:

#pragma optimize 0lmn

If this still works then:

#pragma optimize 0opr

If this still works then:

#pragma optimize 0suvwy

For the branch which fails you can disable the individual optimizations.Eg if the error shows up when:

#pragma optimize 0cef

is used then you can try:

#pragma optimize 0c

and

#pragma optimize 0e

and

#pragma optimize 0f

to enable the individual optimizations.If it turns out that

#pragma optimize 0f

is causing the trouble then the control flow simplification must be disabled to prevent the problem.

Then the smart mitigation is to use:

#pragma optimize F

in the affected C source file.

 

Best regards,

Ulrich Kloidt
TASKING tools support

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/aurix-development-studio-%E6%8A%A5%E9%94%99ctc-S911-internal-consistency-check-failed-please/m-p/672328

在原始文章中檢視解決方案

0
2 回應
Translation_Bot
Community Manager
Community Manager
Community Manager

Hi @User13836 ,

Would you help to share some comments about this compiler error?
BR,
Jeremy

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/aurix-development-studio-%E6%8A%A5%E9%94%99ctc-S911-internal-consistency-check-failed-please/m-p/666316

0
Translation_Bot
Community Manager
Community Manager
Community Manager

The S911 error does indicate an internal problem which prevents the C compiler executable from creating an output file.Typically the cause of this kind of errors is a C compiler optimization which fails.You can verify this in your use case.The C source file which does cause the problem is:

/src/sja1105.c

Please add the entry:

#pragma optimize 0

at the beginning of this file to figure out if disabling all C compiler optimization can mitigate the issue.

If so you can try to locate the individual optimization which causes the problem by enabling optimizations following this approach:

Use

#pragma optimize 0cef

If this still works then:

#pragma optimize 0gik

If this still works then:

#pragma optimize 0lmn

If this still works then:

#pragma optimize 0opr

If this still works then:

#pragma optimize 0suvwy

For the branch which fails you can disable the individual optimizations.Eg if the error shows up when:

#pragma optimize 0cef

is used then you can try:

#pragma optimize 0c

and

#pragma optimize 0e

and

#pragma optimize 0f

to enable the individual optimizations.If it turns out that

#pragma optimize 0f

is causing the trouble then the control flow simplification must be disabled to prevent the problem.

Then the smart mitigation is to use:

#pragma optimize F

in the affected C source file.

 

Best regards,

Ulrich Kloidt
TASKING tools support

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/aurix-development-studio-%E6%8A%A5%E9%94%99ctc-S911-internal-consistency-check-failed-please/m-p/672328

0