r1147: Some weird compilation errors on Linux

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Daniele C.
Posts: 54
Joined: Sun Oct 21, 2007 23:24
Location: Roma

r1147: Some weird compilation errors on Linux

Post by Daniele C. »

Code: Select all

[  3%] Built target lzma
[  3%] Built target lemon
[  4%] Built target re2c
[  5%] Built target updaterevision
[  6%] Built target zipdir
[ 14%] Built target gme
[ 27%] Built target dumb
[ 27%] Built target arithchk
[ 28%] Built target qnan
[ 36%] Built target gdtoa
[ 36%] Built target pk3
[ 36%] Generating ../brightmaps.pk3
[ 36%] Built target brightmaps_pk3
[ 36%] Built target lights_pk3
src/svnrevision_gz.h is up to date at revision 1147M.
[ 36%] Built target revision_check
[ 36%] Building CXX object src/CMakeFiles/zdoom.dir/x86.o
In file included from ./gzdoom/src/x86.cpp:25:0:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/include/mmintrin.h:32:3: error: #error "MMX instruction set not enabled"
In file included from ./gzdoom/src/x86.cpp:26:0:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/include/emmintrin.h:32:3: error: #error "SSE2 instruction set not enabled"
./gzdoom/src/x86.cpp: In function ‘void DoBlending_SSE2(const PalEntry*, PalEntry*, int, int, int, int, int)’:
./gzdoom/src/x86.cpp:281:2: error: ‘__m128i’ was not declared in this scope
./gzdoom/src/x86.cpp:281:10: error: expected ‘;’ before ‘blendcolor’
./gzdoom/src/x86.cpp:282:10: error: expected ‘;’ before ‘blendalpha’
./gzdoom/src/x86.cpp:283:10: error: expected ‘;’ before ‘zero’
./gzdoom/src/x86.cpp:284:10: error: expected ‘;’ before ‘blending256’
./gzdoom/src/x86.cpp:285:10: error: expected ‘;’ before ‘color1’
./gzdoom/src/x86.cpp:286:10: error: expected ‘;’ before ‘color2’
./gzdoom/src/x86.cpp:315:2: error: ‘blending256’ was not declared in this scope
./gzdoom/src/x86.cpp:315:64: error: ‘_mm_set_epi32’ was not declared in this scope
./gzdoom/src/x86.cpp:318:2: error: ‘blendcolor’ was not declared in this scope
./gzdoom/src/x86.cpp:321:2: error: ‘blendalpha’ was not declared in this scope
./gzdoom/src/x86.cpp:324:53: error: ‘_mm_mullo_epi16’ was not declared in this scope
./gzdoom/src/x86.cpp:325:53: error: ‘_mm_subs_epu16’ was not declared in this scope
./gzdoom/src/x86.cpp:327:2: error: ‘zero’ was not declared in this scope
./gzdoom/src/x86.cpp:327:27: error: ‘_mm_setzero_si128’ was not declared in this scope
./gzdoom/src/x86.cpp:353:4: error: ‘color1’ was not declared in this scope
./gzdoom/src/x86.cpp:353:38: error: expected primary-expression before ‘)’ token
./gzdoom/src/x86.cpp:353:43: error: ‘_mm_load_si128’ was not declared in this scope
./gzdoom/src/x86.cpp:355:4: error: ‘color2’ was not declared in this scope
./gzdoom/src/x86.cpp:355:43: error: ‘_mm_unpackhi_epi8’ was not declared in this scope
./gzdoom/src/x86.cpp:356:43: error: ‘_mm_unpacklo_epi8’ was not declared in this scope
./gzdoom/src/x86.cpp:359:46: error: ‘_mm_adds_epu16’ was not declared in this scope
./gzdoom/src/x86.cpp:361:37: error: ‘_mm_srli_epi16’ was not declared in this scope
./gzdoom/src/x86.cpp:363:30: error: expected primary-expression before ‘)’ token
./gzdoom/src/x86.cpp:363:66: error: ‘_mm_packus_epi16’ was not declared in this scope
./gzdoom/src/x86.cpp:363:67: error: ‘_mm_store_si128’ was not declared in this scope
make[2]: *** [src/CMakeFiles/zdoom.dir/x86.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: r1147: Some weird compilation errors on Linux

Post by Gez »

Uh. The last time the x86.cpp file was changed, it was in r443...

What was the last revision you successfully built?


Also, I moved this to the GZDoom bug forums. The SVN builds forum are for stuff pertaining to svn.drdteam.org.
User avatar
Daniele C.
Posts: 54
Joined: Sun Oct 21, 2007 23:24
Location: Roma

Re: r1147: Some weird compilation errors on Linux

Post by Daniele C. »

Thanks for moving it to the appropriate section.

Last good revision is 845 for me.

I think that cmake is not enabling MMX and SSE flags, although I have a Pentium M 1.6 Ghz which has those features; maybe problem is on the CMake files?
Edward-san
Developer
Developer
Posts: 197
Joined: Sun Nov 29, 2009 16:36

Re: r1147: Some weird compilation errors on Linux

Post by Edward-san »

'src/svnrevision_gz.h is up to date at revision 1147M'
M means that you changed some files ... it's suspicious...

do this: in an another directory, do "svn co http://mancubus.net/svn/hosted/gzdoom/trunk/"

then recompile again following the instructions reported here.

Which distro do you have?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: r1147: Some weird compilation errors on Linux

Post by Graf Zahl »

This error looks like your compiler does not support the SSE intrinsics. Did something change about your system recently? This code hasn't been changed since around revision 450.
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: r1147: Some weird compilation errors on Linux

Post by Gez »

No further feedback, other people can compile correctly on Linux, I'm closing this.
Locked

Return to “Closed Bugs”