densecap icon indicating copy to clipboard operation
densecap copied to clipboard

Error: Build error: Failed building.

Open Wrongful opened this issue 8 years ago • 4 comments

Hello! I'm not the most experienced programmer, so this may have an easy solution, but whenever I run luarocks install https://raw.githubusercontent.com/qassemoquab/stnbhwd/master/stnbhwd-scm-1.rockspec It runs for a bit, before coming up with the following error:

/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ CMake Error at custn_generated_init.cu.o.cmake:266 (message): Error generating file /tmp/luarocks_stnbhwd-scm-1-1232/stnbhwd/build/CMakeFiles/custn.dir//./custn_generated_init.cu.o

CMakeFiles/custn.dir/build.make:63: recipe for target 'CMakeFiles/custn.dir/custn_generated_init.cu.o' failed make[2]: *** [CMakeFiles/custn.dir/custn_generated_init.cu.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/custn.dir/all' failed make[1]: *** [CMakeFiles/custn.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

Error: Build error: Failed building.

Every other dependency, including GPU support and the pretrained model, seems to install just fine. Any tips?

Wrongful avatar Jun 14 '17 17:06 Wrongful

I am having the same issue

diamir310 avatar Jul 04 '17 10:07 diamir310

I have got a similar one when I run luarocks install async. The error appears to be:

Installing https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec... switching to 'build' mode Cloning into 'async'... remote: Enumerating objects: 210, done. remote: Counting objects: 100% (210/210), done. remote: Compressing objects: 100% (184/184), done. remote: Total 210 (delta 19), reused 172 (delta 19), pack-reused 0 Receiving objects: 100% (210/210), 403.80 KiB | 113.00 KiB/s, done. Resolving deltas: 100% (19/19), done. make LUA_BINDIR=/home/distro-cuda10/install/bin LUA_LIBDIR=/home/distro-cuda10/install/lib LUA_INCDIR=/home/distro-cuda10/install/include basename: missing operand Try 'basename --help' for more information. make -C lhttp_parser LUA= LUA_BINDIR=/home/distro-cuda10/install/bin LUA_LIBDIR=/home/distro-cuda10/install/lib LUA_INCDIR=/home/distro-cuda10/install/include make[1]: Entering directory '/tmp/luarocks_async-scm-1-9161/async/lhttp_parser' cc -c lhttp_parser.c -o lhttp_parser.o -Ihttp-parser -I /home/distro-cuda10/install/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror -fPIC CPPFLAGS=-fPIC make -C http-parser http_parser.o make[2]: Entering directory '/tmp/luarocks_async-scm-1-9161/async/lhttp_parser/http-parser' cc -fPIC -I. -DHTTP_PARSER_STRICT=0 -Wall -Wextra -Werror -O3 -c http_parser.c http_parser.c: In function ‘http_parser_parse_url’: http_parser.c:2093:18: error: this statement may fall through [-Werror=implicit-fallthrough=] found_at = 1; ~~~~~~~~~^~~ http_parser.c:2096:7: note: here case s_req_server: ^~~~ cc1: all warnings being treated as errors Makefile:35: recipe for target 'http_parser.o' failed make[2]: *** [http_parser.o] Error 1 make[2]: Leaving directory '/tmp/luarocks_async-scm-1-9161/async/lhttp_parser/http-parser' Makefile:17: recipe for target 'http-parser/http_parser.o' failed make[1]: *** [http-parser/http_parser.o] Error 2 make[1]: Leaving directory '/tmp/luarocks_async-scm-1-9161/async/lhttp_parser' Makefile:6: recipe for target 'lhttp_parser/lhttp_parser.so' failed make: *** [lhttp_parser/lhttp_parser.so] Error 2 Error: Build error: Failed building.

Have you solved this problem now?

chenjing98 avatar Jul 10 '19 02:07 chenjing98

https://stackoverflow.com/questions/48940431/luarocks-fails-install-async

georged89 avatar May 05 '20 20:05 georged89

Hey, Check this docker image I created for running dense cap in gpu! https://hub.docker.com/r/jainal09/densecap_gpu

For Cpu version. Use this docker file. https://github.com/runwayml/alpha_models/blob/master/densecap/Dockerfile

jainal09 avatar Jul 30 '20 22:07 jainal09