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

Doesn't run on nix nixos-20.09 #183

Closed
yakimant opened this issue Oct 9, 2024 · 8 comments
Closed

Doesn't run on nix nixos-20.09 #183

yakimant opened this issue Oct 9, 2024 · 8 comments

Comments

@yakimant
Copy link

yakimant commented Oct 9, 2024

$ nix run --override-input nixpkgs nixpkgs/nixos-20.09 --impure github:nix-community/nixGL -- program
...
error: builder for '/nix/store/1nd00kp9fs6afpa3ylhb49ghy04jhbnr-intel-gmmlib-20.2.5.drv' failed with exit code 2;
       last 10 log lines:
       > [ 98%] Building CXX object Source/GmmLib/ULT/CMakeFiles/GMMULT.dir/GmmULT.cpp.o
       > cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++
       > [100%] Linking CXX executable GMMULT
       > [100%] Built target GMMULT
       > Scanning dependencies of target Run_ULT
       > running ULTs
       > Illegal instruction
       > make[2]: *** [Source/GmmLib/ULT/CMakeFiles/Run_ULT.dir/build.make:81: Run_ULT] Error 1
       > make[1]: *** [CMakeFiles/Makefile2:190: Source/GmmLib/ULT/CMakeFiles/Run_ULT.dir/all] Error 2
       > make: *** [Makefile:171: all] Error 2

We need old nixpkgs with old glibc to run a program on old Linux distributions.

Probably nixGL worked before, will bisect.

@yakimant
Copy link
Author

yakimant commented Oct 9, 2024

Related issue: #123

@yakimant
Copy link
Author

yakimant commented Oct 9, 2024

This works:
643e730

The next commit doesn't:
cd2ec21

@SuperSandro2000
Copy link
Member

NixOS 20.09 is EOL since years. You should probably update to a newer version.

@yakimant
Copy link
Author

yakimant commented Oct 9, 2024

We need to use that one due to glibc compatibility.

@SuperSandro2000
Copy link
Member

Then you probably want to upgrade your base distro.

nixGL is certainly not supporting a NixOS version that old.

@yakimant
Copy link
Author

yakimant commented Oct 9, 2024

The thing is we want to build an app with old glibc so it can run on most distros.
Currently the oldest supported Ubuntu LTS is 20.04, that's why we are stuck with building with nixpkgs 20.09.
So people could run our app on Ubuntu LTS 20.04.

I was pretty sure you will not fix the issue. But still usefull to document the workaround.

Pinning 643e730 works with nixpkgs 20.09.

You can close the issue.

@SuperSandro2000
Copy link
Member

What you are doing is unsupported by NixOS upstream and inherently insecure as 20.09 didn't receive an security update in 3.5 years. There are probably many high targeted CVEs since then. You are putting your users at risk with such a prebuilt binary.

I also don't think we should document such an old nixpkgs version. People should not use it anymore.

PS I can't close issues here.

@yakimant
Copy link
Author

That's a good point, thank you!
So it will be compatibility vs security.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants