Im trying to compile the newest version of fastermelee because I want to create an AUR package, but the compilation fails.
Scanning dependencies of target common
[ 48%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/Version.cpp.o
[ 48%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/x64CPUDetect.cpp.o
/home/jumper/Templates/dolphin-emu-faster-melee/src/Ishiiruka/Source/Core/Common/x64CPUDetect.cpp:45:12: error: ambiguating new declaration of ‘u64 _xgetbv(u32)’
static u64 _xgetbv(u32 index)
^~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/include/x86intrin.h:74,
from /home/jumper/Templates/dolphin-emu-faster-melee/src/Ishiiruka/Source/Core/Common/Intrinsics.h:12,
from /home/jumper/Templates/dolphin-emu-faster-melee/src/Ishiiruka/Source/Core/Common/x64CPUDetect.cpp:10:
/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/include/xsaveintrin.h:60:1: note: old declaration ‘long long int _xgetbv(unsigned int)’
_xgetbv (unsigned int __A)
^~~~~~~
/home/jumper/Templates/dolphin-emu-faster-melee/src/Ishiiruka/Source/Core/Common/x64CPUDetect.cpp:45:12: warning: ‘u64 _xgetbv(u32)’ defined but not used [-Wunused-function]
static u64 _xgetbv(u32 index)
^~~~~~~
make[2]: *** [Source/Core/Common/CMakeFiles/common.dir/build.make:610: Source/Core/Common/CMakeFiles/common.dir/x64CPUDetect.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:861: Source/Core/Common/CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
I hope you guys can fix this issue, or tell me when i have done anything wrong.
The PKGBUILD that i have used is:
# Maintainer: Felix Springer <felixspringer149@gmail.com>
pkgname=dolphin-emu-faster-melee
pkgver=5.9.1
pkgrel=1
epoch=
pkgdesc="Ishiiruka-Dolphin optimized for Super Smash Bros. Melee"
arch=(x86_64)
url="https://github.com/FasterMelee/Ishiiruka"
license=('GPL')
depends=()
makedepends=()
provides=(dolphin-emu-faster-melee)
source=("git+https://github.com/FasterMelee/Ishiiruka.git")
md5sums=('SKIP')
build() {
cmake Ishiiruka
make
}
package() {
make install
}
Im trying to compile the newest version of fastermelee because I want to create an AUR package, but the compilation fails.
I hope you guys can fix this issue, or tell me when i have done anything wrong. The PKGBUILD that i have used is: