Skip to content

Build failure: sauerbraten #412963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
Jayman2000 opened this issue Jun 1, 2025 · 0 comments · May be fixed by #413010
Open
3 tasks done

Build failure: sauerbraten #412963

Jayman2000 opened this issue Jun 1, 2025 · 0 comments · May be fixed by #413010
Labels
0.kind: build failure A package fails to build

Comments

@Jayman2000
Copy link
Contributor

Nixpkgs version

  • Unstable (25.11)

Steps to reproduce

  1. Create a file named default.nix that contains this Nix expression:

    # This file is dedicated to the public domain using 🅭🄍1.0:
    # <https://creativecommons.org/publicdomain/zero/1.0>.
    let
      nixpkgsCommit = "bd10a42cad2a1c2b9e3570d8a10f3772f036007f";
      nixpkgsTarball = builtins.fetchTarball {
        url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz";
        sha256 = "00hbv600b9zzhdcy9n9cswwylb668jkkba3jdwp5c6dq6zdb7807";
      };
      pkgs = import nixpkgsTarball { };
    in
    pkgs.sauerbraten
  2. Change directory into the directory that contains default.nix by running this command:

    cd <path-to-dir-that-contains-default.nix>
    
  3. Try to build pkgsi686Linux.nix by running this command:

    nix-build
    

Can Hydra reproduce this build failure?

Hydra doesn’t try to build the package.

Link to Hydra build job

No response

Relevant log output

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/jjjl8n9sr0i0ybjd17hjxvnlawsig8zs-source
source root is source/src
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j1 SHELL=/nix/store/xy4jjgw87sbgwylm5kn047d9gkbhsr9x-bash-5.2p37/bin/bash
make -C enet CC='gcc' AR='ar'
make[1]: Entering directory '/build/source/src/enet'
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o callbacks.o callbacks.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o compress.o compress.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o host.o host.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o list.o list.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o packet.o packet.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o peer.o peer.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o protocol.o protocol.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o unix.o unix.c
gcc -O3 -fomit-frame-pointer -Iinclude  -DHAS_GETADDRINFO -DHAS_GETNAMEINFO -DHAS_GETHOSTBYADDR_R -DHAS_GETHOSTBYNAME_R -DHAS_POLL -DHAS_FCNTL -DHAS_INET_PTON -DHAS_INET_NTOP -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T   -c -o win32.o win32.c
ar rcs libenet.a callbacks.o compress.o host.o list.o packet.o peer.o protocol.o unix.o win32.o
make[1]: Leaving directory '/build/source/src/enet'
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags` -x c++-header -o shared/cube.h.gch.tmp shared/cube.h
mv shared/cube.h.gch.tmp shared/cube.h.gch
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/crypto.o shared/crypto.cpp
shared/crypto.cpp: In function 'void tiger::hash(const uchar*, int, hashval&)':
shared/crypto.cpp:142:37: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 64 is out of the bounds [0, 64] of object 'temp' with type 'uchar [64]' {aka 'unsigned char [64]'} [-Warray-bounds=]
  142 |             while(j < 64) temp[j++] = 0;
      |                           ~~~~~~~~~~^~~
shared/crypto.cpp:109:15: note: 'temp' declared here
  109 |         uchar temp[64];
      |               ^~~~
In file included from /nix/store/r25srliigrrv5q3n7y8ms6z10spvjcd9-glibc-2.40-66-dev/include/string.h:548,
                 from shared/cube.h:11:
In function 'void* memset(void*, int, size_t)',
    inlined from 'bigint<BI_DIGITS>& bigint<BI_DIGITS>::mul(const bigint<Y_DIGITS>&, const bigint<Y_DIGITS>&) [with int X_DIGITS = 13; int Y_DIGITS = 13; int BI_DIGITS = 26]' at shared/crypto.cpp:306:15,
    inlined from 'gfield& gfield::mul(const bigint<Y_DIGITS>&, const bigint<Y_DIGITS>&) [with int X_DIGITS = 13; int Y_DIGITS = 13]' at shared/crypto.cpp:481:19,
    inlined from 'gfield& gfield::square(const bigint<Y_DIGITS>&) [with int X_DIGITS = 13]' at shared/crypto.cpp:475:82,
    inlined from 'bool ecjacobian::calcy(bool)' at shared/crypto.cpp:777:18,
    inlined from 'void ecjacobian::parse(const char*)' at shared/crypto.cpp:794:14,
    inlined from 'void answerchallenge(const char*, const char*, vector<char>&)' at shared/crypto.cpp:892:17:
/nix/store/r25srliigrrv5q3n7y8ms6z10spvjcd9-glibc-2.40-66-dev/include/bits/string_fortified.h:59:33: warning: 'void* __builtin___memset_chk(void*, int, long unsigned int, long unsigned int)' specified bound between 18446744072635809792 and 18446744073709551614 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   59 |   return __builtin___memset_chk (__dest, __ch, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
   60 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/geom.o shared/geom.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/glemu.o shared/glemu.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/stream.o shared/stream.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/tools.o shared/tools.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/zip.o shared/zip.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags` -x c++-header -o engine/engine.h.gch.tmp engine/engine.h
mv engine/engine.h.gch.tmp engine/engine.h.gch
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/3dgui.o engine/3dgui.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/bih.o engine/bih.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/blend.o engine/blend.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/blob.o engine/blob.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/client.o engine/client.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/command.o engine/command.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/console.o engine/console.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/cubeloader.o engine/cubeloader.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/decal.o engine/decal.cpp
engine/decal.cpp: In member function 'void decalrenderer::gentris(cube&, int, const ivec&, int, materialsurface*, int)':
engine/decal.cpp:445:21: warning: 'pos[0].vec::<anonymous>.vec::<unnamed union>::<anonymous>.vec::<unnamed union>::<unnamed struct>::x' may be used uninitialized [-Wmaybe-uninitialized]
  445 |             vec p = vec(pos[0]).sub(decalcenter);
      |                     ^~~~~~~~~~~
engine/decal.cpp:391:13: note: 'pos' declared here
  391 |         vec pos[MAXFACEVERTS+4];
      |             ^~~
engine/decal.cpp:445:21: warning: 'pos[0].vec::<anonymous>.vec::<unnamed union>::<anonymous>.vec::<unnamed union>::<unnamed struct>::y' may be used uninitialized [-Wmaybe-uninitialized]
  445 |             vec p = vec(pos[0]).sub(decalcenter);
      |                     ^~~~~~~~~~~
engine/decal.cpp:391:13: note: 'pos' declared here
  391 |         vec pos[MAXFACEVERTS+4];
      |             ^~~
engine/decal.cpp:445:21: warning: 'pos[0].vec::<anonymous>.vec::<unnamed union>::<anonymous>.vec::<unnamed union>::<unnamed struct>::z' may be used uninitialized [-Wmaybe-uninitialized]
  445 |             vec p = vec(pos[0]).sub(decalcenter);
      |                     ^~~~~~~~~~~
engine/decal.cpp:391:13: note: 'pos' declared here
  391 |         vec pos[MAXFACEVERTS+4];
      |             ^~~
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/dynlight.o engine/dynlight.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/glare.o engine/glare.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/grass.o engine/grass.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/lightmap.o engine/lightmap.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/main.o engine/main.cpp
In file included from engine/main.cpp:6:
/nix/store/s7f0ckw8pa6yap3a7kbn01lwy4s2a2gc-sdl2-compat-2.32.56-dev/include/SDL2/SDL_syswm.h:68:10: fatal error: X11/Xlib.h: No such file or directory
   68 | #include <X11/Xlib.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: engine/main.o] Error 1

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.15.0-rc6, NixOS, 25.05 (Warbler), 25.05.20250518.ca49c43
  • multi-user?: no
  • sandbox: yes
  • version: nix-env (Nix) 2.28.3
  • nixpkgs: not found

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@Jayman2000 Jayman2000 added the 0.kind: build failure A package fails to build label Jun 1, 2025
@amadejkastelic amadejkastelic linked a pull request Jun 1, 2025 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant