NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.99k stars 14.01k forks source link

Build failure: breakpad, fcitx5-mozc #264414

Closed oluceps closed 12 months ago

oluceps commented 12 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build nixpkgs#fcitx5-mozc

Build log

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/6lmz5k9p6pnlg6ksckhwid7x5ylfxiwz-breakpad-unstable-3b3469e.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/66q2wkwmx6gw5dnci29pycplxm5q99if-breakpad-3b3469e
source root is breakpad-3b3469e
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./autotools/config.sub
Updating Autotools / GNU config script to a newer upstream version: ./autotools/config.guess
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing libtool script ./autotools/ltmain.sh
configure flags: --disable-dependency-tracking --prefix=/nix/store/pj8ddvmpicmcp2m89afj45z29h3nyg08->
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/b>
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/bin>
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '100' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
...skipping...
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src   -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual >
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src   -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual >
g++  -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-loca>
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src   -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual >
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src   -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual >
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src   -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual >
src/processor/exploitability_linux.cc: In static member function 'static bool google_breakpad::Explo>
src/processor/exploitability_linux.cc:519:11: error: argument 1 null where non-null expected [-Werro>
  519 |     fclose(objdump_fp);
      |     ~~~~~~^~~~~~~~~~~~
In file included from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/cstd>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/ext/>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/bits>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/stri>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/bits>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/bits>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/ios:>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/ostr>
                 from /nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/include/c++/12.3.0/iost>
                 from ./src/google_breakpad/processor/minidump.h:88,
                 from ./src/google_breakpad/processor/exploitability.h:44,
                 from ./src/processor/exploitability_linux.h:41,
                 from src/processor/exploitability_linux.cc:37:
/nix/store/x8lqlydsxbrwvf6p7v18gws8kn1xl37f-glibc-2.38-23-dev/include/stdio.h:183:12: note: in a cal>
  183 | extern int fclose (FILE *__stream) __nonnull ((1));
      |            ^~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:5666: src/processor/exploitability_linux.o] Error 1

Additional context

Add any other context about the problem here.

Notify maintainers

@berberman @GovanifY

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

> nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.8, NixOS, 23.11 (Tapir), 23.11.20231024.8efd5d1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
oluceps commented 12 months ago

Solved, sry for that.