Source: pcsx2
Version: 1.4.0+dfsg-1
Tags: patch

Hi Maintainer

PCSX2 FTBFS with recent versions of GCC outputting the following message:

common/src/x86emitter/cpudetect.cpp:48:23: error: ‘_fxsave’ was not
declared in this scope
  _fxsave(&targetFXSAVE);

I found the same issue had already been reported upstream [1] and a
patch had been committed [2].  The patch, however, relied on a
previous commit [3].  I was able to compile PCSX2 for Ubuntu Yakkety
with only the attached patch applied.

Regards
Graham


[1] https://github.com/PCSX2/pcsx2/issues/1297
[2] 
https://github.com/PCSX2/pcsx2/commit/c44f605b5ec13b75ad0c6261777fc5516da80a4e
[3] 
https://github.com/PCSX2/pcsx2/commit/a6eb871b42c29c4250a2bcab535aa5911d273673
Description: Fix FTBFS with recent GCC
 common/src/x86emitter/cpudetect.cpp:48:23:
 error: '_fxsave' was not declared in this scope
 _fxsave(&targetFXSAVE);
Bug: https://github.com/PCSX2/pcsx2/issues/1297
Author: Graham Inggs <[email protected]>
Last-Update: 2016-04-30
--- a/common/src/x86emitter/cpudetect.cpp
+++ b/common/src/x86emitter/cpudetect.cpp
@@ -16,6 +16,7 @@
 #include "PrecompiledHeader.h"
 #include "cpudetect_internal.h"
 #include "internal.h"
+#include <x86intrin.h>
 
 using namespace x86Emitter;
 

Reply via email to