Skip to content
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

Build failure: libpeas2 cannot find lua lgi package #301380

Closed
montchr opened this issue Apr 3, 2024 · 15 comments · Fixed by #303527
Closed

Build failure: libpeas2 cannot find lua lgi package #301380

montchr opened this issue Apr 3, 2024 · 15 comments · Fixed by #303527
Labels

Comments

@montchr
Copy link
Member

montchr commented Apr 3, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  • Build libpeas2 on nixos-unstable
NOTE: an earlier version of this report contained misleading info, preserved for posterity within the collapsed content

Unclear to me.

I have only been able to reproduce this error as a dependency of my (flake-based) NixOS system configuration on aarch64-linux.

None of these alone result in an error:

# IGNORE THESE! SEE ABOVE UPDATE FOR CORRECT INFO
# nix build nixpkgs#libpeas
# nix build nixpkgs#gnome-builder

Build log

Full: https://gist.github.com/montchr/bdfd613a3b747a33f32bb669a30ed265

Excerpt of nixos-rebuild build --verbose output (removed unrelated lines):

building '/nix/store/d9qijlw975ag76bj5vv82j6l94srcg62-libpeas-2.0.1.drv'...
error: builder for '/nix/store/d9qijlw975ag76bj5vv82j6l94srcg62-libpeas-2.0.1.drv' failed with exit code 1;
       last 10 log lines:
       > Compiler for C supports link arguments -Wl,-z,relro: YES
       > Compiler for C supports link arguments -Wl,-z,now: YES
       > Compiler for C supports link arguments -Wl,-Bsymbolic: YES
       > Compiler for C supports link arguments -fno-plt: YES
       > Compiler for C supports arguments -fvisibility=hidden: YES
       > Configuring config.h using configuration
       >
       > meson.build:404:2: ERROR: Problem encountered: Lua51 requested but failed to locate suitable Lua51 and LGI support
       >
       > A full log can be found at /build/libpeas-2.0.1/build/meson-logs/meson-log.txt
       For full logs, run 'nix log /nix/store/d9qijlw975ag76bj5vv82j6l94srcg62-libpeas-2.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/zhishld4zw0dg7wh8zipbzq29ilwyvyi-gnome-builder-45.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bjidb7n0krz58w16rwavz966g4p55yg9-gnome-builder-45.0_fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kdjyyxmaxni2pk1q2n3z6i3gmkva4abg-man-paths.drv' failed to build
building '/nix/store/vm6dm6wzasgvh7y6mcxgqzd6x51d9h87-nnn-4.9.drv'...
error: 1 dependencies of derivation '/nix/store/5y654pcc4swqsf6sy1wr4g54nc9gcj5b-system-path.drv' failed to build
...
error: 1 dependencies of derivation '/nix/store/4l71d3j310ipbi29nglnlnjp8215hi1r-nixos-system-tuvok-24.05.20240403.08b9151.drv' failed to build

Additional context

Flake-based configuration for Asahi (Apple Silicon) system tracking nixos-unstable (08b9151)

[Update]:

After further searching, I found this upstream issue and fix from 4 years ago:

https://gitlab.gnome.org/GNOME/libpeas/-/issues/33
https://gitlab.gnome.org/GNOME/libpeas/-/merge_requests/20

I am not sure what to do with that, however.

Notify maintainers

@NixOS/gnome

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: `"aarch64-linux"`
 - host os: `Linux 6.6.0-asahi, NixOS, 24.05 (Uakari), 24.05.20240323.44d0940`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/06b0vfbjzpnn5qdar7yw83c6gzqsz5yd-amxd2p02wx78nyaa4bkb0hjvgwhz1dq7-source`

Add a 👍 reaction to issues you find important.

@montchr montchr added the 0.kind: build failure A package fails to build label Apr 3, 2024
@barryfm
Copy link
Contributor

barryfm commented Apr 3, 2024

My build attempt of libpeas2 is attached:

build.log

@Icy-Thought
Copy link
Contributor

I was greeted with the same issue when I attempted to updatepkgs.valent alongside my flake setup.

@jtojnar jtojnar self-assigned this Apr 4, 2024
@R2Boyo25
Copy link

R2Boyo25 commented Apr 4, 2024

I would like to add that I get an error in the libpeas build when trying to build gnome-builder, but not when directly building libpeas (and I also get the same error when trying to rebuild my system)

$ nix build nixpkgs#gnome-builder
error: builder for '/nix/store/lb0wgpa45fc4lx8hica7zmy9r6dpcq3f-libpeas-2.0.1.drv' failed with exit code 1;
       last 10 log lines:
       > Compiler for C supports link arguments -Wl,-z,relro: YES
       > Compiler for C supports link arguments -Wl,-z,now: YES
       > Compiler for C supports link arguments -Wl,-Bsymbolic: YES
       > Compiler for C supports link arguments -fno-plt: YES
       > Compiler for C supports arguments -fvisibility=hidden: YES
       > Configuring config.h using configuration
       >
       > meson.build:404:2: ERROR: Problem encountered: Lua51 requested but failed to locate suitable Lua51 and LGI support
       >
       > A full log can be found at /build/libpeas-2.0.1/build/meson-logs/meson-log.txt
       For full logs, run 'nix log /nix/store/lb0wgpa45fc4lx8hica7zmy9r6dpcq3f-libpeas-2.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/ghkc30l1q8zqzqw2jsac4g20rbp8jx32-gnome-builder-45.0.drv' failed to build

Edit: I cannot build libpeas2 directly. I was building libpeas on accident (because the original issue had a command to build nixpkgs#libpeas).

@jtojnar
Copy link
Member

jtojnar commented Apr 4, 2024

That is because gnome-builder depends on libpeas2.

I am currently bisecting it but it goes slow without timokau/nix-bisect#25.

@R2Boyo25
Copy link

R2Boyo25 commented Apr 4, 2024

That is because gnome-builder depends on libpeas2.

I am currently bisecting it but it goes slow without timokau/nix-bisect#25.

I added that because the original issue states that they can build gnome-builder without the issue.

@jtojnar
Copy link
Member

jtojnar commented Apr 4, 2024

Maybe they have cached older version of nixpkgs flake ref.

@R2Boyo25
Copy link

R2Boyo25 commented Apr 4, 2024

That is because gnome-builder depends on libpeas2.

I am currently bisecting it but it goes slow without timokau/nix-bisect#25.

This comment appears to state that the linked PR is what caused libpeas2 to fail to build: #289135 (comment)

@jtojnar jtojnar removed their assignment Apr 4, 2024
@jtojnar
Copy link
Member

jtojnar commented Apr 4, 2024

Weird. It was supposed to have been fixed by 0f6ddea, which is in nixos-unstable according to https://nixpk.gs/pr-tracker.html?pr=292500 but libpeas2 still does not build for me.

@jtojnar jtojnar changed the title Build failure: libpeas-2.0.1 as dependency of gnome-builder-45.0 Build failure: libpeas2 cannot find lua lgi package Apr 4, 2024
@montchr
Copy link
Member Author

montchr commented Apr 5, 2024

Apologies for the confusing info I provided in the opening description. I do see build failures for both libpeas2 and gnome-builder now:

[cdom@tuvok]% nix build github:nixos/nixpkgs/nixos-unstable#libpeas2
error: builder for '/nix/store/d9qijlw975ag76bj5vv82j6l94srcg62-libpeas-2.0.1.drv' failed with exit code 1;
       last 10 log lines:
       > Compiler for C supports link arguments -Wl,-z,relro: YES
       > Compiler for C supports link arguments -Wl,-z,now: YES
       > Compiler for C supports link arguments -Wl,-Bsymbolic: YES
       > Compiler for C supports link arguments -fno-plt: YES
       > Compiler for C supports arguments -fvisibility=hidden: YES
       > Configuring config.h using configuration
       >
       > meson.build:404:2: ERROR: Problem encountered: Lua51 requested but failed to locate suitable Lua51 and LGI support
       >
       > A full log can be found at /build/libpeas-2.0.1/build/meson-logs/meson-log.txt
       For full logs, run 'nix log /nix/store/d9qijlw975ag76bj5vv82j6l94srcg62-libpeas-2.0.1.drv'.
[cdom@tuvok]% nix build github:nixos/nixpkgs/nixos-unstable#gnome-builder
error: builder for '/nix/store/d9qijlw975ag76bj5vv82j6l94srcg62-libpeas-2.0.1.drv' failed with exit code 1;
       last 10 log lines:
       > Compiler for C supports link arguments -Wl,-z,relro: YES
       > Compiler for C supports link arguments -Wl,-z,now: YES
       > Compiler for C supports link arguments -Wl,-Bsymbolic: YES
       > Compiler for C supports link arguments -fno-plt: YES
       > Compiler for C supports arguments -fvisibility=hidden: YES
       > Configuring config.h using configuration
       >
       > meson.build:404:2: ERROR: Problem encountered: Lua51 requested but failed to locate suitable Lua51 and LGI support
       >
       > A full log can be found at /build/libpeas-2.0.1/build/meson-logs/meson-log.txt
       For full logs, run 'nix log /nix/store/d9qijlw975ag76bj5vv82j6l94srcg62-libpeas-2.0.1.drv'.

Maybe they have cached older version of nixpkgs flake ref.

@jtojnar You're right, thanks. Now I know better for next time to verify stuff like this with github:nixos/nixpkgs/nixos-unstable rather than nixpkgs, which corresponds to the ref of my current NixOS generation. I'll update the description.

@schuelermine
Copy link
Contributor

Does not build here, nixpkgs @ fd281bd

@jtojnar
Copy link
Member

jtojnar commented Apr 5, 2024

cc @lolbinarycat and @vcunat who last touched the lua stuff

@vcunat
Copy link
Member

vcunat commented Apr 5, 2024

I hoped this regression should be fixed by
c55b4db

@gepbird
Copy link
Contributor

gepbird commented Apr 5, 2024

@vcunat yes, that fixes it, thanks!

libpeas2 builds when cherry picking b8be016 and c55b4db onto nixos-unstable.

ymstnt added a commit to ymstnt/dotfiles that referenced this issue Apr 6, 2024
- exlucde vala-language-server till NixOS/nixpkgs#301380 is fixed
@montchr
Copy link
Member Author

montchr commented Apr 7, 2024

libpeas2 builds when cherry picking b8be016 and c55b4db onto nixos-unstable.

For others wishing to track the status of #300905, the PR adding these commits:

https://nixpk.gs/pr-tracker.html?pr=300905

Unfortunately, it looks as though the changes have been stuck on the staging branch for a few days. I haven't yet cherry-picked those commits to verify since I expected them to appear in master sooner. But I will try to get to verifying a few hours from now.

I'm having some trouble following the chain of related PRs. @vcunat (or anyone else) do you have a better sense of when we might see those changes make it out of staging?

@vcunat
Copy link
Member

vcunat commented Apr 7, 2024

Roughly two weeks from now.

@vcunat vcunat linked a pull request Apr 12, 2024 that will close this issue
ymstnt added a commit to ymstnt/dotfiles that referenced this issue Apr 18, 2024
- exlucde vala-language-server till NixOS/nixpkgs#301380 is fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants