Package Details: libretro-melondsds-git 1.4.0.r0.gf394adb-1

Git Clone URL: https://aur.archlinux.org/libretro-melondsds-git.git (read-only, click to copy)
Package Base: libretro-melondsds-git
Description: Nintendo DS core
Upstream URL: https://github.com/JesseTG/melonds-ds
Keywords: emulator game nintendo
Licenses: GPL-3.0-or-later
Groups: libretro
Conflicts: libretro-melondsds
Provides: libretro-melondsds
Submitter: abouvier
Maintainer: abouvier
Last Packager: abouvier
Votes: 1
Popularity: 0.20
First Submitted: 2024-01-11 04:23 (UTC)
Last Updated: 2026-09-30 00:10 (UTC)

Latest Comments

1 2 Next › Last »

abouvier commented on 2026-08-24 18:08 (UTC) (edited on 2026-08-24 18:09 (UTC) by abouvier)

@Engdyn It's on purpose, if LTO were enabled in the cmake options you wouldn't be able to disable it with !lto in your makepkg.conf (it's enabled by default).

Engdyn commented on 2026-08-24 17:04 (UTC)

You removed options=('!lto') but forgot to actually turn lto on again.

diff --git a/PKGBUILD b/PKGBUILD
index 553f521..d83f03f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -42,7 +42,7 @@ build() {
                -D CMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
                -D DATE_REPOSITORY_URL="$srcdir"/date
                -D EMBED_BINARIES_REPOSITORY_URL="$srcdir"/embed-binaries
-               -D ENABLE_LTO_RELEASE=OFF
+               -D ENABLE_LTO_RELEASE=ON
                -D FMT_REPOSITORY_URL="$srcdir"/fmt
                -D GLM_REPOSITORY_URL="$srcdir"/glm
                -D LIBRETRO_COMMON_REPOSITORY_URL="$srcdir"/libretro-common

Gnatzelle commented on 2025-05-13 06:32 (UTC) (edited on 2025-05-13 06:33 (UTC) by Gnatzelle)

Building melonds is currently broken with GCC 15. As discussed here: https://aur.archlinux.org/packages/melonds-git#comment-1023820

Temporarily switching form GCC to Clang fixed the problem until there's a fix coming from GCC Upstream.


build() {
    local options=(
        -D CMAKE_BUILD_TYPE=Release
+       -D CMAKE_CXX_COMPILER=clang++
+       -D CMAKE_C_COMPILER=clang
        -D CMAKE_C_FLAGS_RELEASE="-DNDEBUG"
        -D CMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
        -D CMAKE_POLICY_VERSION_MINIMUM=3.5
...

Gnatzelle commented on 2025-04-10 06:03 (UTC)

Needs "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" due to recent changes in the PKGBUILD, or it won't build anymore

lubosz commented on 2024-12-19 11:33 (UTC) (edited on 2024-12-19 11:35 (UTC) by lubosz)

I updated to the current default makepkg.conf and the issue was will occurring. The issue did not occur when building outside of makepkg. I took a look at the default Arch flags and found the ones causing the issue:

There are two default flags that cause the issue. On CFLAGS the causing flag is -fno-plt and on LDFLAGS it's -Wl,-z,now.

Removing the flags in the PKGBUILD fixed the issue.

It seems that wine also broke when using these default flags, for more info see my commit message. In recent the wine-staging build I found a nicer way to work around this by just adding -ffat-lto-objects.

I have a PKGBUILD that works without modifying the default makepkg.conf, by adding -ffat-lto-objects:

https://github.com/lubosz/libretro-melondsds-git/commits/main/

Feel free to also take the patch that makes the cmake flags look nicer.

abouvier commented on 2024-05-08 15:22 (UTC)

I only do building in a clean chroot and I don't have this error. Have you modified your makepkg.conf?

yangtsesu commented on 2024-05-08 14:20 (UTC)

Reproducing the problem may require a clean rebuild.

yangtsesu commented on 2024-05-08 13:07 (UTC)

[ERROR] 打开libretro核心失败: "/usr/lib/libretro/melondsds_libretro.so" Error(s): /usr/lib/libretro/melondsds_libretro.so: undefined symbol: strlcat_retro__