Parasoft C/C++Test 9.4 , error: invalid type conversion
Options
When I used Parasoft c/c++test9.4 with Cygwin gcc11.3 to run unit test, there is such a problem:
C++test analysis errors in /example_debug
1. Test execution: error preparing instrumentation / symbols data for file.
"/usr/lib/gcc/x86_64-pc-cygwin/11/include/mmintrin.h", line 79: error: invalid
type conversion
return (__m64) __builtin_ia32_vec_init_v2si (__i, 0);
^
"/usr/lib/gcc/x86_64-pc-cygwin/11/include/mmintrin.h", line 161: error:
invalid type conversion
return (__m64) __builtin_ia32_packsswb ((__v4hi)__m1, (__v4hi)__m2);
^
"/usr/lib/gcc/x86_64-pc-cygwin/11/include/mmintrin.h", line 176: error:
invalid type conversion
return (__m64) __builtin_ia32_packssdw ((__v2si)__m1, (__v2si)__m2);
^
"/usr/lib/gcc/x86_64-pc-cygwin/11/include/mmintrin.h", line 191: error:
invalid type conversion
return (__m64) __builtin_ia32_packuswb ((__v4hi)__m1, (__v4hi)__m2);
^
"/usr/lib/gcc/x86_64-pc-cygwin/11/include/mmintrin.h", line 205: error:
invalid type conversion
return (__m64) __builtin_ia32_punpckhbw ((__v8qi)__m1, (__v8qi)__m2);
^
...
...
...
Compilation terminated.
Any hint on this? and how should it be done instead? Thanks in advance
0
Comments
-
@Jesse_Z ,
C++test 9.4 was released almost ten years ago. It could not possibly support GCC 11 back then. The latest GNU GCC supported by C++test 9.4 was 4.x version.
If you need to use C/C++test with GNU GCC 11.x compiler, I would recommend upgrade to latest release, 2022.1:
https://docs.parasoft.com/display/CPPTESTPROEC20221/GNU+GCC#GNUGCC-GNUGCC11.x(x86_64)BTW, GCC 11 on Windows is supported for static analysis only, you may want to use Cygwin with GCC 9.x which is supported for unit testing and code coverage as well.
0
