Noting that this package fails to build if the MOLD linker is enabled /etc/makepkg.conf
To workaround, temporarily remove the mold linker in LDFLAGS (-fuse-ld=mold).
Tips:
- Copy
/etc/makepkg.conf as .makepkg.conf in your home folder so you don't have to sudo edit it
- make another copy of makepkg.conf without mold and configure an alias to call it; so you don't have to edit any files
Noting that this package fails to build if the MOLD linker is enabled /etc/makepkg.conf
To workaround, temporarily remove the mold linker in LDFLAGS (-fuse-ld=mold).
Hello! I have tested an updated PKGBUILD to download the latest version of the package from github, please update the PKGBUILD to the following:
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Pellegrino Prevete <pellegrinoprevete@gmail.com>
pkgname=kronos
pkgver=2.7.0
pkgrel=1
pkgdesc="Sega Saturn emulator, fork of yabause"
arch=(x86_64 aarch64 i686 pentium4)
url="https://github.com/FCare/Kronos"
license=(GPL-2.0-or-later)
depends=(openal qt5-base qt5-multimedia sdl2 libglvnd glibc gcc-libs)
makedepends=(cmake glu ) #gcc13
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/FCare/Kronos/archive/refs/tags/${pkgver}_official_release.tar.gz")
b2sums=('67ff8a57f61e733a67281c7d0af84b4c20209088b957dec911e926b250770050b015671df604104c070db97ef7018394a1a355b1017d24e155f3af999ef05a7f')
build() {
#export CC=/usr/bin/gcc-13 CXX=/usr/bin/g++-13
export CFLAGS+=" -Wno-error=format-security"
export CXXFLAGS+=" -Wno-error=format-security"
cmake -B build -S "Kronos-${pkgver}_official_release/yabause" \
-Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DYAB_USE_QT5=ON
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
About the error I have disabled inadvertently export CFLAGS+=" -Wno-error=format-security" for this pkgbuild, since my last test have been released a new version, I'll take care after dinner
cc1: error: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security]
In yabause/src/CMakeLists.txt:
if (CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -D_DEFAULT_SOURCE -Wno-format -march=native -funroll-loops")
set(CMAKE_CPP_FLAGS "${CMAKE_CPP_FLAGS} -march=native -funroll-loops")
endif()
-march=native generates processor dependent code which prevents the built package from being portable
No suggestions as to resolution since arch=('i686' 'x86_64' 'pentium4'). The first would be -march=i686 and the latter would be -march=x86-64
@FabioLolix: ok then it was me who had it already disabled on the build machine. Added the new flags.
mmh, actually I also have clang failing:
/tmp/makepkg/kronos/src/kronos/yabause/src/core/sound/al/sndal.c:100:9: error: non-void function 'sound_update_thd' should return a value [-Wreturn-type]
return;
^
About the format-security error, maybe you explicitly set it in makepkg.conf?
Here is someone with the same problem as you (on another package).