I have installed https://releases.nixos.org/nixos/22.11/nixos-22.11.4773.ea4c80b39be4/nixexprs.tar.xz and i found gcc-unwrapped version mismatch and while checking nix-tree i found that as part of nix installation wrong gcc 9.5 is installed and the NIX_CC env variable is also set to 9.5.0
Seems like because 22.11 channel dont have separate version for aarch64 it is not working but when i try to use x86_64 the gcc version is correct.
how ever when i use Channels for NixOS project(s) chhanel i am getting correct gcc version that is 9.3.0 which is mentioned in the documentation.
Steps to reproduce
Linux architecture is aarch64-linux
Install https://releases.nixos.org/nixos/22.11/nixos-22.11.4773.ea4c80b39be4/nixexprs.tar.xz
then check the gcc-unwrapped package and it is not 11.3.0 rather it is 9.5.0
which is causing
whereis gcc
gcc: /usr/lib/gcc /usr/share/gcc /nix/store/f38iyls39nx3j2am87q0ni605nb152gv-gcc-wrapper-9.5.0/bin/gcc /nix/store/q7hw7f9lldzlizrad4xaqb1cm5v4qwqh-gcc-9.5.0/bin/gcc
Technical details
Please run nix-shell -p nix-info --run "nix-info -m"
and paste the result.
- system:
"aarch64-linux"
- host os:
Linux 5.19.0-45-generic, Ubuntu, 22.04.2 LTS (Jammy Jellyfish), nobuild
- multi-user?:
no
- sandbox:
yes
- version:
nix-env (Nix) 2.17.0
- nixpkgs:
/home/myfolder/.nix-defexpr/channels/nixpkgs