Hi Wink,
Apparently llvm 3.9 was merged, but the usual aliases (llvm_39,
clang_39) were not added.
See the initial commit, with the line where aliases are defined at [1]
As a workaround, you should be able to install
nixos-small.llvmPackages_39.{llvm,clang}.
If you feel in the mood, why not submit a pull-request that adds aliases
for llvm_39 and clang_39 ?
It's just two lines in pkgs/top-level/all-packages.nix.
[1]
https://github.com/NixOS/nixpkgs/commit/15af9082ebeb2aece84e426daf7185715cfbb203/pkgs/top-level/all-packages.nix#diff-036410e9211b4336186fc613f7200b12R4894
On 14/09/16 07:23, Wink Saville wrote:
As far as I can tell llvm 3.9 is in nixos-unstable-small
(https://goo.gl/3jkeuz) yet I'm not seeing llvm when I do a query:
[wink@vps1:~]$ sudo nix-channel --list
[wink@vps1:~]$ nix-channel --list
nixos-small https://nixos.org/channels/nixos-unstable-small
[wink@vps1:~]$ nix-channel --update
downloading Nix expressions from
‘https://nixos.org/releases/nixos/unstable-small/nixos-17.03pre91378.1781e95//nixexprs.tar.xz’...
downloading
‘https://nixos.org/releases/nixos/unstable-small/nixos-17.03pre91378.1781e95//nixexprs.tar.xz’...
[1984/7708 KiB, 1860.2 KiB/s]
unpacking channels...
[wink@vps1:~]$ nix-env -u
[wink@vps1:~]$ nix-env -qaP llvm
nixos-small.llvm_34 llvm-3.4.2
nixos-small.llvm_35 llvm-3.5.2
nixos-small.llvm_36 llvm-3.6.2
nixos-small.llvm llvm-3.7.1
nixos-small.llvm_38 llvm-3.8.0
So what have I done wrong or am I incorrect that llvm-3.9.0 is in
nixos-unstable-small?
On Mon, Sep 12, 2016 at 2:27 PM, Layus <[email protected]> wrote:
3.9 was added to master two days ago[1]. You have to wait for it to reach
the unstable channel and update, of install it from a checkout of nixpkgs.
[1]
https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/compilers/llvm
On 12/09/16 19:48, Wink Saville wrote:
Thanks for the info, that helps, oh and I'm running NixOS which I
installed using
16.03 on to a virtual private server and my configuration.nix file is
here (https://goo.gl/cXjV8E) and here is my uname info:
[wink@vps1:~]$ uname -a
Linux vps1 4.4.20 #1-NixOS SMP Wed Sep 7 06:32:59 UTC 2016 x86_64
GNU/Linux
It seems I don't have 3.9.0 available, how do I get it?
[wink@vps1:~]$ nix-env -qaP llvm
warning: name collision in input Nix expressions, skipping
‘/home/wink/.nix-defexpr/channels_root/nixos’
nixos.llvm_34 llvm-3.4.2
nixos.llvm_35 llvm-3.5.2
nixos.llvm_36 llvm-3.6.2
nixos.llvm llvm-3.7.1
nixos.llvm_38 llvm-3.8.0
[wink@vps1:~]$ nix-env -qaP clang-wrapper
warning: name collision in input Nix expressions, skipping
‘/home/wink/.nix-defexpr/channels_root/nixos’
nixos.clangSelf clang-wrapper-3.4.2
nixos.clang_34 clang-wrapper-3.4.2
nixos.clang_35 clang-wrapper-3.5.2
nixos.clang_36 clang-wrapper-3.6.2
nixos.clang clang-wrapper-3.7.1
nixos.clang_38 clang-wrapper-3.8.0
(Btw, what have I done to cause the 'warning: name collision'?)
On Mon, Sep 12, 2016 at 10:24 AM Layus <[email protected]> wrote:
Hi,
You can install llvm with nix-env -iA nixos.llvm nixos.clang (replace
nixos by nixpkgs if you are not using NixOS).
If you want a specific version, you can install llvm_XX and clang_XX as
in nix-env -iA nixos.llvm_34 nixos.clang_34.
For your issue, it arises because you want to install “llvm” which exists
in different versions.
Usually we provide a default one, but it seems currently broken in your
channel.
The fix I provide installs the package by its attribute name (-A option),
whis is, by construction, unique.
nix-env is unable to pick the right llvm/clang amongst:
$ nix-env -qaP llvm
nixos.llvm_34 llvm-3.4.2
nixos.llvm_35 llvm-3.5.2
nixos.llvm_36 llvm-3.6.2
nixos.llvm llvm-3.7.1
nixos.llvm_38 llvm-3.8.0
$ nix-env -qaP clang-wrapper
nixos.clangSelf clang-wrapper-3.4.2
nixos.clang_34 clang-wrapper-3.4.2
nixos.clang_35 clang-wrapper-3.5.2
nixos.clang_36 clang-wrapper-3.6.2
nixos.clang clang-wrapper-3.7.1
nixos.clang_38 clang-wrapper-3.8.0
— Layus.
On 12/09/16 18:58, Wink Saville wrote:
I'm unable to install clang/llvm 3.9.0:
[wink@vps1:~]$ nix-env -qa llvm
warning: name collision in input Nix expressions, skipping
‘/home/wink/.nix-defexpr/channels_root/nixos’
llvm-3.4.2
llvm-3.5.2
llvm-3.6.2
llvm-3.7.1
llvm-3.8.0
[wink@vps1:~]$ nix-env -qa clang
warning: name collision in input Nix expressions, skipping
‘/home/wink/.nix-defexpr/channels_root/nixos’
clang-3.7.1
I'm currently on nixos-unstable-small:
[wink@vps1:~]$ nix-channel --list
nixos https://nixos.org/channels/nixos-unstable-small
What am I doing wrong?
-- Wink
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev