Guest User

Untitled

a guest
Feb 10th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.36 KB | None | 0 0
  1. bam: setup done
  2. [1/2] [1] c++ src/engine/client/client.cpp
  3. g++ -m32 -Wall -fno-exceptions `sdl2-config --cflags` `freetype-config --cflags` -O2 -c -DCONF_RELEASE -I "src" -I "build/src" -I "src/engine/external/zlib"  -o build/x86/release/objs/engine/client/client.o src/engine/client/client.cpp
  4. In file included from /usr/lib/gcc/i586-linux-gnu/4.9/include/immintrin.h:29:0,
  5.                  from src/engine/client/client.cpp:5:
  6. /usr/lib/gcc/i586-linux-gnu/4.9/include/xmmintrin.h: In member function 'bool CClient::LimitFps()':
  7. /usr/lib/gcc/i586-linux-gnu/4.9/include/xmmintrin.h:1238:1: error: inlining failed in call to always_inline 'void _mm_pause()': target specific option mismatch
  8.  _mm_pause (void)
  9.  ^
  10. src/engine/client/client.cpp:1779:15: error: called from here
  11.     _mm_pause();
  12.                ^
  13. bam: ret=256 g++ -m32 -Wall -fno-exceptions `sdl2-config --cflags` `freetype-config --cflags` -O2 -c -DCONF_RELEASE -I "src" -I "build/src" -I "src/engine/external/zlib"  -o build/x86/release/objs/engine/client/client.o src/engine/client/client.cpp
  14. bam: 'c++ src/engine/client/client.cpp' error 256
  15. bam: error: a build step failed
  16. root@0d17e6803eca:/home/j/teeworlds# git diff
  17. diff --git a/bam.lua b/bam.lua
  18. index 77a1aab..97645ab 100644
  19. --- a/bam.lua
  20. +++ b/bam.lua
  21. @@ -9,6 +9,7 @@ config = NewConfig()
  22.  config:Add(OptCCompiler("compiler"))
  23.  config:Add(OptTestCompileC("stackprotector", "int main(){return 0;}", "-fstack-protector -fstack-protector-all"))
  24.  config:Add(OptTestCompileC("minmacosxsdk", "int main(){return 0;}", "-mmacosx-version-min=10.7 -isysroot /Developer/SDKs/MacOSX10.7.sdk"))
  25. +config:Add(OptTestCompileC("buildwithoutsseflag", "#include <immintrin.h>\nint main(){_mm_pause();return 0;}", ""))
  26.  config:Add(OptLibrary("zlib", "zlib.h", false))
  27.  config:Add(SDL.OptFind("sdl", true))
  28.  config:Add(FreeType.OptFind("freetype", true))
  29. @@ -169,7 +170,9 @@ end
  30.  
  31.  function GenerateLinuxSettings(settings, conf, arch, compiler)
  32.         if arch == "x86" then
  33. -               settings.cc.flags:Add("-msse2") -- for the _mm_pause call
  34. +               if config.buildwithoutsseflag.value == 0 then
  35. +                       settings.cc.flags:Add("-msse2") -- for the _mm_pause call
  36. +               end
  37.                 settings.cc.flags:Add("-m32")
  38.                 settings.link.flags:Add("-m32")
  39.         elseif arch == "x86_64" then
  40. root@0d17e6803eca:/home/j/teeworlds#
Advertisement
Add Comment
Please, Sign In to add comment