Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.sh failed on Ubuntu 12.04 #44

Closed
erythronelumbo opened this issue Oct 6, 2015 · 4 comments
Closed

install.sh failed on Ubuntu 12.04 #44

erythronelumbo opened this issue Oct 6, 2015 · 4 comments

Comments

@erythronelumbo
Copy link

I got some errors while installing Torch:


Prefix set to /home/alumno/torch/install
Submodule 'exe/env' () registered for path 'exe/env'
Submodule 'exe/luajit-rocks' () registered for path 'exe/luajit-rocks'
Submodule 'exe/qtlua' () registered for path 'exe/qtlua'
Submodule 'exe/trepl' () registered for path 'exe/trepl'
Submodule 'extra/argcheck' () registered for path 'extra/argcheck'
Submodule 'extra/audio' () registered for path 'extra/audio'
Submodule 'extra/cudnn' () registered for path 'extra/cudnn'
Submodule 'extra/cunn' () registered for path 'extra/cunn'
Submodule 'extra/cunnx' () registered for path 'extra/cunnx'
Submodule 'extra/cutorch' () registered for path 'extra/cutorch'
Submodule 'extra/fftw3' () registered for path 'extra/fftw3'
Submodule 'extra/graph' () registered for path 'extra/graph'
Submodule 'extra/graphicsmagick' () registered for path 'extra/graphicsmagick'
Submodule 'extra/iTorch' () registered for path 'extra/iTorch'
Submodule 'extra/nn' () registered for path 'extra/nn'
Submodule 'extra/nngraph' () registered for path 'extra/nngraph'
Submodule 'extra/nnx' () registered for path 'extra/nnx'
Submodule 'extra/sdl2' () registered for path 'extra/sdl2'
Submodule 'extra/signal' () registered for path 'extra/signal'
Submodule 'extra/threads' () registered for path 'extra/threads'
Submodule 'pkg/cwrap' () registered for path 'pkg/cwrap'
Submodule 'pkg/dok' () registered for path 'pkg/dok'
Submodule 'pkg/gnuplot' () registered for path 'pkg/gnuplot'
Submodule 'pkg/image' () registered for path 'pkg/image'
Submodule 'pkg/optim' () registered for path 'pkg/optim'
Submodule 'pkg/paths' () registered for path 'pkg/paths'
Submodule 'pkg/qttorch' () registered for path 'pkg/qttorch'
Submodule 'pkg/sundown' () registered for path 'pkg/sundown'
Submodule 'pkg/sys' () registered for path 'pkg/sys'
Submodule 'pkg/torch' () registered for path 'pkg/torch'
Submodule 'pkg/xlua' () registered for path 'pkg/xlua'
Installing Lua version: LUAJIT21
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_BC_POW':
buildvm_x86.dasc:(.text+0x84b): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log':
buildvm_x86.dasc:(.text+0x269c): undefined reference to `lj_wrap_log'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log10':
buildvm_x86.dasc:(.text+0x26cb): undefined reference to `lj_wrap_log10'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_exp':
buildvm_x86.dasc:(.text+0x26fa): undefined reference to `lj_wrap_exp'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sin':
buildvm_x86.dasc:(.text+0x2729): undefined reference to `lj_wrap_sin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cos':
buildvm_x86.dasc:(.text+0x2758): undefined reference to `lj_wrap_cos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tan':
buildvm_x86.dasc:(.text+0x2787): undefined reference to `lj_wrap_tan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_asin':
buildvm_x86.dasc:(.text+0x27b6): undefined reference to `lj_wrap_asin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_acos':
buildvm_x86.dasc:(.text+0x27e5): undefined reference to `lj_wrap_acos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan':
buildvm_x86.dasc:(.text+0x2814): undefined reference to `lj_wrap_atan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sinh':
buildvm_x86.dasc:(.text+0x2843): undefined reference to `lj_wrap_sinh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cosh':
buildvm_x86.dasc:(.text+0x2872): undefined reference to `lj_wrap_cosh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tanh':
buildvm_x86.dasc:(.text+0x28a1): undefined reference to `lj_wrap_tanh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_pow':
buildvm_x86.dasc:(.text+0x28e5): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan2':
buildvm_x86.dasc:(.text+0x2929): undefined reference to `lj_wrap_atan2'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_fmod':
buildvm_x86.dasc:(.text+0x296d): undefined reference to `lj_wrap_fmod'
collect2: error: ld returned 1 exit status
make[2]: *** [exe/luajit-rocks/luajit-2.1/luajit] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2
Installing common Lua packages
./install.sh: línea 71: /home/alumno/torch/install/bin/luarocks: No existe el archivo o el directorio
./install.sh: línea 72: /home/alumno/torch/install/bin/luarocks: No existe el archivo o el directorio
./install.sh: línea 73: /home/alumno/torch/install/bin/luarocks: No existe el archivo o el directorio
Installing core Torch packages

Any help?

@romashkinvi
Copy link

I have the same problem on Ubuntu 14.04 using torch/distro 7b7156a (Nov 7, 2015) and another one (Oct 21, 2015)
I hope that install.log may be helpful

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Found readline library
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for sin in m
-- Looking for sin in m - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Performing Test LJ_TARGET_X64
-- Performing Test LJ_TARGET_X64 - Failed
-- Performing Test LJ_TARGET_X86
-- Performing Test LJ_TARGET_X86 - Success
-- LuaJIT Target: x86
-- LuaJIT target x86
-- Performing Test LJ_ARCH_BITS_64
-- Performing Test LJ_ARCH_BITS_64 - Failed
-- Performing Test LJ_HASJIT_1
-- Performing Test LJ_HASJIT_1 - Success
-- Performing Test LJ_HASFFI_1
-- Performing Test LJ_HASFFI_1 - Success
-- Performing Test LJ_DUALNUM_1
-- Performing Test LJ_DUALNUM_1 - Failed
-- Performing Test LJ_ARCH_HASFPU_1
-- Performing Test LJ_ARCH_HASFPU_1 - Success
-- Performing Test LJ_ABI_SOFTFP_1
-- Performing Test LJ_ABI_SOFTFP_1 - Failed
-- Performing Test __SSE2___1
-- Performing Test __SSE2___1 - Failed
-- Looking for sin in m
-- Looking for sin in m - found
-- Found Wget: /usr/bin/wget  
-- Found MD5: /usr/bin/md5sum  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/test/torch/build
Scanning dependencies of target minilua
[  3%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/minilua.dir/src/host/minilua.c.o
Linking C executable minilua
[  3%] Built target minilua
[  7%] Generating buildvm_arch.h
Scanning dependencies of target buildvm
[ 11%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/buildvm.dir/src/host/buildvm.c.o
[ 15%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/buildvm.dir/src/host/buildvm_asm.c.o
[ 19%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/buildvm.dir/src/host/buildvm_peobj.c.o
[ 23%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/buildvm.dir/src/host/buildvm_lib.c.o
[ 26%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/buildvm.dir/src/host/buildvm_fold.c.o
Linking C executable buildvm
[ 26%] Built target buildvm
[ 30%] Generating vmdef.lua
[ 34%] Generating lj_vm.s
[ 38%] Generating lj_ffdef.h
[ 42%] Generating lj_bcdef.h
[ 46%] Generating lj_libdef.h
[ 50%] Generating lj_recdef.h
[ 53%] Generating lj_folddef.h
Scanning dependencies of target libluajit
[ 57%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/libluajit.dir/src/ljamalg.c.o
[ 61%] Building ASM object exe/luajit-rocks/luajit-2.1/CMakeFiles/libluajit.dir/lj_vm.s.o
Linking C shared library libluajit.so
[ 61%] Built target libluajit
Scanning dependencies of target luajit
[ 65%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/src/luajit.c.o
[ 69%] Building C object exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/src/ljamalg.c.o
[ 73%] Building ASM object exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/lj_vm.s.o
Linking C executable luajit

@romashkinvi
Copy link

I've tryed to chage line 58 of install.sh and switch LuaJIT version checking off

cmake .. -DCMAKE_INSTALL_PREFIX="${PREFIX}" -DCMAKE_BUILD_TYPE=Release -DWITH_${TORCH_LUA_VERSION}=OFF 2>&1 >>$PREFIX/install.log || exit 1

And installation was completed successfully. But LuaJIT version is:

luajit -v
LuaJIT 2.0.4 -- Copyright (C) 2005-2015 Mike Pall. http://luajit.org/

@Padmahas
Copy link

Padmahas commented Feb 2, 2016

Another solution I found here is run ./install command with LUA version like this
TORCH_LUA_VERSION=LUA52 ./install.sh

@kirk86
Copy link

kirk86 commented Aug 24, 2016

after @soumith's suggestion the above command also works with intel compilers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants