torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

luarocks install fails #1115

Open LarryK348 opened 6 years ago

LarryK348 commented 6 years ago

I am building torch from using instructions for windows. The install always fails when running luarocks install. Failure is "Error: Failed move: could not delete T:/Torch/install/luarocks/paths/scm-1/lua/p aths/init.lua after copy", but watching the directories during build shows directory created and deleted successfully.

T:\tmp>luarocks install paths Installing https://raw.githubusercontent.com/torch/rocks/master/paths-scm-1.rock spec... Using https://raw.githubusercontent.com/torch/rocks/master/paths-scm-1.rockspec. .. switching to 'build' mode Cloning into 'paths'... remote: Counting objects: 18, done. remote: Compressing objects: 100% (16/16), done. rRemote: Total 18 (delta 0), reused 13 (delta 0), pack-reused 0 Receiving objects: 61% (11/18) Receiving objects: 100% (18/18), 14.46 KiB | 0 bytes/s, done. cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB=libluajit.lib -DLUA_INCDIR="T:/Torch/install/include" -DLUA_LIBDIR="T: /Torch/install/." -DLUADIR="T:/Torch/install/luarocks/paths/scm-1/lua" -DLIBDIR= "T:/Torch/install/luarocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="T:/Torch/ins tall/luarocks/paths/scm-1" && nmake

C:\Users\LARRY~1.A-C\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths>echo off

C:\Users\LARRY~1.A-C\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\build>ec ho off -- The C compiler identification is MSVC 19.10.25019.0 -- The CXX compiler identification is MSVC 19.10.25019.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/ 2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/ 2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi o/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi o/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

CMAKE_LINK_FLAGS

-- Build files have been written to: C:/Users/larry.A-CONCEPT/AppData/Local/Temp /luarocks_paths-scm-1-9356/paths/build

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved.

Scanning dependencies of target paths [ 50%] Building C object CMakeFiles/paths.dir/paths.c.obj paths.c C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(72): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(139): warning C4101: 'last': unreferenced local variable C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(216): warning C4267: '=': conversion from 'size_t' to 'int', possible loss o f data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(220): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(427): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(499): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(628): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-9356\paths\path s.c(728): warning C4267: 'initializing': conversion from 'size_t' to 'int', poss ible loss of data [100%] Linking C shared module libpaths.dll Creating library libpaths.lib and object libpaths.exp [100%] Built target paths cd build && nmake install

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved.

[100%] Built target paths Install the project... -- Install configuration: "Release" -- Installing: T:/Torch/install/luarocks/paths/scm-1/lua/paths/init.lua -- Installing: T:/Torch/install/luarocks/paths/scm-1/lib/libpaths.dll Warning: T:/Torch/install/lua/paths/init.lua is not tracked by this installation of LuaRocks. Moving it to T:/Torch/install/lua/paths/init.lua~~~ The directory name is invalid. The directory name is invalid.

Error: Failed move: could not delete T:/Torch/install/luarocks/paths/scm-1/lua/p aths/init.lua after copy.

T:\tmp>

tastyminerals commented 6 years ago

Are you using the official windows instructions because it looks like you do not if you are running your torch installation from windows cmd. Please follow this tutorial: https://github.com/torch/torch7/wiki/Windows

LarryK348 commented 6 years ago

Thank you for the reply.

(I have a batch file that controls the torch build to make sure all steps are executed.)

I am running from a VS command prompt as specified in “https://github.com/torch/torch7/wiki/Windowshttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftorch%2Ftorch7%2Fwiki%2FWindows&data=02%7C01%7C%7C79b1c6fe36074dbd416108d5491984b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636495296301911853&sdata=ruPe5sx7%2Bcn%2BeaSKsn6PmxXjYRNaTYyi53eErXuuRYM%3D&reserved=0”; however, these instructions are broken.

I:\inDepthFX\fromGithub\facebookresearch>BuildTorch.cmd

=== first setup environment setting environment for GIT setting environment for CMAKE


*** install Torch based on instructions from https://github.com/torch/torch7/wik i/Windows


=== === install LUA get LUA from Torch === try Torch version fatal: destination path 'luajit-rocks' already exists and is not an empty direct ory. -- Warning: Did not find file Compiler/MSVC-ASM -- LuaJIT Target: x64 -- Configuring done -- Generating done -- Build files have been written to: I:/inDepthFX/fromGithub/facebookresearch/pr ereq/luajit-rocks/build

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved.

[ 6%] Built target minilua [ 31%] Built target buildvm [ 62%] Built target libluajit [ 68%] Built target luajit [100%] Built target luajit-static -- Install configuration: "Release" -- Up-to-date: t:\Torch\install/include/luaconf.h -- Up-to-date: t:\Torch\install/include/lua.h -- Up-to-date: t:\Torch\install/include/lauxlib.h -- Up-to-date: t:\Torch\install/include/lualib.h -- Up-to-date: t:\Torch\install/include/lua.hpp -- Up-to-date: t:\Torch\install/include/luajit.h -- Up-to-date: t:\Torch\install/./libluajit.lib -- Up-to-date: t:\Torch\install/./libluajit.dll -- Up-to-date: t:\Torch\install/./luajit.exe -- Up-to-date: t:\Torch\install/lua/jit/bc.lua -- Up-to-date: t:\Torch\install/lua/jit/v.lua -- Up-to-date: t:\Torch\install/lua/jit/dump.lua -- Up-to-date: t:\Torch\install/lua/jit/dis_x86.lua -- Up-to-date: t:\Torch\install/lua/jit/dis_x64.lua -- Up-to-date: t:\Torch\install/lua/jit/dis_arm.lua -- Up-to-date: t:\Torch\install/lua/jit/dis_ppc.lua -- Up-to-date: t:\Torch\install/lua/jit/dis_mips.lua -- Up-to-date: t:\Torch\install/lua/jit/dis_mipsel.lua -- Up-to-date: t:\Torch\install/lua/jit/bcsave.lua -- Up-to-date: t:\Torch\install/lua/jit/bc.lua -- Up-to-date: t:\Torch\install/lua/jit/p.lua -- Up-to-date: t:\Torch\install/lua/jit/zone.lua -- Up-to-date: t:\Torch\install/lua/jit/vmdef.lua -- Up-to-date: t:\Torch\install/./tools/7z.dll -- Up-to-date: t:\Torch\install/./tools/libeay32.dll -- Up-to-date: t:\Torch\install/./tools/libiconv2.dll -- Up-to-date: t:\Torch\install/./tools/libintl3.dll -- Up-to-date: t:\Torch\install/./tools/libssl32.dll -- Up-to-date: t:\Torch\install/./tools/7z.exe -- Up-to-date: t:\Torch\install/./tools/cp.exe -- Up-to-date: t:\Torch\install/./tools/find.exe -- Up-to-date: t:\Torch\install/./tools/ls.exe -- Up-to-date: t:\Torch\install/./tools/md5sum.exe -- Up-to-date: t:\Torch\install/./tools/mkdir.exe -- Up-to-date: t:\Torch\install/./tools/mv.exe -- Up-to-date: t:\Torch\install/./tools/pwd.exe -- Up-to-date: t:\Torch\install/./tools/rmdir.exe -- Up-to-date: t:\Torch\install/./tools/test.exe -- Up-to-date: t:\Torch\install/./tools/uname.exe -- Up-to-date: t:\Torch\install/./tools/wget.exe -- Up-to-date: t:\Torch\install/lua/luarocks/add.lua -- Up-to-date: t:\Torch\install/lua/luarocks/admin_remove.lua -- Up-to-date: t:\Torch\install/lua/luarocks/build.lua -- Up-to-date: t:\Torch\install/lua/luarocks/build/builtin.lua -- Up-to-date: t:\Torch\install/lua/luarocks/build/cmake.lua -- Up-to-date: t:\Torch\install/lua/luarocks/build/command.lua -- Up-to-date: t:\Torch\install/lua/luarocks/build/make.lua -- Up-to-date: t:\Torch\install/lua/luarocks/cache.lua -- Up-to-date: t:\Torch\install/lua/luarocks/cfg.lua -- Up-to-date: t:\Torch\install/lua/luarocks/command_line.lua -- Up-to-date: t:\Torch\install/lua/luarocks/config_cmd.lua -- Up-to-date: t:\Torch\install/lua/luarocks/deps.lua -- Up-to-date: t:\Torch\install/lua/luarocks/dir.lua -- Up-to-date: t:\Torch\install/lua/luarocks/doc.lua -- Up-to-date: t:\Torch\install/lua/luarocks/download.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/cvs.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/git.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/git_file.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/git_http.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/git_https.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/hg.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/hg_http.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/hg_https.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/hg_ssh.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/sscm.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fetch/svn.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fs.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fs/lua.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fs/unix.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fs/unix/tools.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fs/win32.lua -- Up-to-date: t:\Torch\install/lua/luarocks/fs/win32/tools.lua -- Up-to-date: t:\Torch\install/lua/luarocks/help.lua -- Up-to-date: t:\Torch\install/lua/luarocks/index.lua -- Up-to-date: t:\Torch\install/lua/luarocks/install.lua -- Up-to-date: t:\Torch\install/lua/luarocks/lint.lua -- Up-to-date: t:\Torch\install/lua/luarocks/list.lua -- Up-to-date: t:\Torch\install/lua/luarocks/loader.lua -- Up-to-date: t:\Torch\install/lua/luarocks/make.lua -- Up-to-date: t:\Torch\install/lua/luarocks/make_manifest.lua -- Up-to-date: t:\Torch\install/lua/luarocks/manif.lua -- Up-to-date: t:\Torch\install/lua/luarocks/manif_core.lua -- Up-to-date: t:\Torch\install/lua/luarocks/new_version.lua -- Up-to-date: t:\Torch\install/lua/luarocks/pack.lua -- Up-to-date: t:\Torch\install/lua/luarocks/path.lua -- Up-to-date: t:\Torch\install/lua/luarocks/path_cmd.lua -- Up-to-date: t:\Torch\install/lua/luarocks/persist.lua -- Up-to-date: t:\Torch\install/lua/luarocks/purge.lua -- Up-to-date: t:\Torch\install/lua/luarocks/refresh_cache.lua -- Up-to-date: t:\Torch\install/lua/luarocks/remove.lua -- Up-to-date: t:\Torch\install/lua/luarocks/repos.lua -- Up-to-date: t:\Torch\install/lua/luarocks/require.lua -- Up-to-date: t:\Torch\install/lua/luarocks/search.lua -- Up-to-date: t:\Torch\install/lua/luarocks/show.lua -- Up-to-date: t:\Torch\install/lua/luarocks/tools/patch.lua -- Up-to-date: t:\Torch\install/lua/luarocks/tools/tar.lua -- Up-to-date: t:\Torch\install/lua/luarocks/tools/zip.lua -- Up-to-date: t:\Torch\install/lua/luarocks/type_check.lua -- Up-to-date: t:\Torch\install/lua/luarocks/unpack.lua -- Up-to-date: t:\Torch\install/lua/luarocks/upload.lua -- Up-to-date: t:\Torch\install/lua/luarocks/upload/api.lua -- Up-to-date: t:\Torch\install/lua/luarocks/upload/multipart.lua -- Up-to-date: t:\Torch\install/lua/luarocks/util.lua -- Up-to-date: t:\Torch\install/lua/luarocks/validate.lua -- Up-to-date: t:\Torch\install/lua/luarocks/write_rockspec.lua -- Up-to-date: t:\Torch\install/lua/luarocks/site_config.lua -- Up-to-date: t:\Torch\install/luarocks/config.lua -- Up-to-date: t:\Torch\install/./luarocks.bat -- Up-to-date: t:\Torch\install/./luarocks-admin.bat 1 file(s) copied. I:\inDepthFX\fromGithub\facebookresearch\prereq\blas_lapack\x64\libblas.lib I:\inDepthFX\fromGithub\facebookresearch\prereq\blas_lapack\x64\liblapack.lib 2 file(s) copied. I:\inDepthFX\fromGithub\facebookresearch\prereq\blas_lapack\x64\libblas.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\blas_lapack\x64\liblapack.dll 2 file(s) copied.

=== install Torch (torch7) === move to torch source and update 1 file(s) copied.

Missing dependencies for torch: paths >= 1.0 cwrap >= 1.0

Using https://raw.githubusercontent.com/torch/rocks/master/paths-scm-1.rockspec. .. switching to 'build' mode Cloning into 'paths'... remote: Counting objects: 18, done. remote: Compressing objects: 100% (16/16), done. rRemote: Total 18 (delta 0), reused 13 (delta 0), pack-reused 0 Receiving objects: 61% (11/18) Receiving objects: 100% (18/18), 14.46 KiB | 0 bytes/s, done. cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB=libluajit.lib -DLUA_INCDIR="T:/Torch/install/include" -DLUA_LIBDIR="T: /Torch/install/." -DLUADIR="T:/Torch/install/luarocks/paths/scm-1/lua" -DLIBDIR= "T:/Torch/install/luarocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="T:/Torch/ins tall/luarocks/paths/scm-1" && nmake

C:\Users\LARRY~1.A-C\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths>echo off

C:\Users\LARRY~1.A-C\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\build>ec ho off -- The C compiler identification is MSVC 19.10.25019.0 -- The CXX compiler identification is MSVC 19.10.25019.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/ 2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/ 2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi o/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi o/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

CMAKE_LINK_FLAGS

-- Build files have been written to: C:/Users/larry.A-CONCEPT/AppData/Local/Temp /luarocks_paths-scm-1-6878/paths/build

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved.

Scanning dependencies of target paths [ 50%] Building C object CMakeFiles/paths.dir/paths.c.obj paths.c C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(72): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(139): warning C4101: 'last': unreferenced local variable C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(216): warning C4267: '=': conversion from 'size_t' to 'int', possible loss o f data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(220): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(427): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(499): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(628): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data C:\Users\larry.A-CONCEPT\AppData\Local\Temp\luarocks_paths-scm-1-6878\paths\path s.c(728): warning C4267: 'initializing': conversion from 'size_t' to 'int', poss ible loss of data [100%] Linking C shared module libpaths.dll Creating library libpaths.lib and object libpaths.exp [100%] Built target paths cd build && nmake install

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved.

[100%] Built target paths Install the project... -- Install configuration: "Release" -- Installing: T:/Torch/install/luarocks/paths/scm-1/lua/paths/init.lua -- Installing: T:/Torch/install/luarocks/paths/scm-1/lib/libpaths.dll Warning: T:/Torch/install/lua/paths/init.lua is not tracked by this installation of LuaRocks. Moving it to T:/Torch/install/lua/paths/init.lua~~~ The directory name is invalid. The directory name is invalid.

Error: Failed installing dependency: https://raw.githubusercontent.com/torch/roc ks/master/paths-scm-1.rockspec - Failed move: could not delete T:/Torch/install/ luarocks/paths/scm-1/lua/paths/init.lua after copy. I:\inDepthFX\fromGithub\facebookresearch>

Watching the T:/Torch/install/luarocks/paths/scm-1/lua/paths folder during the build shows it created and deleted successfully.

Since those instructions were broken, I went to the other “official” windows instructions at “https://github.com/torch/distro/blob/master/win-files/README.md”. This seems to work better (at least lua/luarocks seems to install correctly), but still fails.

I:\inDepthFX\fromGithub\facebookresearch>BuildTorch /N

=== first setup environment setting environment for GIT setting environment for CMAKE


*** install Torch based on instructions from https://github.com/torch/distro/blo b/master/win-files/README.md


setting environment for NVIDIA CUDA setting environment for CONDA

=== install Torch === update torch source (I:\inDepthFX\fromGithub\facebookresearch\prereq\distro ) +++++++ Torch7 will be installed under t:\Torch\install with luajit-2.1, vs15 x6 4 +++++++ Bin: t:\Torch\install\bin +++++++ Lib: t:\Torch\install\lib +++++++ Inc: t:\Torch\install\include INFO: Could not find files for the given pattern(s). +++++++ Createing conda environment 'torch-vc14' for Torch7 dependencies

CondaValueError: prefix already exists: i:\indepthfx\3rdParty\CONDA\Anaconda3\en vs\torch-vc14

+++++++ Git clone luarocks for its tools +++++++ Installing luajit-2.1 minilua.c Creating library minilua.lib and object minilua.exp buildvm.c buildvm_asm.c buildvm_fold.c buildvm_lib.c buildvm_peobj.c Generating Code... Creating library buildvm.lib and object buildvm.exp lj_alloc.c lj_api.c lj_asm.c lj_bc.c lj_bcread.c lj_bcwrite.c lj_buf.c lj_carith.c lj_ccall.c lj_ccallback.c lj_cconv.c lj_cdata.c lj_char.c lj_clib.c lj_cparse.c lj_crecord.c lj_ctype.c lj_debug.c lj_dispatch.c lj_err.c Generating Code... Compiling... lj_ffrecord.c lj_func.c lj_gc.c lj_gdbjit.c lj_ir.c lj_lex.c lj_lib.c lj_load.c lj_mcode.c lj_meta.c lj_obj.c lj_opt_dce.c lj_opt_fold.c lj_opt_loop.c lj_opt_mem.c lj_opt_narrow.c lj_opt_sink.c lj_opt_split.c lj_parse.c lj_profile.c Generating Code... Compiling... lj_record.c lj_snap.c lj_state.c lj_str.c lj_strfmt.c lj_strfmt_num.c lj_strscan.c lj_tab.c lj_trace.c lj_udata.c lj_vmevent.c lj_vmmath.c lib_aux.c lib_base.c lib_bit.c lib_debug.c lib_ffi.c lib_init.c lib_io.c lib_jit.c Generating Code... Compiling... lib_math.c lib_os.c lib_package.c lib_string.c lib_table.c Generating Code... Creating library lua51.lib and object lua51.exp luajit.c Creating library luajit.lib and object luajit.exp

=== Successfully built LuaJIT for Windows/x64 === jit.gitignore jit\bc.lua jit\bcsave.lua jit\dis_arm.lua jit\dis_arm64.lua jit\dis_arm64be.lua jit\dis_mips.lua jit\dis_mips64.lua jit\dis_mips64el.lua jit\dis_mipsel.lua jit\dis_ppc.lua jit\dis_x64.lua jit\dis_x86.lua jit\dump.lua jit\p.lua jit\v.lua jit\vmdef.lua jit\zone.lua 18 file(s) copied. 1 file(s) copied. luajit.exe 1 file(s) copied. lua51.dll 1 file(s) copied. buildvm.lib lua51.lib luajit.lib minilua.lib 4 file(s) copied. 1 file(s) copied. 1 file(s) copied. 1 file(s) copied. 1 file(s) copied. +++++++ Installing luarocks LuaRocks 3.0.x installer.

======================== == Checking system... ==

Attempting to install without admin privileges... Looking for Lua interpreter checking t:\Torch\install Found luajit.exe, testing it... Interpreter found, now looking for link libraries... checking for t:\Torch\install\lua5.1.lib checking for t:\Torch\install\lua51.lib checking for t:\Torch\install\lua5.1.dll checking for t:\Torch\install\lua51.dll checking for t:\Torch\install\liblua.dll.a checking for t:\Torch\install\lib\lua5.1.lib checking for t:\Torch\install\lib\lua51.lib Found lua51.lib Link library found, now looking for headers... checking for t:\Torch\install\include\lua\5.1\lua.h checking for t:\Torch\install\include\lua51\lua.h checking for t:\Torch\install\include\lua5.1\lua.h checking for t:\Torch\install\include\lua.h Found lua.h Headers found, checking runtime to use... t:\Torch\install\bin\lua51.dll uses VCRUNTIME140.DLL as runtime Runtime check completed. Looking for Microsoft toolchain matching runtime VCRUNTIME140 and architecture x 86_64 checking: HKLM\Software\Microsoft\VisualStudio\14.0\Setup\VC Found: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\

========================== == System check results ==

Will configure LuaRocks with the following paths: LuaRocks : t:\Torch\install\luarocks Config file : t:\Torch\install\luarocks\config-5.1.lua Rocktree : t:\Torch\install\luarocks\systree

Lua interpreter : t:\Torch\install\bin\luajit.exe binaries : t:\Torch\install\bin libraries : t:\Torch\install\lib includes : t:\Torch\install\include architecture: x86_64 binary link : lua51.lib with runtime VCRUNTIME140.dll

Compiler : Microsoft, using; call "C:\Program Files (x86)\Microsoft Visua l Studio 14.0\VC\bin\amd64\vcvars64.bat"

============================ == Installing LuaRocks... ==

Removing t:\Torch\install\luarocks...

Installing LuaRocks in t:\Torch\install\luarocks... Created LuaRocks command: t:\Torch\install\luarocks\luarocks.bat Created LuaRocks command: t:\Torch\install\luarocks\luarocks-admin.bat

Configuring LuaRocks...


WARNING LuaRocks site_config file already exists: 'site_config_5_1.lua'. The old file has been renamed to 'site_config_5_1.lua.bak'


Created LuaRocks site-config file: t:\Torch\install\luarocks\lua\luarocks\core\s ite_config_5_1.lua


WARNING LuaRocks config file already exists: 't:\Torch\install\luarocks\ config-5.1.lua'. The old file has been renamed to 'config-5.1.lua.bak'


Created LuaRocks config file: t:\Torch\install\luarocks\config-5.1.lua

Creating rocktrees... Created system rocktree : "t:\Torch\install\luarocks\systree" Local user rocktree exists : "C:\Users\larry.A-CONCEPT\AppData\Roaming\LuaRocks"

============================ == LuaRocks is installed! ==

You may want to add the following elements to your paths; Lua interpreter; PATH : t:\Torch\install\bin PATHEXT : .LUA LuaRocks; PATH : t:\Torch\install\luarocks LUA_PATH : t:\Torch\install\luarocks\lua\?.lua;t:\Torch\install\luarocks\lua \?\init.lua Local user rocktree (Note: %APPDATA% is user dependent); PATH : %APPDATA%\LuaRocks\bin LUA_PATH : %APPDATA%\LuaRocks\share\lua\5.1\?.lua;%APPDATA%\LuaRocks\share\l ua\5.1\?\init.lua LUA_CPATH: %APPDATA%\LuaRocks\lib\lua\5.1\?.dll System rocktree PATH : t:\Torch\install\luarocks\systree\bin LUA_PATH : t:\Torch\install\luarocks\systree\share\lua\5.1\?.lua;t:\Torch\in stall\luarocks\systree\share\lua\5.1\?\init.lua LUA_CPATH: t:\Torch\install\luarocks\systree\lib\lua\5.1\?.dll

Note that the %APPDATA% element in the paths above is user specific and it MUST be replaced by its actual value. For the current user that value is: C:\Users\larry.A-CONCEPT\AppData\Roaming.

+++++++ Installing wineditline for trepl package SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = c:/progra~1/wget/etc/wgetrc File `wineditline.zip' already there; not retrieving. -- Configuring done -- Generating done -- Build files have been written to: I:/inDepthFX/fromGithub/facebookresearch/pr ereq/distro/win-files/3rd/wineditline-2.201/build

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved.

[ 33%] Built target edit_static [ 50%] Built target edit_test_dll [ 83%] Built target edit [100%] Built target edit_test Install the project... -- Install configuration: "Release" -- Installing: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/wineditline-2.201/bin64/edit.lib -- Installing: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/wineditline-2.201/bin64/edit.dll -- Installing: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/wineditline-2.201/bin64/edit_test.exe -- Installing: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/wineditline-2.201/bin64/edit_test_dll.exe -- Installing: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/wineditline-2.201/lib64/edit_static.lib -- Up-to-date: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/wineditline-2.201/include/editline/readline.h +++++++ Installing dlfcn-win32 for thread package -- Configuring done -- Generating done -- Build files have been written to: I:/inDepthFX/fromGithub/facebookresearch/pr ereq/distro/win-files/3rd/dlfcn-win32/build

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved.

[100%] Built target dl Install the project... -- Install configuration: "Release" -- Up-to-date: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/dlfcn-win32/lib/dl.lib -- Up-to-date: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/dlfcn-win32/bin/dl.dll -- Up-to-date: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/dlfcn-win32/include/dlfcn.h -- Up-to-date: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/dlfcn-win32/share/dlfcn-win32/dlfcn-win32-targets.cmake -- Installing: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/dlfcn-win32/share/dlfcn-win32/dlfcn-win32-targets-release.cmake -- Up-to-date: I:/inDepthFX/fromGithub/facebookresearch/prereq/distro/win-files/ 3rd/dlfcn-win32/share/dlfcn-win32/dlfcn-win32-config.cmake I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\dlfcn-win 32\bin\dl.dll 1 file(s) copied. +++++++ Downloading graphviz for graph package SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = c:/progra~1/wget/etc/wgetrc File `graphviz-2.38_x64.tar.gz' already there; not retrieving.

7-Zip 9.10 beta Copyright (c) 1999-2009 Igor Pavlov 2009-12-22

Processing archive: graphviz-2.38_x64.tar.gz

Extracting graphviz-2.38_x64.tar

Everything is Ok

Size: 93288960 Compressed: 14725733 I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\acyclic.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\ANN.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\bcomps.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\cairo.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\ccomps.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\cdt.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\cgraph.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\config6 I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\diffimg.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\dijkstra.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\dot.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\dotty.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\edgepaint.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\fontconfig.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gc.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gd.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\glib-2.0.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gml2gv.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gmodule-2.0.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gobject-2.0.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\graphml2gv.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gts-0.7.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gv2gml.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvc.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvcolor.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvedit.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvgen.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvmap.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvpack.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvplugin_core.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvplugin_dot_layout.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvplugin_gd.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvplugin_gdiplus.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvplugin_neato_layout.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvplugin_pango.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gvpr.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\gxl2gv.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\harfbuzz.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\iconv.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\jpeg.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\lefty.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\libexpat.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\libexpatw.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\LibFontConfig.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\libiconv.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\libintl.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\lneato.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\ltdl.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\mingle.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\mm2gv.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\nop.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\pango-1.0.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\pangocairo-1.0.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\pangoft2-1.0.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\pangowin32-1.0.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\Pathplan.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\pixman-1.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\prune.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\sccmap.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\tred.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\unflatten.exe I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\vmalloc.dll I:\inDepthFX\fromGithub\facebookresearch\prereq\distro.\win-files\3rd\graphviz- 2.38_x64\bin\zlib1.dll 63 file(s) copied. +++++++ Creating torch-activate.cmd luajit.cmd luarocks.cmd cmake.cmd +++++++ Setup succeed! +++++++ Updating submodules +++++++ Installing common lua packages


Visual Studio 2017 Developer Command Prompt v15.0.26430.16 Copyright (c) 2017 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: 'x64'

Error: File not found: rockspecs\luafilesystem-1.6.3-1.rockspec +++++++ Installation error!

I appreciate any help you can provide to resolve this problem.

Sincerely, Larry Kimminau

[Description: ac logo] marcom, creative services, web & software development Larry Kimminau 408.371.3962 x201 408.371.3823 (fax) http://www.analyticconcepts.comhttp://www.analyticconcepts.com/

From: tastyminerals [mailto:notifications@github.com] Sent: Friday, December 22, 2017 12:54 AM To: torch/torch7 Cc: Larry Kimminau; Author Subject: Re: [torch/torch7] luarocks install fails (#1115)

Are you using the official windows instructions because it looks like you do not if you are running your torch installation from windows cmd. Please follow this tutorial: https://github.com/torch/torch7/wiki/Windowshttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftorch%2Ftorch7%2Fwiki%2FWindows&data=02%7C01%7C%7C79b1c6fe36074dbd416108d5491984b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636495296301911853&sdata=ruPe5sx7%2Bcn%2BeaSKsn6PmxXjYRNaTYyi53eErXuuRYM%3D&reserved=0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftorch%2Ftorch7%2Fissues%2F1115%23issuecomment-353552566&data=02%7C01%7C%7C79b1c6fe36074dbd416108d5491984b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636495296301911853&sdata=ansPeyQ6oZJKY7nXHTvgPuTpYfDVw5p3BJCNfqghZ1c%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGBunJ2Rm7iLuLzULKWHDMnPmpHZZHReks5tC24cgaJpZM4RKNsf&data=02%7C01%7C%7C79b1c6fe36074dbd416108d5491984b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636495296301911853&sdata=aRiX4lxPAVktvM5%2BKPQ1MvZy4QbRG3DK0vLnmIfC7Bs%3D&reserved=0.

LarryK348 commented 6 years ago

This issue appears to be caused by calls to vcvarsall.bat at line 7 in torch-activate.cmd. Commenting the line: for /f "delims=" %%i in ('call echo %%VS150COMNTOOLS%%') do call "%%i....\VC\Auxiliary\Build\vcvarsall.bat" x64 in torch-activate.cmd allowed install.bat to complete successfully.

I'm not sure how torch-activate.cmd is created but it should be fixed.