Hello. After recent segfault I have re-designed Nix expression building Torch the machine learning framework. New build2.nix doesn't use all-in-one install script from the upstream, but builds one package after another in form of separate derivations. This way turns out to be successful, so we have a Torch which passes the segfault test from the previous letter.
As a side effect, the expression contains function dealing with luarocks (they think every language should have its own package manager))). It would be nice to integrate it into nixpkgs. AFAIK top-level/lua-packages doesn't really support luarocks builds at the moment. To check it out: $ git clone https://github.com/grwlf/torch-distro --recursive $ cd torch-distro $ nix-build build2.nix -A trepl $ ./result/bin/th There are less than a half of the total number of packages. Still many things to do.. Regards, Sergey 2016-02-24 16:25 GMT+03:00 Sergey Mironov <grr...@gmail.com>: > Unfortunately, the Torch build from > https://github.com/grwlf/torch-distro has a Segfault problem. > > $ th > th> N = 5 > > [0.0000s] > th> A = torch.rand(N, N) > > [0.0002s] > th> A = A*A:t() > Segmentation fault (core dumped) > > Core dump shows that it is the luajit who cause the fault. The source > of a problem is still a mystery. > Regards, > > > 2016-02-19 16:27 GMT+03:00 Sergey Mironov <grr...@gmail.com>: >> Hi again. I come to a runnable version of Torch package. Not sure it >> works correctly, but I can see its colored command prompt. >> >> $ git clone https://github.com/grwlf/torch-distro --recursive >> $ cd torch-distro >> $ nix-build build.nix >> >> Install.log says that some optional packages (namely, iTorch) have >> failed to build. Also, the package has many Lua dependencies >> incorporated, one have to switch them to lua-packages.nix somehow. >> >> Regards, >> Sergey >> >> >> 2016-02-17 18:11 GMT+03:00 Sergey Mironov <grr...@gmail.com>: >>> Thanks! >>> >>> I'll report the progress here :) >>> >>> 2016-02-16 22:04 GMT+03:00 Jonn Mostovoy <j...@memorici.de>: >>>> I just want to point out that I wanted to build a neural network engine in >>>> lua with some auxiliary dependencies and faced unpleasant problems with >>>> 'cc' >>>> binary pointing not where the author's cmake file expected to point. >>>> Didn't research, much, but if anything, I'd be interested to contribute to >>>> little things when it comes to lua packaging. >>>> >>>> On Feb 16, 2016 7:06 PM, "William Casarin" <b...@casarin.me> wrote: >>>>> >>>>> On Tue, Feb 16, 2016 at 5:30 AM, Sergey Mironov <grr...@gmail.com> wrote: >>>>> > Hi, List. I'd like to use Torch (http://torch.ch/) on NixOS and it >>>>> > looks like I have to package it first. >>>>> >>>>> I was looking into this awhile back. On the lua side, some pre-reqs >>>>> would make this a lot easier: >>>>> >>>>> * luarocks2nix (https://luarocks.org/manifest.zip) >>>>> * packaging these https://github.com/torch/rocks >>>>> >>>>> This would be useful for things outside Torch as well, but looks like >>>>> a lot of work... >>>>> _______________________________________________ >>>>> nix-dev mailing list >>>>> nix-dev@lists.science.uu.nl >>>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev