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

Error: Build error: Failed building. #72

Open
Wrongful opened this issue Jun 14, 2017 · 4 comments
Open

Error: Build error: Failed building. #72

Wrongful opened this issue Jun 14, 2017 · 4 comments

Comments

@Wrongful
Copy link

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?

@diamir310
Copy link

I am having the same issue

@chenjing98
Copy link

chenjing98 commented Jul 10, 2019

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?

@georged89
Copy link

@jainal09
Copy link

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

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

5 participants