Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912996 - games-emulation/duckstation-9999] error: use of undeclared identifier 'InitializeDiscordPresence' and 'ShutdownDiscordPresence' in src/core/system.cpp
Summary: games-emulation/duckstation-9999] error: use of undeclared identifier 'Initi...
Status: UNCONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Haelwenn (lanodan) Monnier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-25 11:11 UTC by Neko-san
Modified: 2023-10-27 05:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log and Emerge Info (duckstation-build-log-and-emerge-info.log,513.10 KB, text/x-log)
2023-08-25 11:11 UTC, Neko-san
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2023-08-25 11:11:20 UTC
When the -discord USE flag is set, the build throws an error in src/core/system.cpp for attempting to use it.

Reproducible: Always

Steps to Reproduce:
1. Set the -discord use flag
2. emerge duckstation
Actual Results:  
Emerge fails

Expected Results:  
EMerge should succeed
Comment 1 Neko-san 2023-08-25 11:11:47 UTC
Created attachment 868676 [details]
Build Log and Emerge Info
Comment 2 Alexander Weber 2023-09-15 14:23:40 UTC
I got the same issue:

[305/377] /usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_CUBEB=1 -DWITH_MMAP_FASTMEM=1 -DWITH_OPENGL=1 -DWITH_RECOMPILER=1 -DWITH_SDL2=1 -DWITH_VULKAN=1 -DXBYAK_NO_EXCEPTION=1 -DXXH_STATIC_LINKING_ONLY -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/../../dep/xbyak/xbyak -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/common/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fmt/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/vulkan/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fast_float/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/util/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/simpleini/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/imgui/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/zlib/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/stb/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/xxhash/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/rapidjson/include -isystem /usr/include/SDL2  -O2 -march=native -fomit-frame-pointer -pipe -Wall -Wno-switch -Wno-class-memaccess -Wno-invalid-offsetof -fno-exceptions -fno-rtti -std=gnu++20 -Winvalid-pch -include /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation-9999_build/src/core/CMakeFiles/core.dir/cmake_pch.hxx -MD -MT src/core/CMakeFiles/core.dir/system.cpp.o -MF src/core/CMakeFiles/core.dir/system.cpp.o.d -o src/core/CMakeFiles/core.dir/system.cpp.o -c /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/system.cpp
FAILED: src/core/CMakeFiles/core.dir/system.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_CUBEB=1 -DWITH_MMAP_FASTMEM=1 -DWITH_OPENGL=1 -DWITH_RECOMPILER=1 -DWITH_SDL2=1 -DWITH_VULKAN=1 -DXBYAK_NO_EXCEPTION=1 -DXXH_STATIC_LINKING_ONLY -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/../../dep/xbyak/xbyak -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/common/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fmt/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/vulkan/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fast_float/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/util/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/simpleini/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/imgui/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/zlib/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/stb/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/xxhash/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/rapidjson/include -isystem /usr/include/SDL2  -O2 -march=native -fomit-frame-pointer -pipe -Wall -Wno-switch -Wno-class-memaccess -Wno-invalid-offsetof -fno-exceptions -fno-rtti -std=gnu++20 -Winvalid-pch -include /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation-9999_build/src/core/CMakeFiles/core.dir/cmake_pch.hxx -MD -MT src/core/CMakeFiles/core.dir/system.cpp.o -MF src/core/CMakeFiles/core.dir/system.cpp.o.d -o src/core/CMakeFiles/core.dir/system.cpp.o -c /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/system.cpp
/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/system.cpp: In function ‘void System::CheckForSettingsChanges(const Settings&)’:
/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/system.cpp:3737:7: error: ‘InitializeDiscordPresence’ was not declared in this scope
 3737 |       InitializeDiscordPresence();
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/system.cpp:3739:7: error: ‘ShutdownDiscordPresence’ was not declared in this scope
 3739 |       ShutdownDiscordPresence();
      |       ^~~~~~~~~~~~~~~~~~~~~~~


In addition I got second error: If USE="nogui" is set the build break with:

[310/389] /usr/bin/x86_64-pc-linux-gnu-g++ -DNOGUI_PLATFORM_WAYLAND=1 -DNOGUI_PLATFORM_X11=1 -DWITH_CUBEB=1 -DWITH_MMAP_FASTMEM=1 -DWITH_OPENGL=1 -DWITH_RECOMPILER=1 -DWITH_SDL2=1 -DWITH_VULKAN=1 -DXBYAK_NO_EXCEPTION=1 -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/../../dep/xbyak/xbyak -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/common/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fmt/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/vulkan/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fast_float/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/util/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/simpleini/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/imgui/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/zlib/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation-9999_build/src/duckstation-nogui -isystem /usr/include/SDL2  -O2 -march=native -fomit-frame-pointer -pipe -Wall -Wno-switch -Wno-class-memaccess -Wno-invalid-offsetof -fno-exceptions -fno-rtti -std=gnu++20 -Winvalid-pch -include /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation-9999_build/src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/cmake_pch.hxx -MD -MT src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/x11_nogui_platform.cpp.o -MF src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/x11_nogui_platform.cpp.o.d -o src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/x11_nogui_platform.cpp.o -c /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/duckstation-nogui/x11_nogui_platform.cpp
FAILED: src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/x11_nogui_platform.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DNOGUI_PLATFORM_WAYLAND=1 -DNOGUI_PLATFORM_X11=1 -DWITH_CUBEB=1 -DWITH_MMAP_FASTMEM=1 -DWITH_OPENGL=1 -DWITH_RECOMPILER=1 -DWITH_SDL2=1 -DWITH_VULKAN=1 -DXBYAK_NO_EXCEPTION=1 -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/core/../../dep/xbyak/xbyak -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/common/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fmt/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/vulkan/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/fast_float/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/util/.. -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/simpleini/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/imgui/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/dep/zlib/include -I/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation-9999_build/src/duckstation-nogui -isystem /usr/include/SDL2  -O2 -march=native -fomit-frame-pointer -pipe -Wall -Wno-switch -Wno-class-memaccess -Wno-invalid-offsetof -fno-exceptions -fno-rtti -std=gnu++20 -Winvalid-pch -include /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation-9999_build/src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/cmake_pch.hxx -MD -MT src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/x11_nogui_platform.cpp.o -MF src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/x11_nogui_platform.cpp.o.d -o src/duckstation-nogui/CMakeFiles/duckstation-nogui.dir/x11_nogui_platform.cpp.o -c /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/duckstation-nogui/x11_nogui_platform.cpp
In file included from /var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/duckstation-nogui/x11_nogui_platform.cpp:4:
/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/duckstation-nogui/x11_nogui_platform.h:15:10: fatal error: core/host_settings.h: No such file or directory
   15 | #include "core/host_settings.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Comment 3 Alex Barker 2023-10-27 05:42:11 UTC
This should have been fixed upstream recently. I will update the ebuilds install procedure in a different bug so it will build again.