Cannot compile due to tmmintrin.h errors

Discuss emulation or program issues here.
Post Reply
User avatar
gamax92
Posts: 22
Joined: Mon Oct 28, 2013 2:07 pm

Cannot compile due to tmmintrin.h errors

Post by gamax92 » Sat Nov 30, 2013 5:02 pm

EDIT: Nvm this thread, I see SSSE3 is a requirement for CEN64 and this machine is not capable of running it.

Code: Select all

In file included from Helpers.h:17:0,
                 from Core.c:20:
c:\mingw\lib\gcc\mingw64\4.8.1\include\tmmintrin.h:31:3: error: #error "SSSE3 instruction set not enabled"
 # error "SSSE3 instruction set not enabled"
   ^
In file included from Core.c:20:0:
Helpers.h:27:1: error: unknown type name '__m128i'
 __m128i BroadcastInt(int32_t constant);
 ^
Core.c: In function 'render_spans_1cycle_notexel1':
Core.c:3736:7: error: unknown type name '__m128i'
       __m128i data1 = _mm_load_si128((__m128i*) (localspan + 0));
       ^
Core.c:3736:7: warning: implicit declaration of function '_mm_load_si128' [-Wimplicit-function-declaration]
Core.c:3736:39: error: '__m128i' undeclared (first use in this function)
       __m128i data1 = _mm_load_si128((__m128i*) (localspan + 0));
                                       ^
Core.c:3736:39: note: each undeclared identifier is reported only once for each function it appears in
Core.c:3736:47: error: expected expression before ')' token
       __m128i data1 = _mm_load_si128((__m128i*) (localspan + 0));
                                               ^
Core.c:3737:15: error: expected ';' before 'data2'
       __m128i data2 = _mm_load_si128((__m128i*) (localspan + 4));
               ^
Core.c:3738:7: warning: implicit declaration of function '_mm_srai_epi32' [-Wimplicit-function-declaration]
       data1 = _mm_srai_epi32(data1, 14);
       ^
Core.c:3739:7: error: 'data2' undeclared (first use in this function)
       data2 = _mm_srai_epi32(data2, 16);
       ^
Core.c:3740:7: warning: implicit declaration of function '_mm_store_si128' [-Wimplicit-function-declaration]
       _mm_store_si128((__m128i*) (slocalspan + 0), data1);
       ^
Core.c:3740:32: error: expected expression before ')' token
       _mm_store_si128((__m128i*) (slocalspan + 0), data1);
                                ^
Core.c:3741:32: error: expected expression before ')' token
       _mm_store_si128((__m128i*) (slocalspan + 4), data2);
                                ^
mingw64-make[1]: *** [Objects\Core.o] Error 1
mingw64-make: *** [librdp] Error 2
The system cannot find the file specified.
Could Not Find F:\NOPE\cen64-master\cen64.exe
Even after removing the USE_SSE and SSSE3_ONLY flags from the RDP I still get:

Code: Select all

In file included from Core.c:20:0:
Helpers.h:27:1: error: unknown type name '__m128i'
 __m128i BroadcastInt(int32_t constant);
 ^
mingw64-make[1]: *** [Objects\Core.o] Error 1
mingw64-make: *** [librdp] Error 2
The system cannot find the file specified.
Could Not Find F:\NOPE\cen64-master\cen64.exe
I know the CPU doesn't supports SSSE3, how do I disable this properly.
I also just updated my mingw to the latest to make sure it was up to date and it wasn't just an outdated issue.

User avatar
Nacho
Posts: 66
Joined: Thu Nov 07, 2013 9:25 am

Re: Cannot compile due to tmmintrin.h errors

Post by Nacho » Sat Nov 30, 2013 6:12 pm

You may need to tweak all the Makefiles.
Testing CEN64 on: Intel Core i5 520M 2.4 GHz. SSE2 SSE3 SSE4.1 SSE4.2 SSSE3, but no AVX. Ubuntu Linux

User avatar
gamax92
Posts: 22
Joined: Mon Oct 28, 2013 2:07 pm

Re: Cannot compile due to tmmintrin.h errors

Post by gamax92 » Sun Dec 01, 2013 12:54 am

Image
Well, I did get it to compile ... :lol:

User avatar
MarathonMan
Site Admin
Posts: 692
Joined: Fri Oct 04, 2013 4:49 pm

Re: Cannot compile due to tmmintrin.h errors

Post by MarathonMan » Sun Dec 01, 2013 5:18 pm

That problem occurs when -DLITTLE_ENDIAN is not passed to libvideo. 16-bit and 32-bit data are stored in big-endian format within the console's memory. -DLITTLE_ENDIAN lets OpenGL know that the source data (RDP output) is not stored in the host's native byte order and that it shouldn't flip the bytes.

User avatar
gamax92
Posts: 22
Joined: Mon Oct 28, 2013 2:07 pm

Re: Cannot compile due to tmmintrin.h errors

Post by gamax92 » Mon Dec 02, 2013 12:52 am

Well, that flag was in the video Makefile and even removing didn't fix it.
I did completely disable SSE btw, It seems if the flag for SSSE3 is removed it goes to SSE4.1 which I also don't have on this machine.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest