2015-10-09 20:13:05 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
Travis: build rpython twice to workaround errors.
To get around this error which often happens in step9 build after
first 8 steps have been built:
.......RPython traceback:
File "rpython_jit_metainterp_compile.c", line 21356, in send_loop_to_backend
File "rpython_jit_backend_x86_assembler.c", line 1905, in Assembler386_assemble_loop
File "rpython_jit_backend_x86_regalloc.c", line 309, in RegAlloc_prepare_loop
File "rpython_jit_backend_x86_regalloc.c", line 978, in RegAlloc__prepare
File "rpython_jit_backend_llsupport_regalloc.c", line 6519, in compute_vars_longevity
Fatal RPython error: AssertionError
Makefile:14: recipe for target 'step9_try' failed
2015-10-10 18:34:46 +03:00
|
|
|
BUILD_IMPL=${BUILD_IMPL:-${IMPL}}
|
|
|
|
|
2015-10-10 06:45:48 +03:00
|
|
|
# If NO_DOCKER is blank then launch use a docker image, otherwise
|
|
|
|
# use the Travis image/tools directly.
|
|
|
|
if [ -z "${NO_DOCKER}" ]; then
|
2015-10-09 20:13:05 +03:00
|
|
|
impl=$(echo "${IMPL}" | tr '[:upper:]' '[:lower:]')
|
2015-10-10 22:46:42 +03:00
|
|
|
img_impl=$(echo "${BUILD_IMPL}" | tr '[:upper:]' '[:lower:]')
|
2015-10-09 20:13:05 +03:00
|
|
|
|
|
|
|
docker pull kanaka/mal-test-${impl}
|
2015-10-10 22:46:42 +03:00
|
|
|
if [ "${impl}" != "${img_impl}" ]; then
|
|
|
|
docker pull kanaka/mal-test-${img_impl}
|
2015-10-09 20:13:05 +03:00
|
|
|
fi
|
Travis: build rpython twice to workaround errors.
To get around this error which often happens in step9 build after
first 8 steps have been built:
.......RPython traceback:
File "rpython_jit_metainterp_compile.c", line 21356, in send_loop_to_backend
File "rpython_jit_backend_x86_assembler.c", line 1905, in Assembler386_assemble_loop
File "rpython_jit_backend_x86_regalloc.c", line 309, in RegAlloc_prepare_loop
File "rpython_jit_backend_x86_regalloc.c", line 978, in RegAlloc__prepare
File "rpython_jit_backend_llsupport_regalloc.c", line 6519, in compute_vars_longevity
Fatal RPython error: AssertionError
Makefile:14: recipe for target 'step9_try' failed
2015-10-10 18:34:46 +03:00
|
|
|
if [ "${BUILD_IMPL}" = "rpython" ]; then
|
2015-10-12 07:27:02 +03:00
|
|
|
# rpython often fails on step9 in compute_vars_longevity
|
|
|
|
# so build step9, then continue wit the full build
|
2015-10-10 22:46:42 +03:00
|
|
|
docker run -it -u $(id -u) -v `pwd`:/mal kanaka/mal-test-${img_impl} \
|
2015-10-12 07:27:02 +03:00
|
|
|
make -C ${BUILD_IMPL} step9_try || true
|
Travis: build rpython twice to workaround errors.
To get around this error which often happens in step9 build after
first 8 steps have been built:
.......RPython traceback:
File "rpython_jit_metainterp_compile.c", line 21356, in send_loop_to_backend
File "rpython_jit_backend_x86_assembler.c", line 1905, in Assembler386_assemble_loop
File "rpython_jit_backend_x86_regalloc.c", line 309, in RegAlloc_prepare_loop
File "rpython_jit_backend_x86_regalloc.c", line 978, in RegAlloc__prepare
File "rpython_jit_backend_llsupport_regalloc.c", line 6519, in compute_vars_longevity
Fatal RPython error: AssertionError
Makefile:14: recipe for target 'step9_try' failed
2015-10-10 18:34:46 +03:00
|
|
|
fi
|
2015-10-10 22:46:42 +03:00
|
|
|
docker run -it -u $(id -u) -v `pwd`:/mal kanaka/mal-test-${img_impl} \
|
|
|
|
make -C ${BUILD_IMPL}
|
2015-10-10 06:45:48 +03:00
|
|
|
else
|
Travis: build rpython twice to workaround errors.
To get around this error which often happens in step9 build after
first 8 steps have been built:
.......RPython traceback:
File "rpython_jit_metainterp_compile.c", line 21356, in send_loop_to_backend
File "rpython_jit_backend_x86_assembler.c", line 1905, in Assembler386_assemble_loop
File "rpython_jit_backend_x86_regalloc.c", line 309, in RegAlloc_prepare_loop
File "rpython_jit_backend_x86_regalloc.c", line 978, in RegAlloc__prepare
File "rpython_jit_backend_llsupport_regalloc.c", line 6519, in compute_vars_longevity
Fatal RPython error: AssertionError
Makefile:14: recipe for target 'step9_try' failed
2015-10-10 18:34:46 +03:00
|
|
|
make -C ${BUILD_IMPL}
|
2015-10-10 06:45:48 +03:00
|
|
|
fi
|