NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.63k stars 13.78k forks source link

Build failure: sbclPackages.cl-gobject-introspection #320098

Closed ivvil closed 1 week ago

ivvil commented 3 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build cl-gobject-introspection

Build log

these 2 derivations will be built:
  /nix/store/4gvfsfjy2zyjh5ar3kni89a67ggkryv2-builder.lisp.drv
  /nix/store/nn5ixwkchiyrd1jhvvxyrmhqy9sbb4gd-sbcl-cl-gobject-introspection-20230618-git.drv
these 15 paths will be fetched (2.75 MiB download, 14.98 MiB unpacked):
  /nix/store/gbm3hd13vxkhqgrb7cnh5a3wypyhc31x-asdf-3.3.6
  /nix/store/p4c1f64yphga1r8y4f255qi86bf7m3ln-asdf-3.3.6
  /nix/store/7gbyimdy46ibb4f620y7s5hv759gl8cf-sbcl-alexandria-20230618-git
  /nix/store/g7qi9g0bm8z2kbxlylrb967wmd665866-sbcl-babel-20230214-git
  /nix/store/r065qiq56qj4v9rhd1l5b1pbw81f771z-sbcl-cffi-0.24.1
  /nix/store/6mkiv5wrsk8x6k00970rbv0bv9wnfgs2-sbcl-iterate-release-b0f9a9c6-git
  /nix/store/bj2q9qry1qrn0x7p97c4vim23xzl6q7d-sbcl-trivial-features-20230618-git
  /nix/store/ch52r747k033cqb31fqlby06qwc0ydmv-sbcl-trivial-garbage-20211230-git
  /nix/store/2zfy1iq9alq9j1pm0qsp12aky4qnddam-source
  /nix/store/4jy21pb64j6ar62qp3pd4hg0chjfr9ww-source
  /nix/store/fldw3972prvmlv87f0qf69myk79kz1g4-source
  /nix/store/jwjj5licshijmw293fhfw7fafx29cfr1-source
  /nix/store/n7a9kbgcyznpsmcqawkirz7s05q4d22c-source
  /nix/store/n878brdkwbpqazsr58a19cwydwg5j921-source
  /nix/store/rghnpcra9npz48j3b9skhwxn56k3gs94-source
copying path '/nix/store/gbm3hd13vxkhqgrb7cnh5a3wypyhc31x-asdf-3.3.6' from 'https://cache.nixos.org'...
copying path '/nix/store/n878brdkwbpqazsr58a19cwydwg5j921-source' from 'https://cache.nixos.org'...
copying path '/nix/store/4jy21pb64j6ar62qp3pd4hg0chjfr9ww-source' from 'https://cache.nixos.org'...
copying path '/nix/store/jwjj5licshijmw293fhfw7fafx29cfr1-source' from 'https://cache.nixos.org'...
copying path '/nix/store/n7a9kbgcyznpsmcqawkirz7s05q4d22c-source' from 'https://cache.nixos.org'...
copying path '/nix/store/rghnpcra9npz48j3b9skhwxn56k3gs94-source' from 'https://cache.nixos.org'...
copying path '/nix/store/p4c1f64yphga1r8y4f255qi86bf7m3ln-asdf-3.3.6' from 'https://cache.nixos.org'...
copying path '/nix/store/2zfy1iq9alq9j1pm0qsp12aky4qnddam-source' from 'https://cache.nixos.org'...
copying path '/nix/store/fldw3972prvmlv87f0qf69myk79kz1g4-source' from 'https://cache.nixos.org'...
copying path '/nix/store/bj2q9qry1qrn0x7p97c4vim23xzl6q7d-sbcl-trivial-features-20230618-git' from 'https://cache.nixos.org'...
copying path '/nix/store/ch52r747k033cqb31fqlby06qwc0ydmv-sbcl-trivial-garbage-20211230-git' from 'https://cache.nixos.org'...
copying path '/nix/store/7gbyimdy46ibb4f620y7s5hv759gl8cf-sbcl-alexandria-20230618-git' from 'https://cache.nixos.org'...
building '/nix/store/4gvfsfjy2zyjh5ar3kni89a67ggkryv2-builder.lisp.drv'...
copying path '/nix/store/6mkiv5wrsk8x6k00970rbv0bv9wnfgs2-sbcl-iterate-release-b0f9a9c6-git' from 'https://cache.nixos.org'...
copying path '/nix/store/g7qi9g0bm8z2kbxlylrb967wmd665866-sbcl-babel-20230214-git' from 'https://cache.nixos.org'...
copying path '/nix/store/r065qiq56qj4v9rhd1l5b1pbw81f771z-sbcl-cffi-0.24.1' from 'https://cache.nixos.org'...
building '/nix/store/nn5ixwkchiyrd1jhvvxyrmhqy9sbb4gd-sbcl-cl-gobject-introspection-20230618-git.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/n878brdkwbpqazsr58a19cwydwg5j921-source
source root is source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
This is SBCL 2.4.5, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* #<PACKAGE "NIX-CL-USER">
* #<PACKAGE "NIX-CL-USER">
* T
* LOAD-SYSTEMS
* ; compiling file "/nix/store/n878brdkwbpqazsr58a19cwydwg5j921-source/src/package.lisp" (written 01 JAN 1970 12:00:01 AM):

; wrote /build/source/src/package-tmpGHU3ALSV.fasl
; compilation finished in 0:00:00.006
; compiling file "/nix/store/n878brdkwbpqazsr58a19cwydwg5j921-source/src/init.lisp" (written 01 JAN 1970 12:00:01 AM):
; 
; caught ERROR:
;   READ error during COMPILE-FILE:
;   
;     Lock on package SB-EXT violated when interning SET-FLOATING-POINT-MODES while
;     in package GIR.
;   See also:
;     The SBCL Manual, Node "Package Locks"
;   
;     (in form starting at line: 146, column: 0, position: 4089)

; compilation aborted after 0:00:00.037
; 
; compilation unit aborted
;   caught 2 fatal ERROR conditions
;   caught 1 ERROR condition
BUILD FAILED: COMPILE-FILE-ERROR while
              compiling #<CL-SOURCE-FILE "cl-gobject-introspection" "src/init">
error: builder for '/nix/store/nn5ixwkchiyrd1jhvvxyrmhqy9sbb4gd-sbcl-cl-gobject-introspection-20230618-git.drv' failed with exit code 1;
       last 10 log lines:
       > ;
       > ;     (in form starting at line: 146, column: 0, position: 4089)
       >
       > ; compilation aborted after 0:00:00.037
       > ;
       > ; compilation unit aborted
       > ;   caught 2 fatal ERROR conditions
       > ;   caught 1 ERROR condition
       > BUILD FAILED: COMPILE-FILE-ERROR while
       >               compiling #<CL-SOURCE-FILE "cl-gobject-introspection" "src/init">
       For full logs, run 'nix log /nix/store/nn5ixwkchiyrd1jhvvxyrmhqy9sbb4gd-sbcl-cl-gobject-introspection-20230618-git.drv'.

Additional context

Loading the package from quicklisp ((ql:quickload :cl-gobject-introspection)) seems to give a different error:

Unable to load any of the alternatives:
   ("libgirepository-1.0.so.1" "libgirepository-1.0.so")
   [Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]

Notify maintainers

@7c6f434c @lukego @Uthar @nagy @hraban

Metadata

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

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.11 (Vicuña), 24.11.20240612.57d6973`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/dydg48djlykksz8cxq0xjplyxpa9pvf4-source`
Uthar commented 3 months ago

Should be fixed in https://github.com/NixOS/nixpkgs/pull/321363.