Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

icpx ICE in LegalizeIntegerTypes.cpp

vzecca
Beginner
1,107 Views

cat icpxerr6.C
// icpx ICE in LegalizeIntegerTypes.cpp
int main ()
{
void *co_h;

bool d = __builtin_coro_done (co_h);

}

icpx icpxerr6.C
PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang++ -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name icpxerr6.C -mrelocation-model static -fveclib=SVML -mframe-pointer=none -menable-no-infs -menable-no-nans -menable-unsafe-fp-math -fno-signed-zeros -mreassociate -freciprocal-math -fdenormal-fp-math=preserve-sign,preserve-sign -ffp-contract=fast -fno-rounding-math -ffast-math -ffinite-math-only -mconstructor-aliases -munwind-tables -target-cpu x86-64 -mllvm -x86-enable-unaligned-vector-move=true -tune-cpu generic -debugger-tuning=gdb -fcoverage-compilation-dir=/home/vitti/f95/cc -resource-dir /opt/intel/oneapi/compiler/2021.3.0/linux/lib/clang/13.0.0 -I/opt/intel/oneapi/vpl/2021.4.0/include -I/opt/intel/oneapi/tbb/2021.3.0/env/../include -I/opt/intel/oneapi/mpi/2021.3.0//include -I/opt/intel/oneapi/mkl/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/ippcp/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/dpl/2021.4.0/linux/include -I/opt/intel/oneapi/dpcpp-ct/2021.3.0/include -I/opt/intel/oneapi/dnnl/2021.3.0/cpu_dpcpp_gpu_dpcpp/lib -I/opt/intel/oneapi/dev-utilities/2021.3.0/include -I/opt/intel/oneapi/dal/2021.3.0/include -I/opt/intel/oneapi/compiler/2021.3.0/linux/include -I/opt/intel/oneapi/ccl/2021.3.0/include/cpu_gpu_dpcpp -I/opt/intel/oneapi/vpl/2021.4.0/include -I/opt/intel/oneapi/tbb/2021.3.0/env/../include -I/opt/intel/oneapi/mpi/2021.3.0//include -I/opt/intel/oneapi/mkl/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/ippcp/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/dpl/2021.4.0/linux/include -I/opt/intel/oneapi/dpcpp-ct/2021.3.0/include -I/opt/intel/oneapi/dnnl/2021.3.0/cpu_dpcpp_gpu_dpcpp/lib -I/opt/intel/oneapi/dev-utilities/2021.3.0/include -I/opt/intel/oneapi/dal/2021.3.0/include -I/opt/intel/oneapi/compiler/2021.3.0/linux/include -I/opt/intel/oneapi/ccl/2021.3.0/include/cpu_gpu_dpcpp -cxx-isystem /opt/intel/oneapi/clck/2021.3.0/include -cxx-isystem /opt/intel/oneapi/clck/2021.3.0/include -internal-isystem /opt/intel/oneapi/compiler/2021.3.0/linux/bin/../compiler/include -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward -internal-isystem /opt/intel/oneapi/compiler/2021.3.0/linux/lib/clang/13.0.0/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fdeprecated-macro -fdebug-compilation-dir=/home/vitti/f95/cc -ferror-limit 19 -fheinous-gnu-extensions -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -fintel-compatibility -mllvm -disable-hir-generate-mkl-call -mllvm -intel-libirc-allowed -mllvm -loopopt=0 -mllvm -enable-lv -o /tmp/icpxerr6-2fcf73.o -x c++ icpxerr6.C
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'icpxerr6.C'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function ''
#0 0x0000563e65e0c68a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f68a)
#1 0x0000563e65e0c430 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f430)
#2 0x0000563e65e0c914 SignalHandler(int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f914)
#3 0x0000147e3b455a20 (/usr/lib64/libpthread.so.0+0x13a20)
#4 0x0000563e64877305 (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2dfa305)
clang++: error: unable to execute command: Trace/breakpoint trap (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++/C++ Compiler 2021.3.0 (2021.3.0.20210619)
Target: x86_64-unknown-linux-gnu
Thread model: posix

0 Kudos
1 Solution
Khalik_K_Intel
Moderator
1,034 Views

As there are no other objections, we consider this thread as being resolved.


Please, enable C++20 features to use coroutines as advised before:

icpx -std=c++20 icpxerr6.cpp


This issue has been resolved and we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread.

Any further interaction in this thread will be considered community only.


View solution in original post

0 Kudos
3 Replies
NoorjahanSk_Intel
Moderator
1,091 Views

Hi,

Thanks for reaching out to us.

We are also able to reproduce the error at our end.

We are working on it internally and will get back to you soon.

Meanwhile, could you please try using -fcoroutines-ts flag as a workaround while compiling with icpx compiler. 

 

Thanks & Regards

Noorjahan

 

0 Kudos
Khalik_K_Intel
Moderator
1,065 Views

Hello,


Thank you for contacting Intel support.

Here you are trying to use coroutines, which are introduced in C++20.

By the default, Intel oneAPI DPC++/C++ compiler does not enable C++20 features.


If you compile your program as follows, everything would work for you:

icpx -std=c++20 icpxerr6.cpp


Please see the description of -std option here:

https://software.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/language-options/std-qstd.html


Regards,

Khalik.


0 Kudos
Khalik_K_Intel
Moderator
1,035 Views

As there are no other objections, we consider this thread as being resolved.


Please, enable C++20 features to use coroutines as advised before:

icpx -std=c++20 icpxerr6.cpp


This issue has been resolved and we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread.

Any further interaction in this thread will be considered community only.


0 Kudos
Reply