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

"cc1plus: some warnings being treated as errors" #134

Closed
rykugur opened this issue Feb 19, 2024 · 7 comments
Closed

"cc1plus: some warnings being treated as errors" #134

rykugur opened this issue Feb 19, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@rykugur
Copy link

rykugur commented Feb 19, 2024

Describe the bug

Trying to build on nixOS and getting numerous warnings in the logs, and eventual failure with error: "cc1plus: some warnings being treated as errors"

Error message

A lamp error message from the logs, or the one on screen.

"cc1plus: some warnings being treated as errors"

To Reproduce

Steps to reproduce the behaviour:

  1. be on nixOS
  2. try to build this derivation
  3. see error

Expected behaviour

Lampray to build without failure.

Screenshots

N/A

System Info (please complete the following information):

image

  • Linux Flavour: nixOS unstable
  • Window Manager: hyprland
  • Lamp Version: latest

Additional context

I'm relatively new to nixOS. Lampray was working for me on endeavourOS (installed via the AUR), but I cannot for the life of me get it to build on nixOS. Somebody responded to another issue here (#117 (comment)) (hence the cmakeFlags I added to my derivation), but no joy.

@rykugur rykugur added the bug Something isn't working label Feb 19, 2024
@rykugur
Copy link
Author

rykugur commented Feb 19, 2024

@rykugur
Copy link
Author

rykugur commented Feb 19, 2024

For reference I also started a discussion in the nixOS forums here

@SnazzyPanda
Copy link
Contributor

It looks like you are using the commit 79bac4c, which had a build error in it. Could you try using a newer commit, ideally the latest one (4673fef) and see if that helps with the build at all?

@rykugur
Copy link
Author

rykugur commented Feb 20, 2024

It looks like you are using the commit 79bac4c, which had a build error in it. Could you try using a newer commit, ideally the latest one (4673fef) and see if that helps with the build at all?

Good call... I was originally on the latest version, but that was when I first tried building this... I should have checked before making this post. 🤦

That got me further (at least no errors yet); probably need to tinker a bit more, but it's a definite improvement. Thanks!

EDIT: Wanted to follow up quick: I was able to build manually. Just missing a few system libs before I can run, but that's no big deal.

@rykugur rykugur closed this as completed Feb 20, 2024
@rykugur rykugur reopened this Feb 20, 2024
@rykugur
Copy link
Author

rykugur commented Feb 20, 2024

Sorry to close/reopen. I was getting a weird error, but was able to figure it out. For posterity, it was:

./result/bin/Lampray: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory

I didn't see lz4 in the docs as a requirement, but adding lz4 to my buildInputs seems to have resolved the issue and I'm able to launch the app.

I then ran into the p7zip couldn't be found issue. I was able to get around it temporarily by editing the conf.mdf file and hard-coding the path, but that "isn't really the nix way" and likely wouldn't work if I were try to import this into my nix config. I'll dig around and see if I can find a more permanent (declarative) solution.

@rykugur rykugur closed this as completed Feb 20, 2024
@Serpentian
Copy link

Serpentian commented Jun 25, 2024

I then ran into the p7zip couldn't be found issue. I was able to get around it temporarily by editing the conf.mdf file and hard-coding the path, but that "isn't really the nix way" and likely wouldn't work if I were try to import this into my nix config. I'll dig around and see if I can find a more permanent (declarative) solution.

@rykugur did you find the solution for that?

@rykugur
Copy link
Author

rykugur commented Jun 25, 2024

I then ran into the p7zip couldn't be found issue. I was able to get around it temporarily by editing the conf.mdf file and hard-coding the path, but that "isn't really the nix way" and likely wouldn't work if I were try to import this into my nix config. I'll dig around and see if I can find a more permanent (declarative) solution.

@rykugur did you find the solution for that?

I eventually got it working in nixOS - here's my derivation. Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants