Skip to content

Commit

Permalink
duckstation: build with clang
Browse files Browse the repository at this point in the history
Fails to build with gcc:

duckstation> In function 'void* memcpy(void*, const void*, size_t)',
duckstation>     inlined from 'FileSystem::AtomicRenamedFile
FileSystem::CreateAtomicRenamedFile(std::string, const char*, Error*)'
at /build/source/src/common/file_system.cpp:1213:16:
duckstation>
/nix/store/wlavaybjbzgllhq11lib6qgr7rm8imgp-glibc-2.39-52-dev/include/bits/string_fortified.h:29:33:
warning: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned
int, long unsigned int)' accessing 9223372036854775801 or more bytes at
offsets 0 and 0 overlaps 9223372036854775795 bytes at offset 6
[-Wrestrict]

Warnings before building:

duckstation>   *************** UNSUPPORTED CONFIGURATION ***************
duckstation>
duckstation>   You are not compiling DuckStation with a supported
compiler.
duckstation>
duckstation>   It may not even build successfully.
duckstation>
duckstation>   DuckStation only supports the Clang and MSVC compilers.
duckstation>
duckstation>   No support will be provided, continue at your own risk.
duckstation>
duckstation>   *********************************************************
  • Loading branch information
qubitnano committed Dec 15, 2024
1 parent f88567b commit 3ba1e3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/by-name/du/duckstation/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
stdenv,
llvmPackages,
SDL2,
callPackage,
cmake,
Expand Down Expand Up @@ -31,7 +32,7 @@ let
wrapQtAppsHook
;
in
stdenv.mkDerivation (finalAttrs: {
llvmPackages.stdenv.mkDerivation (finalAttrs: {
inherit (sources.duckstation) pname version src;

patches = [
Expand Down

0 comments on commit 3ba1e3d

Please sign in to comment.