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

Git Clone URL: https://aur.archlinux.org/torch7-cutorch-git.git (read-only, click to copy)
Package Base: torch7-cutorch-git
Description: A CUDA backend for Torch7
Upstream URL: https://github.com/torch/cutorch
Licenses: BSD
Conflicts: torch7-cutorch
Provides: torch7-cutorch
Submitter: petronny
Maintainer: None
Last Packager: Levitating
Votes: 8
Popularity: 0.000000
First Submitted: 2016-08-28 13:17 (UTC)
Last Updated: 2023-05-11 19:12 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

zsrkmyn commented on 2017-09-23 18:04 (UTC)

`-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]. [1] https://git.archlinux.org/svntogit/community.git/tree/repos/community-x86_64/PKGBUILD?h=packages/python-pytorch#n53 torch7-cunn-git has the same problem as well.

edmeme commented on 2017-09-13 14:23 (UTC) (edited on 2017-09-13 14:26 (UTC) by edmeme)

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 https://www.reddit.com/r/archlinux/comments/6zrmn1/torch_on_arch/dmy58b5/

petronny commented on 2017-08-26 12:56 (UTC)

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

xico commented on 2017-08-22 12:15 (UTC)

Compilation fails with gcc5 due to the recent adding of `-fno-plt` in makepkg.conf. https://git.archlinux.org/svntogit/packages.git/commit/trunk/makepkg.conf?h=packages/pacman&id=0cd22d4454e0e1b3ae589b95274f808001465c15 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 program.

Akari commented on 2017-07-23 10:52 (UTC)

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: https://gist.githubusercontent.com/Akaricchi/a0b2827ebd7d6feae5b390f951fb36e6/raw/a590dad40361c1938252958e50ba5dd47d351ba2/0001-Arch-Linux-build-fix.patch Pull request link: https://github.com/torch/cutorch/pull/792

petronny commented on 2017-05-24 10:32 (UTC)

@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 https://github.com/arch4edu/arch4edu

Clyybber commented on 2017-05-15 18:03 (UTC)

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

knightpp commented on 2017-04-23 17:53 (UTC)

[ 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 Bug?