Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bam: setup done
- [1/2] [1] c++ src/engine/client/client.cpp
- 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
- In file included from /usr/lib/gcc/i586-linux-gnu/4.9/include/immintrin.h:29:0,
- from src/engine/client/client.cpp:5:
- /usr/lib/gcc/i586-linux-gnu/4.9/include/xmmintrin.h: In member function 'bool CClient::LimitFps()':
- /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
- _mm_pause (void)
- ^
- src/engine/client/client.cpp:1779:15: error: called from here
- _mm_pause();
- ^
- 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
- bam: 'c++ src/engine/client/client.cpp' error 256
- bam: error: a build step failed
- root@0d17e6803eca:/home/j/teeworlds# git diff
- diff --git a/bam.lua b/bam.lua
- index 77a1aab..97645ab 100644
- --- a/bam.lua
- +++ b/bam.lua
- @@ -9,6 +9,7 @@ config = NewConfig()
- config:Add(OptCCompiler("compiler"))
- config:Add(OptTestCompileC("stackprotector", "int main(){return 0;}", "-fstack-protector -fstack-protector-all"))
- config:Add(OptTestCompileC("minmacosxsdk", "int main(){return 0;}", "-mmacosx-version-min=10.7 -isysroot /Developer/SDKs/MacOSX10.7.sdk"))
- +config:Add(OptTestCompileC("buildwithoutsseflag", "#include <immintrin.h>\nint main(){_mm_pause();return 0;}", ""))
- config:Add(OptLibrary("zlib", "zlib.h", false))
- config:Add(SDL.OptFind("sdl", true))
- config:Add(FreeType.OptFind("freetype", true))
- @@ -169,7 +170,9 @@ end
- function GenerateLinuxSettings(settings, conf, arch, compiler)
- if arch == "x86" then
- - settings.cc.flags:Add("-msse2") -- for the _mm_pause call
- + if config.buildwithoutsseflag.value == 0 then
- + settings.cc.flags:Add("-msse2") -- for the _mm_pause call
- + end
- settings.cc.flags:Add("-m32")
- settings.link.flags:Add("-m32")
- elseif arch == "x86_64" then
- root@0d17e6803eca:/home/j/teeworlds#
Advertisement
Add Comment
Please, Sign In to add comment