FastMaskRCNN icon indicating copy to clipboard operation
FastMaskRCNN copied to clipboard

When I do "Go to ./libs and run make", the error happens :error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Open ycui123 opened this issue 7 years ago • 4 comments

Hi everyone,

I try to run make under ./libs, but it did not work.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Does someone have the same problem?

ycui123 avatar Jul 29 '17 16:07 ycui123

Compiler crash traceback from this point on: File "/home/ycui/.local/lib/python2.7/site-packages/Cython/Compiler/Nodes.py", line 7396, in analyse_declarations self.module_name, self.pos, relative_level=0 if self.is_absolute else -1) File "/home/ycui/.local/lib/python2.7/site-packages/Cython/Compiler/Symtab.py", line 1191, in find_module module_name, relative_to=relative_to, pos=pos, absolute_fallback=absolute_fallback) File "/home/ycui/.local/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 178, in find_module pxd_pathname = self.find_pxd_file(qualified_name, pos) File "/home/ycui/.local/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 239, in find_pxd_file pxd = self.search_include_directories(qualified_name, ".pxd", pos, sys_path=sys_path) File "/home/ycui/.local/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 280, in search_include_directories tuple(self.include_directories), qualified_name, suffix, pos, include, sys_path) File "/home/ycui/.local/lib/python2.7/site-packages/Cython/Utils.py", line 30, in wrapper res = cache[args] = f(*args) File "/home/ycui/.local/lib/python2.7/site-packages/Cython/Utils.py", line 148, in search_include_directories path = os.path.join(dir, dotted_filename) File "/usr/lib/python2.7/posixpath.py", line 73, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 12: ordinal not in range(128) building 'boxes.cython_bbox' extension {'gcc': ['-Wno-cpp', '-Wno-unused-function']} x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/ycui/.local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c boxes/bbox.c -o build/temp.linux-x86_64-2.7/boxes/bbox.o -Wno-cpp -Wno-unused-function boxes/bbox.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. #error Do not use this file, it is the result of a failed Cython compilation. ^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1

ycui123 avatar Jul 29 '17 17:07 ycui123

I got a same problem on Ubuntu 14.04. Have you found the solution of this problem?

Jinnaouc avatar Oct 25 '17 00:10 Jinnaouc

@ycui123 @Jinnaouc your project directory maybe contains non-ascii chracters. you can resolve this problem by adding code to posixpath.py file:

import sys
reload(sys)
sys.setdefaultencoding('utf8')

aaronshan avatar Nov 16 '17 07:11 aaronshan

@aaronshan This code is for python2. My python version is python3.6. "setdefaultencoding('utf8')" is stoped using in python3

Jinnaouc avatar Nov 18 '17 06:11 Jinnaouc