[Android Software/Hacking General [Developers Only]] Adromir:
Tried to compile aarch64 4.9 and got this error:

~/hyper-toolchain/hyper-scripts# sh aarch64-linux-android-4.9

Preparing build system...

aarch64-linux-android-4.9: 46: aarch64-linux-android-4.9: Bad substitution

Cleaning up files from previous compile...

rm -f -r /root/hyper-toolchain/build/temp-install stmp-build-* stmp-install-* && \
for sub in [ * ]; do \
if [ -f $sub/Makefile ]; then \
make -C $sub clean ; \
fi; \
done
Deleting binutils-Linaro ...
make[1]: Entering directory `/root/hyper-toolchain/build/binutils-Linaro'
CONFIG_SHELL="/bin/bash" /bin/bash ./config.status --recheck
/bin/bash: ./config.status: No such file or directory
make[1]: *** [config.status] Error 127
make[1]: Leaving directory `/root/hyper-toolchain/build/binutils-Linaro'
Deleting cloog-Linaro ...
Deleting gmp-Linaro ...
make[1]: Entering directory `/root/hyper-toolchain/build/cloog-Linaro'
/bin/bash ./config.status --recheck
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/bin/bash: ./config.status: No such file or directory
make[1]: *** [config.status] Error 127
make[1]: Leaving directory `/root/hyper-toolchain/build/cloog-Linaro'
Deleting isl-Linaro ...
Deleting mpc-Linaro ...
make[1]: Entering directory `/root/hyper-toolchain/build/isl-Linaro'
Makefile:1317: .deps/isl_ast_graft.Plo: No such file or directory
Makefile:1318: .deps/isl_ast_int.Plo: No such file or directory
Makefile:1319: .deps/isl_band.Plo: No such file or directory
Makefile:1320: .deps/isl_bernstein.Plo: No such file or directory
Makefile:1321: .deps/isl_blk.Plo: No such file or directory
Makefile:1322: .deps/isl_bound.Plo: No such file or directory
Makefile:1323: .deps/isl_coalesce.Plo: No such file or directory
Makefile:1324: .deps/isl_constraint.Plo: No such file or directory
Makefile:1325: .deps/isl_convex_hull.Plo: No such file or directory
Makefile:1326: .deps/isl_ctx.Plo: No such file or directory
Makefile:1327: .deps/isl_deprecated.Plo: No such file or directory
Makefile:1328: .deps/isl_dim_map.Plo: No such file or directory
Makefile:1329: .deps/isl_equalities.Plo: No such file or directory
Makefile:1330: .deps/isl_factorization.Plo: No such file or directory
Makefile:1331: .deps/isl_farkas.Plo: No such file or directory
Makefile:1332: .deps/isl_ffs.Plo: No such file or directory
Makefile:1333: .deps/isl_flow.Plo: No such file or directory
Makefile:1334: .deps/isl_fold.Plo: No such file or directory
Makefile:1335: .deps/isl_gmp.Plo: No such file or directory
Makefile:1336: .deps/isl_hash.Plo: No such file or directory
Makefile:1337: .deps/isl_id.Plo: No such file or directory
Makefile:1338: .deps/isl_id_to_ast_expr.Plo: No such file or directory
Makefile:1339: .deps/isl_id_to_id.Plo: No such file or directory
Makefile:1340: .deps/isl_id_to_pw_aff.Plo: No such file or directory
Makefile:1341: .deps/isl_ilp.Plo: No such file or directory
Makefile:1342: .deps/isl_imath.Plo: No such file or directory
Makefile:1343: .deps/isl_input.Plo: No such file or directory
Makefile:1344: .deps/isl_int_sioimath.Plo: No such file or directory
Makefile:1345: .deps/isl_local.Plo: No such file or directory
Makefile:1346: .deps/isl_local_space.Plo: No such file or directory
Makefile:1347: .deps/isl_lp.Plo: No such file or directory
Makefile:1348: .deps/isl_map.Plo: No such file or directory
Makefile:1349: .deps/isl_map_list.Plo: No such file or directory
Makefile:1350: .deps/isl_map_simplify.Plo: No such file or directory
Makefile:1351: .deps/isl_map_subtract.Plo: No such file or directory
Makefile:1352: .deps/isl_map_to_basic_set.Plo: No such file or directory
Makefile:1353: .deps/isl_mat.Plo: No such file or directory
Makefile:1354: .deps/isl_morph.Plo: No such file or directory
Makefile:1355: .deps/isl_obj.Plo: No such file or directory
Makefile:1356: .deps/isl_options.Plo: No such file or directory
Makefile:1357: .deps/isl_output.Plo: No such file or directory
Makefile:1358: .deps/isl_point.Plo: No such file or directory
Makefile:1359: .deps/isl_polynomial.Plo: No such file or directory
Makefile:1360: .deps/isl_printer.Plo: No such file or directory
Makefile:1361: .deps/isl_range.Plo: No such file or directory
Makefile:1362: .deps/isl_reordering.Plo: No such file or directory
Makefile:1363: .deps/isl_sample.Plo: No such file or directory
Makefile:1364: .deps/isl_scan.Plo: No such file or directory
Makefile:1365: .deps/isl_schedule.Plo: No such file or directory
Makefile:1366: .deps/isl_schedule_band.Plo: No such file or directory
Makefile:1367: .deps/isl_schedule_node.Plo: No such file or directory
Makefile:1368: .deps/isl_schedule_read.Plo: No such file or directory
Makefile:1369: .deps/isl_schedule_tree.Plo: No such file or directory
Makefile:1370: .deps/isl_scheduler.Plo: No such file or directory
Makefile:1371: .deps/isl_seq.Plo: No such file or directory
Makefile:1372: .deps/isl_set_list.Plo: No such file or directory
Makefile:1373: .deps/isl_sort.Plo: No such file or directory
Makefile:1374: .deps/isl_space.Plo: No such file or directory
Makefile:1375: .deps/isl_stream.Plo: No such file or directory
Makefile:1376: .deps/isl_tab.Plo: No such file or directory
Makefile:1377: .deps/isl_tab_pip.Plo: No such file or directory
Makefile:1378: .deps/isl_tarjan.Plo: No such file or directory
Makefile:1379: .deps/isl_test.Po: No such file or directory
Makefile:1380: .deps/isl_test_imath.Po: No such file or directory
Makefile:1381: .deps/isl_test_int.Po: No such file or directory
Makefile:1382: .deps/isl_transitive_closure.Plo: No such file or directory
Makefile:1383: .deps/isl_union_map.Plo: No such file or directory
Makefile:1384: .deps/isl_val.Plo: No such file or directory
Makefile:1385: .deps/isl_val_gmp.Plo: No such file or directory
Makefile:1386: .deps/isl_val_imath.Plo: No such file or directory
Makefile:1387: .deps/isl_val_sioimath.Plo: No such file or directory
Makefile:1388: .deps/isl_vec.Plo: No such file or directory
Makefile:1389: .deps/isl_version.Plo: No such file or directory
Makefile:1390: .deps/isl_vertices.Plo: No such file or directory
Makefile:1391: .deps/mp_get_memory_functions.Plo: No such file or directory
Makefile:1392: .deps/pip.Po: No such file or directory
Makefile:1393: .deps/polyhedron_detect_equalities.Po: No such file or directory
Makefile:1394: .deps/polyhedron_minimize.Po: No such file or directory
Makefile:1395: .deps/polyhedron_sample.Po: No such file or directory
Makefile:1396: .deps/polytope_scan.Po: No such file or directory
Makefile:1397: .deps/print.Plo: No such file or directory
Makefile:1398: imath_wrap/.deps/gmp_compat.Plo: No such file or directory
Makefile:1399: imath_wrap/.deps/imath.Plo: No such file or directory
Makefile:1400: imath_wrap/.deps/imrat.Plo: No such file or directory
make[1]: *** No rule to make target `imath_wrap/.deps/imrat.Plo'. Stop.
make[1]: Leaving directory `/root/hyper-toolchain/build/isl-Linaro'
Deleting mpfr-Linaro ...
make[1]: Entering directory `/root/hyper-toolchain/build/mpfr-Linaro'
/bin/bash ./config.status --recheck
/bin/bash: ./config.status: No such file or directory
make[1]: *** [config.status] Error 127
make[1]: Leaving directory `/root/hyper-toolchain/build/mpfr-Linaro'
configure: error: 'package gcc--4.9 does not exist.'

Compiling your -X- aarch64-linux-android-4.9 Toolchain!

make: *** No targets specified and no makefile found. Stop.

Installing Toolchain to: /root/hyper-toolchain/out/-X--aarch64-linux-android-4.9

_|_|_|_| _|_|_| _|_|_| _|_| _|_|_|
_| _| _| _| _| _| _| _| _|
_|_|_| _|_|_| _|_|_| _| _| _|_|_|
_| _| _| _| _| _| _| _| _|
_|_|_|_| _| _| _| _| _|_| _| _|

Error Log is found at: /root/hyper-toolchain/out/-X--aarch64-linux-android-4.9.log

Press ENTER to Exitaarch64-linux-android-4.9: 116: read: arg count
:~/hyper-toolchain/hyper-scripts# make: *** No rule to make target `install'. Stop.