torch / torch7

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

LUA_PATHSEP ISSUE #1167

Open AlvaroN1997 opened 5 years ago

AlvaroN1997 commented 5 years ago

Got this problem after using this command:

TORCH_LUA_VERSION=LUA52 ./install.sh

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

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

gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c lua_cjson.c -o lua_cjson.o gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c strbuf.c -o strbuf.o gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c fpconv.c -o fpconv.o gcc -shared -o cjson.so -L/home/alvaro/torch/install/lib lua_cjson.o strbuf.o fpconv.o Updating manifest for /home/alvaro/torch/install/lib/luarocks/rocks lua-cjson 2.1devel-1 is now built and installed in /home/alvaro/torch/install/ (license: MIT)

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

gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/ gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/ gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/ gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/ gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/ gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/ gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/ gcc -O2 -fPIC -I/home/alvaro/torch/install/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/ gcc -shared -o libsundown.so -L/home/alvaro/torch/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/alvaro/torch/install/lib/luarocks/rocks sundown scm-1 is now built and installed in /home/alvaro/torch/install/ (license: BSD)

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

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

-- Configuring done -- Generating done -- Build files have been written to: /home/alvaro/torch/pkg/paths/build Scanning dependencies of target paths [ 50%] Building C object CMakeFiles/paths.dir/paths.c.o /home/alvaro/torch/pkg/paths/paths.c: In function ‘pushnexttemplate’: /home/alvaro/torch/pkg/paths/paths.c:1012:20: error: ‘LUA_PATHSEP’ undeclared (first use in this function); did you mean ‘LUA_DIRSEP’? while (path == LUA_PATHSEP) path++; / skip separators / ^~~ LUA_DIRSEP /home/alvaro/torch/pkg/paths/paths.c:1012:20: note: each undeclared identifier is reported only once for each function it appears in CMakeFiles/paths.dir/build.make:62: recipe for target 'CMakeFiles/paths.dir/paths.c.o' failed make[2]: [CMakeFiles/paths.dir/paths.c.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/paths.dir/all' failed make[1]: [CMakeFiles/paths.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

Error: Build error: Failed building.

HRezaei commented 6 months ago

vote up! I encounter the same error.