[Nix-dev] Packaging Torch

Sergey Mironov grrwlf at gmail.com
Wed Feb 24 14:25:00 CET 2016


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 <grrwlf at 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 <grrwlf at gmail.com>:
>> Thanks!
>>
>> I'll report the progress here :)
>>
>> 2016-02-16 22:04 GMT+03:00 Jonn Mostovoy <jm at 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" <bill at casarin.me> wrote:
>>>>
>>>> On Tue, Feb 16, 2016 at 5:30 AM, Sergey Mironov <grrwlf at 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 at lists.science.uu.nl
>>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list