Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on Linux x86 32bit #906

Closed
guoyunhe opened this issue May 20, 2020 · 7 comments
Closed

Build error on Linux x86 32bit #906

guoyunhe opened this issue May 20, 2020 · 7 comments

Comments

@guoyunhe
Copy link
Contributor

[   69s] /usr/lib/gcc/i586-suse-linux/9/include/xmmintrin.h:878:1: error: inlining failed in call to always_inline 'void _MM_SET_FLUSH_ZERO_MODE(unsigned int)': target specific option mismatch
[   69s]   878 | _MM_SET_FLUSH_ZERO_MODE (unsigned int __mode)
[   69s]       | ^~~~~~~~~~~~~~~~~~~~~~~
[   69s] /home/abuild/rpmbuild/BUILD/libretro-play-0~git20200519/Source/FpUtils.cpp:32:25: note: called from here
[   69s]    32 |  _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
[   69s]       |  ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
[   69s] In file included from /home/abuild/rpmbuild/BUILD/libretro-play-0~git20200519/Source/FpUtils.cpp:22:
[   69s] /usr/lib/gcc/i586-suse-linux/9/include/xmmintrin.h:853:1: error: inlining failed in call to always_inline 'void _mm_setcsr(unsigned int)': target specific option mismatch
[   69s]   853 | _mm_setcsr (unsigned int __I)
[   69s]       | ^~~~~~~~~~
[   69s] In file included from /home/abuild/rpmbuild/BUILD/libretro-play-0~git20200519/Source/FpUtils.cpp:23:
[   69s] /home/abuild/rpmbuild/BUILD/libretro-play-0~git20200519/Source/FpUtils.cpp:31:2: note: called from here
[   69s]    31 |  _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
[   69s]       |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[   69s] In file included from /home/abuild/rpmbuild/BUILD/libretro-play-0~git20200519/Source/FpUtils.cpp:22:
[   69s] /usr/lib/gcc/i586-suse-linux/9/include/xmmintrin.h:821:1: error: inlining failed in call to always_inline 'unsigned int _mm_getcsr()': target specific option mismatch
[   69s]   821 | _mm_getcsr (void)
[   69s]       | ^~~~~~~~~~
[   69s] In file included from /home/abuild/rpmbuild/BUILD/libretro-play-0~git20200519/Source/FpUtils.cpp:23:
[   69s] /home/abuild/rpmbuild/BUILD/libretro-play-0~git20200519/Source/FpUtils.cpp:31:2: note: called from here
[   69s]    31 |  _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
[   69s]       |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
@lbartoletti
Copy link

Same on FreeBSD. Can you add an option to disable SSE, please?

@jpd002
Copy link
Owner

jpd002 commented May 21, 2020

Hello!

Could you try building with this: fd59dd5?

Thanks!

@guoyunhe
Copy link
Contributor Author

Work for me on openSUSE Tumbleweed i586. Thanks for the fix!

@jpd002
Copy link
Owner

jpd002 commented May 22, 2020

Thanks for testing! I've merged that in master.

@jpd002 jpd002 closed this as completed May 22, 2020
@rozhuk-im
Copy link

Now you break build on FreeBSD:
c89953f

[1/318] /usr/local/libexec/ccache/c++  -DHAS_ICU -DHAS_OPENSSL -DPLAY_VERSION=\"0.30-c89953fa45a905c1014a71a504d9f2c76a1af208\" -D_FILE_OFFSET_BITS=64 -I/tmp/ports/usr/ports/games/libretro-play/work/Play--c89953fa45a905c1014a71a504d9f2c76a1af208/deps/Framework/build_cmake/Framework/../../include -I/usr/local/include -I/tmp/ports/usr/ports/games/libretro-play/work/Play--c89953fa45a905c1014a71a504d9f2c76a1af208/deps/Dependencies/ghc_filesystem/include -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -DNDEBUG -DNDEBUG   -fPIC -MD -MT Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o -MF Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o.d -o Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o -c /tmp/ports/usr/ports/games/libretro-play/work/Play--c89953fa45a905c1014a71a504d9f2c76a1af208/deps/Framework/src/mpeg2/QuantiserScaleTable.cpp
[2/318] /usr/local/libexec/ccache/c++  -DHAS_ICU -DHAS_OPENSSL -DPLAY_VERSION=\"0.30-c89953fa45a905c1014a71a504d9f2c76a1af208\" -D_FILE_OFFSET_BITS=64 -I/tmp/ports/usr/ports/games/libretro-play/work/Play--c89953fa45a905c1014a71a504d9f2c76a1af208/deps/Framework/build_cmake/Framework/../../include -I/usr/local/include -I/tmp/ports/usr/ports/games/libretro-play/work/Play--c89953fa45a905c1014a71a504d9f2c76a1af208/deps/Dependencies/ghc_filesystem/include -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -DNDEBUG -DNDEBUG   -fPIC -MD -MT Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/InverseScanTable.cpp.o -MF Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/InverseScanTable.cpp.o.d -o Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/InverseScanTable.cpp.o -c /tmp/ports/usr/ports/games/libretro-play/work/Play--c89953fa45a905c1014a71a504d9f2c76a1af208/deps/Framework/src/mpeg2/InverseScanTable.cpp

d557cab

[1/318] /usr/local/libexec/ccache/c++  -DHAS_ICU -DHAS_OPENSSL -DPLAY_VERSION=\"0.30-d557caba54121f0a0730a6e84da3142ba4bef49b\" -D_FILE_OFFSET_BITS=64 -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/build_cmake/Framework/../../include -I/usr/local/include -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Dependencies/ghc_filesystem/include -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17;-msse -msse2 -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -DNDEBUG -DNDEBUG   -fPIC -MD -MT Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/DctCoefficientTable.cpp.o -MF Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/DctCoefficientTable.cpp.o.d -o Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/DctCoefficientTable.cpp.o -c /tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/src/mpeg2/DctCoefficientTable.cpp
FAILED: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/DctCoefficientTable.cpp.o 
/usr/local/libexec/ccache/c++  -DHAS_ICU -DHAS_OPENSSL -DPLAY_VERSION=\"0.30-d557caba54121f0a0730a6e84da3142ba4bef49b\" -D_FILE_OFFSET_BITS=64 -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/build_cmake/Framework/../../include -I/usr/local/include -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Dependencies/ghc_filesystem/include -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17;-msse -msse2 -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -DNDEBUG -DNDEBUG   -fPIC -MD -MT Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/DctCoefficientTable.cpp.o -MF Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/DctCoefficientTable.cpp.o.d -o Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/DctCoefficientTable.cpp.o -c /tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/src/mpeg2/DctCoefficientTable.cpp
c++: error: no input files
/bin/sh: -msse: not found
[2/318] /usr/local/libexec/ccache/c++  -DHAS_ICU -DHAS_OPENSSL -DPLAY_VERSION=\"0.30-d557caba54121f0a0730a6e84da3142ba4bef49b\" -D_FILE_OFFSET_BITS=64 -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/build_cmake/Framework/../../include -I/usr/local/include -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Dependencies/ghc_filesystem/include -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17;-msse -msse2 -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -DNDEBUG -DNDEBUG   -fPIC -MD -MT Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o -MF Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o.d -o Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o -c /tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/src/mpeg2/QuantiserScaleTable.cpp
FAILED: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o 
/usr/local/libexec/ccache/c++  -DHAS_ICU -DHAS_OPENSSL -DPLAY_VERSION=\"0.30-d557caba54121f0a0730a6e84da3142ba4bef49b\" -D_FILE_OFFSET_BITS=64 -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/build_cmake/Framework/../../include -I/usr/local/include -I/tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Dependencies/ghc_filesystem/include -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17;-msse -msse2 -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -fstack-protector-strong -fno-strict-aliasing  -O3 -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline  -std=c++17 -DNDEBUG -DNDEBUG   -fPIC -MD -MT Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o -MF Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o.d -o Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/mpeg2/QuantiserScaleTable.cpp.o -c /tmp/ports/usr/ports/games/libretro-play/work/Play--d557caba54121f0a0730a6e84da3142ba4bef49b/deps/Framework/src/mpeg2/QuantiserScaleTable.cpp
c++: error: no input files
/bin/sh: -msse: not found

-std=c++17;-msse -msse2
; - separator breaks build.

@Zer0xFF
Copy link
Contributor

Zer0xFF commented May 22, 2020

@rozhuk-im can you change set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-msse -msse2") to set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2") and see if that helps

@rozhuk-im
Copy link

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2") - build ok

@jpd002 jpd002 reopened this May 22, 2020
@jpd002 jpd002 closed this as completed May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants