aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Szymczyszyn <[email protected]>2017-06-15 16:28:45 +0200
committerRadek Szymczyszyn <[email protected]>2017-11-03 17:45:07 +0100
commit3582073a39044212c568a9b314fa3ab816b56231 (patch)
tree8ebc689f5f7abaf9d5c68437a66e7b1637978ec0
parente70ffac8668fe7c20f8699f1a67c57d80212a250 (diff)
downloadkerl-3582073a39044212c568a9b314fa3ab816b56231.tar.gz
kerl-3582073a39044212c568a9b314fa3ab816b56231.tar.bz2
kerl-3582073a39044212c568a9b314fa3ab816b56231.zip
wip: Troubleshoot rebar3 compile failure
./install.sh fails due to rebar3 compile failure: $ KERL_INSTALL_DOCSH=yes KERL_BUILD_BACKEND=git ./kerl install git-19.3.6 ~/apps/erlang/git-19.3.6 Installing Erlang/OTP 19.3.6 (git-19.3.6) in /home/erszcz/apps/erlang/git-19.3.6... Checking out docsh git repository from https://github.com/erszcz/docsh.git... Installing docsh for git-19.3.6 from git, please wait... + : yes + ./install.sh + yes + DEBUG=1 ./install.sh Installing docsh This install script will make docsh globally available in your user environment. It will install the following files: /home/erszcz/.erlang /home/erszcz/.erlang.d/user_default.erl To know more about these files please refer to: man erl - sections about 'The .erlang startup file' and 'user_default and shell_default' man shell_default - parts about user_default ===> Load global config file /home/erszcz/.config/rebar3/rebar.config ===> Expanded command sequence to be run: [{default,app_discovery}, {default,install_deps}, {default,lock}, {default,compile}] ===> Verifying dependencies... ===> Fetching parse_trans ({git, "https://github.com/uwiger/parse_trans.git", {ref, "4fadce8a5242479b4ebc0d2b5825bdfe1de0af1c"}}) ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: git --version ===> opts: [] ===> Port Cmd: git --version Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof] ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: git clone -n https://github.com/uwiger/parse_trans.git .tmp_dir987767996134 ===> opts: [{cd,"/tmp"}] ===> Port Cmd: git clone -n https://github.com/uwiger/parse_trans.git .tmp_dir987767996134 Port Opts: [{cd,"/tmp"}, exit_status, {line,16384}, use_stdio,stderr_to_stdout,hide,eof] ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: git checkout -q 4fadce8a5242479b4ebc0d2b5825bdfe1de0af1c ===> opts: [{cd,"/tmp/.tmp_dir987767996134"}] ===> Port Cmd: git checkout -q 4fadce8a5242479b4ebc0d2b5825bdfe1de0af1c Port Opts: [{cd,"/tmp/.tmp_dir987767996134"}, exit_status, {line,16384}, use_stdio,stderr_to_stdout,hide,eof] ===> Moving checkout "/tmp/.tmp_dir987767996134" to "/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/parse_trans" ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: mv /tmp/.tmp_dir987767996134 /home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/parse_trans ===> opts: [{use_stdout,false},abort_on_error] ===> Port Cmd: mv /tmp/.tmp_dir987767996134 /home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/parse_trans Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof] ===> Fetching edown ({git,"git://github.com/uwiger/edown.git", {ref,"abd9f5bbf9265a0a25640a677824386e199e91a6"}}) ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: git clone -n git://github.com/uwiger/edown.git .tmp_dir51298746757 ===> opts: [{cd,"/tmp"}] ===> Port Cmd: git clone -n git://github.com/uwiger/edown.git .tmp_dir51298746757 Port Opts: [{cd,"/tmp"}, exit_status, {line,16384}, use_stdio,stderr_to_stdout,hide,eof] ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: git checkout -q abd9f5bbf9265a0a25640a677824386e199e91a6 ===> Port Cmd: git checkout -q abd9f5bbf9265a0a25640a677824386e199e91a6 Port Opts: [{cd,"/tmp/.tmp_dir51298746757"}, exit_status, {line,16384}, use_stdio,stderr_to_stdout,hide,eof] ===> Moving checkout "/tmp/.tmp_dir51298746757" to "/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown" ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: mv /tmp/.tmp_dir51298746757 /home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown ===> opts: [{use_stdout,false},abort_on_error] ===> Port Cmd: mv /tmp/.tmp_dir51298746757 /home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof] ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: git --git-dir="/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown/.git" rev-parse --verify HEAD ===> opts: [{use_stdout,false}, {debug_abort_on_error, "Locking of git dependency failed in /home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown"}] ===> Port Cmd: git --git-dir="/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown/.git" rev-parse --verify HEAD Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof] ===> sh info: cwd: "/home/erszcz/.kerl/builds/git-19.3.6/docsh" cmd: git --git-dir="/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/parse_trans/.git" rev-parse --verify HEAD ===> opts: [{use_stdout,false}, {debug_abort_on_error, "Locking of git dependency failed in /home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/parse_trans"}] ===> Port Cmd: git --git-dir="/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/parse_trans/.git" rev-parse --verify HEAD Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof] ===> Compiling edown ===> run_hooks("/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown", pre_hooks, compile) -> no hooks defined ===> run_hooks("/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown", pre_hooks, erlc_compile) -> no hooks defined ===> erlopts [debug_info,debug_info] ===> files to compile ["/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown/src/edown_lib.erl", "/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown/src/edown_layout.erl", "/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown/src/edown_xmerl.erl", "/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown/src/edown_doclet.erl", "/home/erszcz/.kerl/builds/git-19.3.6/docsh/_build/default/lib/edown/src/edown_make.erl"] ./install.sh: line 57: 25278 Killed ./rebar3 compile Couldn't compile docsh + [ 1 -ne 0 ] + echo Couldn't install docsh Couldn't install docsh + exit 1
-rwxr-xr-xkerl8
1 files changed, 6 insertions, 2 deletions
diff --git a/kerl b/kerl
index 20f4b04..44b9574 100755
--- a/kerl
+++ b/kerl
@@ -1135,10 +1135,14 @@ install_docsh() {
fi
echo "Installing docsh for $BUILDNAME from git, please wait..."
- yes | ./install.sh > /dev/null 2>&1
+ # TODO: MUST troubleshoot the install script failure
+ set -x
+ : yes | ./install.sh > /dev/null 2>&1
+ : yes | DEBUG=1 ./install.sh
+ yes | ./install.sh
if [ $? -ne 0 ]; then
echo "Couldn't install docsh"
- rm -Rf "$DOCSH_DIR"
+ #rm -Rf "$DOCSH_DIR"
exit 1
fi
}