-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Description
Steps To Reproduce
Steps to reproduce the behavior:
- build
discord-rpcwith clang 19.1.5
Build log
Build Log
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/9na9v8104rmy032fki47i3lmc3dysjs6-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/share/doc/DiscordRPC -DCMAKE_INSTALL_INFODIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/wkadfwbhn9b4kdih88j7izzy20qw79bk-clang-wrapper-19.1.5/bin/strip -DCMAKE_RANLIB=/nix/store/wkadfwbhn9b4kdih88j7izzy20qw79bk-clang-wrapper-19.1.5/bin/ranlib -DCMAKE_AR=/nix/store/wkadfwbhn9b4kdih88j7izzy20qw79bk-clang-wrapper-19.1.5/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/alirhrban23hs943bb7v97h8qg8zj8jx-discord-rpc-3.4.0 -DBUILD_SHARED_LIBS=true -DBUILD_EXAMPLES=false
�[0mCMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
�[0m
-- The C compiler identification is Clang 19.1.5
-- The CXX compiler identification is Clang 19.1.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/wkadfwbhn9b4kdih88j7izzy20qw79bk-clang-wrapper-19.1.5/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/wkadfwbhn9b4kdih88j7izzy20qw79bk-clang-wrapper-19.1.5/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (1.4s)
-- Generating done (0.0s)
�[33mCMake Warning:
Manually-specified variables were not used by the project:
BUILD_TESTING
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_FIND_USE_PACKAGE_REGISTRY
CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY
CMAKE_POLICY_DEFAULT_CMP0025
�[0m
-- Build files have been written to: /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j16 SHELL=/nix/store/5wjj1f3pa1ndi3kvskm1fcs9kdy2xajf-bash-5.2p37/bin/bash
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
/tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format:48:1: error: duplicated mapping key 'IndentCaseLabels'
IndentCaseLabels: false
^~~~~~~~~~~~~~~~
Error reading /tmp/nix-build-discord-rpc-3.4.0.drv-0/source/.clang-format: Invalid argument
make[2]: *** [CMakeFiles/clangformat.dir/build.make:94: CMakeFiles/clangformat] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/clangformat.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Additional context
I found this while trying to build the mudlet package on MacOS.
There is an open PR here that fixes this error, but discord-rpc is not maintained so it has not been merged/released.
I crated a local overlay that points to a patched discord-rpc fork on my personal account, containing the above PR. This resolved the build error for me.
I spoke with the Mudlet dev team about this on their Discord server. Someone mentioned that they could create a discord-rpc fork on their GH account, since they also use a patched version of discord-rpc in their builds. In the future, we could fetch this forked version when building mudlet. Not sure what to do in the meantime.
Metadata
- system:
"aarch64-darwin" - host os:
Darwin 23.6.0, macOS 14.6.1 - multi-user?:
yes - sandbox:
no - version:
nix-env (Nix) 2.25.3 - channels(root):
"nixpkgs" - nixpkgs:
/nix/store/khbvilmsrv4l69nwd52h27j1mp44a0xi-source
Notify maintainers
No maintainers listed for discord-rpc
mudlet maintainers @alicerum @pstn @cpu @felixalbrigtsen
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.