Package Details: kronos 2.7.0-1

Git Clone URL: https://aur.archlinux.org/kronos.git (read-only, click to copy)
Package Base: kronos
Description: Sega Saturn emulator, fork of yabause
Upstream URL: https://github.com/FCare/Kronos
Licenses: GPL-2.0-or-later
Submitter: tallero
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 6
Popularity: 0.004764
First Submitted: 2022-02-15 08:28 (UTC)
Last Updated: 2025-01-26 22:23 (UTC)

Latest Comments

1 2 Next › Last »

simona commented on 2025-01-26 22:29 (UTC)

solved

Sweet_Nougat commented on 2025-01-26 22:06 (UTC) (edited on 2025-01-26 22:13 (UTC) by Sweet_Nougat)

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
}

FabioLolix commented on 2024-10-16 17:47 (UTC)

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

simona commented on 2024-10-16 17:30 (UTC)

cc1: error: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security]

noabody commented on 2022-12-11 17:50 (UTC) (edited on 2022-12-11 17:51 (UTC) by noabody)

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

tallero commented on 2022-06-14 22:25 (UTC)

@FabioLolix: ok then it was me who had it already disabled on the build machine. Added the new flags.

FabioLolix commented on 2022-06-14 22:05 (UTC)

I have format-security set as it is in the default /etc/makekg.conf https://archlinux.org/packages/core/x86_64/pacman/

tallero commented on 2022-06-14 22:01 (UTC) (edited on 2022-06-14 22:02 (UTC) by tallero)

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).

FabioLolix commented on 2022-06-14 21:41 (UTC)

Building with clang don't conclude the build (same as last month), it loop at:

/build/kronos/src/kronos/yabause/src/core/video/opengl/common/src/rbg_compute.cpp:2389:59: warning: expression result unused [-Wunused-value]
               DEBUGWIP("Draw RBG0 [%d -> %d]\n", uniform.startLine, uniform.endLine);
                                                  ~~~~~~~ ^~~~~~~~~
/build/kronos/src/kronos/yabause/src/core/video/opengl/common/src/rbg_compute.cpp:2389:78: warning: expression result unused [-Wunused-value]
               DEBUGWIP("Draw RBG0 [%d -> %d]\n", uniform.startLine, uniform.endLine);
                                                                     ~~~~~~~ ^~~~~~~
/build/kronos/src/kronos/yabause/src/core/video/opengl/common/src/rbg_compute.cpp:2444:14: warning: expression result unused [-Wunused-value]
    YGLDEBUG("RBGGenerator_resize\n");
             ^~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
1 warning generated.
202 warnings generated.
25 warnings generated.
1 warning generated.
2 warnings generated.
52 warnings generated.
30 warnings generated.
1 warning generated.

with 1 core running at 100%

tallero commented on 2022-06-14 21:33 (UTC) (edited on 2022-06-14 21:33 (UTC) by tallero)

I'm wondering why I'm not getting the format-security issue even with gcc. Have you tried with clang by exporting CC=/usr/bin/clang and CXX=/usr/bin/clang++?