Package Details: torch7-cutorch-git r1026.5e9d86c-1

Git Clone URL: (read-only)
Package Base: torch7-cutorch-git
Description: A CUDA backend for Torch7
Upstream URL:
Licenses: BSD
Conflicts: torch7-cutorch
Provides: torch7-cutorch
Submitter: petronny
Maintainer: petronny
Last Packager: petronny
Votes: 6
Popularity: 0.417771
First Submitted: 2016-08-28 13:17
Last Updated: 2017-10-10 09:51

Dependencies (4)

Sources (1)

Latest Comments

eigengrau commented on 2017-09-25 14:12

I’m also seeing implicit function declaration errors when building this. The patch posted below resolved this. Maybe it would make sense to apply this here until it is taken up upstream.

zsrkmyn commented on 2017-09-23 18:04

`-fno-plt` is in the `CFLAGS` and `CXXFLAGS` by default in the latest makepkg.conf file, which should be removed, since gcc-5/g++-5 cannot recognize it.

for more details, please refer to [1].


torch7-cunn-git has the same problem as well.

edmeme commented on 2017-09-13 14:23

I had to do some juggling to get this building on my system. I got the same errors as @ansine, which were caused because lua52 headers were accidentaly used at some step in the compilation. I solved this by prepending to CPATH=/usr/include/lua5.1/ to cmake in PKGBUILD.

@petronny is right about removing -fno-plt on makepkg.conf, but I wonder how to do it in a way its contained in the PKGBUILD, maybe rewriting CFLAGS in build() is enough.

Furthermore, I believe cmake flag -DCMAKE_C_COMPILER is obsolete, you should use environment variables instead.

Finaly glibc 2.26-3 was attempting to use __Float128 within nvcc, as it was unable to determine correctly GCC's version, the only fix I could find is patching a header of glibc itself.

All the changes I made are in

petronny commented on 2017-08-26 12:56

@xico remove it in /etc/makepkg.conf will work

xico commented on 2017-08-22 12:15

Compilation fails with gcc5 due to the recent adding of `-fno-plt` in makepkg.conf.

Actual error message is:

CMake Error at /usr/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "/usr/bin/gcc-5" is not able to compile a simple test

Akari commented on 2017-07-23 10:52

I made a pull request upstream to fix the error that me, Clyybber and ansine were getting. Until it's merged, please add this patch:

Pull request link:

petronny commented on 2017-05-24 10:32

@Clyybber @ansine
Everything works fine here, so I can't solve your problem.

If you still get stuck there, you can fetch the latest compiled package from

Clyybber commented on 2017-05-15 18:03

I get the same error as asine. It fails to build

ansine commented on 2017-04-23 17:53

[ 93%] Building C object CMakeFiles/cutorch.dir/Storage.c.o
In file included from /tmp/pamac-build-fx/torch7-cutorch-git/src/torch7-cutorch-git/generic/CStorage.c:35:0,
from generic/CStorage.c:1,
from /tmp/pamac-build-fx/torch7-cutorch-git/src/torch7-cutorch-git/lib/THC/THCGenerateAllTypes.h:17,
from /tmp/pamac-build-fx/torch7-cutorch-git/src/torch7-cutorch-git/Storage.c:18:
/tmp/pamac-build-fx/torch7-cutorch-git/src/torch7-cutorch-git/torch/generic/Storage.c: В функции «torch_CudaByteStorage_init»:
/tmp/pamac-build-fx/torch7-cutorch-git/src/torch7-cutorch-git/torch/generic/Storage.c:276:3: ошибка: неявная декларация функции «luaL_setfuncs» [-Werror=implicit-function-declaration]
luaL_setfuncs(L, torch_Storage_(_), 0);
cc1: некоторые предупреждения считаются ошибками
make[2]: *** [CMakeFiles/cutorch.dir/build.make:67: CMakeFiles/cutorch.dir/Storage.c.o] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/cutorch.dir/all] Ошибка 2
make: *** [Makefile:128: all] Ошибка 2


petronny commented on 2016-09-09 07:00

I know it won't work with gcc6, so I set to use gcc5 in PKGBUILD.
Anyway, I'd better add the patch for gcc6. Thank you for it.

All comments