1

I'm trying do command docker-compose -f dev.yml build in ansible playbook. But got the error command 'gcc' failed with exit status 4. I'm already trying to install the python-dev and python3-dev libs. Outside the playbook (from the shell) build is succefull.

More log info:

"Running setup.py install for psycopg2: started", 
"
Running setup.py install for psycopg2: finished with status 'done'", 
"  Running setup.py install for regex: started", 
"
Running setup.py install for regex: finished with status 'error'", 
"
Complete output from command /usr/local/bin/python3.5 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-7c_6j3bh/regex/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-bh121iai-record/install-record.txt --single-version-externally-managed --compile:", "
running install", "
running build", "
running build_py", "
creating build", "
creating build/lib.linux-x86_64-3.5", "
copying Python3/regex.py -> build/lib.linux-x86_64-3.5", "
copying Python3/_regex_core.py -> build/lib.linux-x86_64-3.5", "
copying Python3/test_regex.py -> build/lib.linux-x86_64-3.5", "
running build_ext", "
building '_regex' extension", "
creating build/temp.linux-x86_64-3.5", "
creating build/temp.linux-x86_64-3.5/Python3", "
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3  -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python3.5m -c   Python3/_regex.c -o build/temp.linux-x86_64-3.5/Python3/_regex.o", "
Python3/_regex.c: In function ‘do_best_fuzzy_match’:", "
Python3/_regex.c:16680:27: warning: comparison between signed and   unsigned integer expressions [-Wsign-compare]", "


for (i = 0; i < best_list.count; i++) {", "


^", "
Python3/_regex.c:16714:77: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]", "


if (state->total_errors < error_limit || i == 0 &&", "


^", "
gcc: internal compiler error: Killed (program cc1)", "
Please submit a full bug report,", "
with preprocessed source if appropriate.", "
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.", "
error: command 'gcc' failed with exit status 4", "
", "
----------------------------------------", "\u001b[91mCommand  \"/usr/local/bin/python3.5 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-7c_6j3bh/regex/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-bh121iai-record/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /tmp/pip-build-7c_6j3bh/regex/", "\u001b[0m"], "warnings": []}
1
  • 1
    Ensure that you have enough memory on the target box. Commented Oct 24, 2016 at 15:03

1 Answer 1

1

Thx to Konstantin Suvorov. My problem was in not enough memory. Then I'm stop the docker-compose with command docker-compose -f dev.yml stop before build command docker-compose -f dev.yml build

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.