This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: cl7x: "INTERNAL ERROR: no match for ICALL"

Tool/software: TI C/C++ Compiler

I was testing some code on the cl7x compiler, and started seeing an error message.  I was able to reduce it down to this:

#include <assert.h>

int main(int argc, char* argv[]) {
  assert(__builtin_expect(!!argc, 1));

  return 0;
}

Which results in:

>> t.c, line 4: INTERNAL ERROR: no match for ICALL
 
 
This may be a serious problem.  Please contact customer support with a
description of this problem and a sample of the source files that caused this
INTERNAL ERROR message to appear.
 
Cannot continue compilation - ABORTING!
 
 
>> Compilation failure

This is on Linux (Fedora 31 to be precise).  Here is the output of cl7x -version:

C7x C/C++ Compiler                      v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
 
C7x VCOP-C Compiler                     v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x EABI C/C++ Parser                   v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x C/C++ File Merge                    v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x C/C++ Optimizer                     v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x G3 C/C++ Codegen                    v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x Assembler                           v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x Embed Utility                       v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x C Source Interlister                v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x Linker                              v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x Strip Utility                       v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x C++ Demangler                       v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x Name Utility                        v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x Object File Display                 v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x Archiver                            v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D
C7x TI Clang C/C++ Parser               v1.2.0.STS
Build Number 1TJBK-2LI-UASAR-TAR-C08D

Please let me know if any additional information is required.

Other TI compilers don't seem to have a problem; see https://travis-ci.org/nemequ/hedley/builds/625168842 (not the reduced test case, but the same issue).

  • Thank you for reporting this problem and for submitting a concise test case.  I can reproduce the same behavior.  I filed the entry CODEGEN-6995 in the SDOWP system to have this investigated.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George