[Nix-dev] LLVM builds on Hydra but not locally

Rob Vermaas rob.vermaas at gmail.com
Sun Dec 15 15:23:43 CET 2013


Hi James,

I am not sure if it is applicable, but one thing that is typically
different between Hydra (hydra.nixos.org) and typical Nix/NixOS
installations, is that we build with chroot enabled (see manual, think
it is called build-use-chroot in nix.conf). Perhaps that is
influencing the build due to some impurity somewhere.

Cheers,
Rob

On Sun, Dec 15, 2013 at 9:43 AM, James Cook <james.cook at utoronto.ca> wrote:
> Any experts on building LLVM?  I am seeing different results from
> Hydra.  Maybe it's because I have an AMD CPU.  Full /proc/cpuinfo at
> https://gist.github.com/falsifian/7970458 .
>
> When I try to build LLVM on the stdenv-updates branch (haven't tried
> master), I see the following error:
>
> [ 48%] Built target LLVMMCJIT
> building lib/Target/AArch64/Utils/CMakeFiles/LLVMAArch64Utils.dir/all
> building lib/Target/AArch64/Utils/CMakeFiles/LLVMAArch64Utils.dir/depend
> Scanning dependencies of target LLVMAArch64Utils
> make[2]: *** No rule to make target
> `lib/Target/AArch64/AArch64GenSubtargetInfo.inc', needed by
> `lib/Target/AArch64/Utils/CMakeFiles/LLVMAArch64Utils.dir/AArch64BaseInfo.cpp.o'.
>  Stop.
> make[1]: *** [lib/Target/AArch64/Utils/CMakeFiles/LLVMAArch64Utils.dir/all]
> Error 2
>
> Full build output at https://gist.github.com/falsifian/7970450 .  This
> is at commit 2bc29e4e, but I've tried other places on stdenv-updates
> with the same result.
>
> On the other hand, Hydra seems able to build this (same store path) if
> I'm interpreting this page correctly:
> http://hydra.nixos.org/build/7133993 .
>
> Am I supposed to have system set to something different if I'm on
> 64-bit AMD compared to 64-bit Intel?
>
> I haven't looked further into it because I know very little about building LLVM.
>
> James
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev



-- 
Rob Vermaas

[email] rob.vermaas at gmail.com


More information about the nix-dev mailing list