Repository navigation
Closed
Labels
0.kind: build failureA package fails to build
Description
Steps To Reproduce
Steps to reproduce the behavior:
git checkout 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
nix build .#ceph
Build log
error: builder for '/nix/store/y6hik0qrizynz83x27a8jynkx5kzbfpj-ceph-18.2.0.drv' failed with exit code 2;
last 10 log lines:
> [ 74%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/__/common/ContextCompletion.cc.o
> [ 74%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/crypto/luks/LUKSEncryptionFormat.cc.o
> [ 74%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/crypto/luks/FormatRequest.cc.o
> [ 74%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/crypto/luks/FlattenRequest.cc.o
> [ 74%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/crypto/luks/Header.cc.o
> [ 74%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/crypto/luks/LoadRequest.cc.o
> [ 74%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/crypto/luks/Magic.cc.o
> [ 74%] Linking CXX static library ../../lib/librbd_internal.a
> [ 74%] Built target rbd_internal
> make: *** [Makefile:146: all] Error 2
For full logs, run 'nix log /nix/store/y6hik0qrizynz83x27a8jynkx5kzbfpj-ceph-18.2.0.drv'.
Additional context
nixos-unstable 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
Noticed when setting services.samba.package = pkgs.sambaFull; and rebuilding
Notify maintainers
@adevress @alexanderkjeldaas @johanot @krav
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
❯ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.6.11, NixOS, 24.05 (Uakari), 24.05.20240113.9b19f5e`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.1`
- channels(root): `"nixos-23.05"`
- nixpkgs: `/etc/nix/path/nixpkgs`Add a 👍 reaction to issues you find important.
Reacted by heyzec, Haakon Meihack, bb2020, Graham Leach-Krouse, Jeffrey C. Ollie, Diego and Dylan R. E. Moonfire
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build
Activity
dotlambda commentedon Jan 15, 2024
You won't get a reply if you leave that empty.
programmerHaaks commentedon Jan 15, 2024
I'm having the same issue
I didn't notice when it happened, but I also have sambaFull
dio-rz commentedon Jan 17, 2024
Same error whit the package
qemu_full.dotlambda commentedon Jan 17, 2024
This seems related to https://tracker.ceph.com/issues/61975.
nh2 commentedon Jan 18, 2024
That turned out not to be the issue.
The actual error:
https://cache.nixos.org/log/4i14y3ylpmagn2jfzi598ghw9fw2dza4-ceph-18.2.0.drv
In colour so that one can actually make sense of C++ error messages:
One potential problem here:
fmt-8.1.1-devThis is because of
all-packages.nixhaving:fmt_9: Buildsfmt =entirely (which swiches tofmt_10): Fails on newfmtrelated errors (see below)fmt =andlua =: Fails because Ceph requires lua >= 5.3 and nixpkgs's default is still 5.2:Could NOT find Lua (missing: LUA_INCLUDE_DIR) (Required is at least version "5.3")Build failure with
fmt_10:Details
I noticed Arch has patches for
fmt10.But we can just use
fmt_9to fix the build.nh2 commentedon Jan 18, 2024
PR for the fix: #281858
ceph: Fix build with GCC 13 by using fmt_8 -> fmt_9. Fixes NixOS#281027
ceph: Fix build with GCC 13 by using fmt_8 -> fmt_9. Fixes #281027
Merge pull request #281858 from nh2/fix-ceph-build-use-fmt_9