hughperkins / distro-cl

OpenCL Torch
147 stars 17 forks source link

build error ubuntu 16.x Could not satisfy dependency: sys >= 1.0 #52

Open gateway opened 5 years ago

gateway commented 5 years ago

I'm trying to install torch-cl since Im running an amd gpu and cant seem to get the ROCM torch to build.

when running ./install.sh it bails out on missing dependency sys.

Any idea whats wrong?

gateway@gateway-evils:~/torch-cl$ ./install.sh 
Prefix set to /home/gateway/torch-cl/install
Installing Lua version: LUAJIT21
Installing common Lua packages
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c src/lfs.c -o src/lfs.o
gcc -shared -o lfs.so -L/home/gateway/torch-cl/install/lib src/lfs.o
Updating manifest for /home/gateway/torch-cl/install/lib/luarocks/rocks
luafilesystem 1.6.3-1 is now built and installed in /home/gateway/torch-cl/install/ (license: MIT/X11)

Updating manifest for /home/gateway/torch-cl/install/lib/luarocks/rocks
penlight scm-1 is now built and installed in /home/gateway/torch-cl/install/ (license: MIT/X11)

gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c lua_cjson.c -o lua_cjson.o
In file included from lua_cjson.c:47:0:
fpconv.h:15:20: warning: inline function ‘fpconv_init’ declared but never defined
 extern inline void fpconv_init();
                    ^
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c strbuf.c -o strbuf.o
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c fpconv.c -o fpconv.o
gcc -shared -o cjson.so -L/home/gateway/torch-cl/install/lib lua_cjson.o strbuf.o fpconv.o
Updating manifest for /home/gateway/torch-cl/install/lib/luarocks/rocks
lua-cjson 2.1devel-1 is now built and installed in /home/gateway/torch-cl/install/ (license: MIT)

Installing core Torch packages
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c test.c -o test.o
gcc -shared -o ffi/libtest.so -L/home/gateway/torch-cl/install/lib test.o
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c call.c -o call.o -Idynasm
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c ctype.c -o ctype.o -Idynasm
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c ffi.c -o ffi.o -Idynasm
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c parser.c -o parser.o -Idynasm
gcc -shared -o ffi.so -L/home/gateway/torch-cl/install/lib call.o ctype.o ffi.o parser.o
Updating manifest for /home/gateway/torch-cl/install/lib/luarocks/rocks
luaffi scm-1 is now built and installed in /home/gateway/torch-cl/install/ (license: BSD)

gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/gateway/torch-cl/install/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/
gcc -shared -o libsundown.so -L/home/gateway/torch-cl/install/lib src/autolink.o src/buffer.o src/markdown.o src/stack.o html/houdini_href_e.o html/houdini_html_e.o html/html.o html/html_smartypants.o
Updating manifest for /home/gateway/torch-cl/install/lib/luarocks/rocks
sundown scm-1 is now built and installed in /home/gateway/torch-cl/install/ (license: BSD)

Updating manifest for /home/gateway/torch-cl/install/lib/luarocks/rocks
cwrap scm-1 is now built and installed in /home/gateway/torch-cl/install/ (license: BSD)

Warning: unmatched variable LUALIB
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB= -DLUA_INCDIR="/home/gateway/torch-cl/install/include" -DLUA_LIBDIR="/home/gateway/torch-cl/install/lib" -DLUADIR="/home/gateway/torch-cl/install/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="/home/gateway/torch-cl/install/lib/luarocks/rocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/home/gateway/torch-cl/install/lib/luarocks/rocks/paths/scm-1" && make

-- Configuring done
-- Generating done
-- Build files have been written to: /home/gateway/torch-cl/pkg/paths/build
[100%] Built target paths
cd build && make install
[100%] Built target paths
Install the project...
-- Install configuration: "Release"
-- Installing: /home/gateway/torch-cl/install/lib/luarocks/rocks/paths/scm-1/lua/paths/init.lua
-- Installing: /home/gateway/torch-cl/install/lib/luarocks/rocks/paths/scm-1/lib/libpaths.so
Updating manifest for /home/gateway/torch-cl/install/lib/luarocks/rocks
paths scm-1 is now built and installed in /home/gateway/torch-cl/install/ (license: BSD)

Missing dependencies for torch:
sys >= 1.0

Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/hughperkins/rocks-cl/master - Failed downloading https://raw.githubusercontent.com/hughperkins/rocks-cl/master/manifest - /home/gateway/.cache/luarocks/https___raw.githubusercontent.com_hughperkins_rocks-cl_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /home/gateway/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /home/gateway/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

Error: Could not satisfy dependency: sys >= 1.0
gennaro-arch commented 5 years ago

Me toooo