gcc49Stdenv is obsolete

Is it possible to use it?

# shell.nix
let
  pkgs = import <nixpkgs> { };
in
pkgs.mkShell.override { stdenv = pkgs.gcc49Stdenv; } {
}
> nix-shell
error: gcc49Stdenv has been removed from Nixpkgs, 
as it is unmaintained and obsolete

Use an older revision of nixpkgs where it’s not obsolete (git blame or searching PRs may be helpful here).

Thanks. I will try it.

Out of curiosity: why do you need to use such an old gcc version? Why newer versions don’t work for your use case?

Just can’t compile with newer gcc. Some weird error messages thrown.

And what are these “weird” errors?

It’s a old linux kernel (2.6.39), released in 2011. It only supports gcc up to 4.x. It’s hard to tweak it to support newer gcc.

2 Likes

Hi.

I’m exposed to the same issue, because I use gcc49 to compile kernel for my gray386linux distribution (GitHub - marmolak/gray386linux: Linux distribution for i386 machines only.).

Thank you for help. I can try older nixpkgs for this :).

1 Like