You are not logged in.

#1 2016-05-12 17:14:03

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

[Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

I am getting

distcc[27020] ERROR: compile (null) on localhost failed
../../../../common/src/x86emitter/cpudetect.cpp: In member function ‘void x86capabilities::SIMD_EstablishMXCSRmask()’:
../../../../common/src/x86emitter/cpudetect.cpp:48:23: error: ‘_fxsave’ was not declared in this scope
  _fxsave(&targetFXSAVE);
                       ^
common/src/x86emitter/CMakeFiles/x86emitter.dir/build.make:62: recipe for target 'common/src/x86emitter/CMakeFiles/x86emitter.dir/cpudetect.cpp.o' failed
make[2]: *** [common/src/x86emitter/CMakeFiles/x86emitter.dir/cpudetect.cpp.o] Error 1
CMakeFiles/Makefile2:273: recipe for target 'common/src/x86emitter/CMakeFiles/x86emitter.dir/all' failed
make[1]: *** [common/src/x86emitter/CMakeFiles/x86emitter.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Full build log here, the error is on line 409.
The included build.sh also produces the same error.

Might be related to this.
I am also unable to build the pcsx2-git package, but the errors are different there and for some reason the included build.sh works.

Any idea what might be going wrong here?

Last edited by Soukyuu (2016-05-12 21:40:45)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#2 2016-05-12 18:52:56

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

Looks like it's the same issue reported here: https://github.com/PCSX2/pcsx2/issues/1297
I would try the fix from this comment: https://github.com/PCSX2/pcsx2/issues/1 … -211260486

Offline

#3 2016-05-12 20:03:19

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: [Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

Looks like it, however:

/tmp/makepkg/pcsx2/src/pcsx2-1.4.0/common/src/x86emitter/cpudetect.cpp:19:35: fatal error: x86emitter/x86_intrin.h: No such file or directory
 #include "x86emitter/x86_intrin.h"
                                   ^
compilation terminated.

The commit includes only x86_intrin.h, but even then:

/tmp/makepkg/pcsx2/src/pcsx2-1.4.0/common/src/x86emitter/cpudetect.cpp:19:24: fatal error: x86_intrin.h: No such file or directory
 #include "x86_intrin.h"
                        ^

[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#4 2016-05-12 20:04:54

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

Ok I've looked a bit into this. It's a bit complicated.

There is a fix for the gcc6 build error
[1] https://github.com/PCSX2/pcsx2/commit/c … 516da80a4e

But the header file x86_intrin.h used in that fix was added to the sources after the release of version 1.4.0 with this commit
[2] https://github.com/PCSX2/pcsx2/commit/a … 911d273673

[3] There are a lot of commits in the time from the release of v1.4.0 to commit [2] (which added x86_intrin.h)

So, to fix the gcc6 build error [1] is needed and that needs [2].
I am not sure if it would work if you apply the changes from [2] to the sources because of all the other commits  I mentioned under [3].

Last edited by mis (2016-05-12 20:12:08)

Offline

#5 2016-05-12 20:16:57

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: [Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

Ok... thanks for looking into it.
Maybe you could help me figure out what's wrong with pcsx2-git package then? It fails catastrophically for me, but using the build.sh the src tarball contains produces a working build.

edit: skip to 85%, that's where the first error starts and it all goes bananas after that.

Last edited by Soukyuu (2016-05-12 20:19:25)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#6 2016-05-12 20:52:04

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

Hm, I started the build here, currently it's at 33%. The output differs from yours, not so much warnings. Let's see how far it gets here...
Have you changed anything in the PKGBUILD? Or maybe in your makepkg.conf?

Last edited by mis (2016-05-12 20:53:51)

Offline

#7 2016-05-12 21:02:50

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: [Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

Well, I'll be damned. I guess I just received the confirmation my distcc setup was actually working. My other PC I use as slave was still on gcc 5.x, so I guess the version mismatch was killing it. And the reason why build.sh was working was because it wasn't using distcc.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#8 2016-05-12 21:09:01

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [Solved] Unable to build pcsx2 from ABS or pcsx2-git from AUR

I think that explains the   only available with -std=c++11 or -std=gnu++11   warnings. I wondered a bit about them because gcc6 defaults to gnu++14

Last edited by mis (2016-05-12 21:46:24)

Offline

Board footer

Powered by FluxBB