New comment by q66 on void-packages repository https://github.com/void-linux/void-packages/pull/21133#issuecomment-615960139 Comment: you will need to add these changes, too ``` commit 3faa77c1a86b528175bd659b9c9d7f854cae8985 Author: q66 Date: Sat Apr 18 23:54:53 2020 +0200 gcc4ti: replace platform detection scripts also stop trying to strip target files diff --git a/srcpkgs/gcc4ti/template b/srcpkgs/gcc4ti/template index 0a153a3e19..525f6a6e89 100644 --- a/srcpkgs/gcc4ti/template +++ b/srcpkgs/gcc4ti/template @@ -11,6 +11,7 @@ license="GPL-2.0-only" homepage="https://github.com/debrouxl/gcc4ti" distfiles="https://github.com/debrouxl/gcc4ti/archive/${_commit}.tar.gz" checksum=b65eca299c188a1f07887128c4b247363734f1fc44add153c439c07632bfbca1 +nostrip_files="tigcc.a flashos.a fargo.a" nocross=yes do_install() { @@ -22,6 +23,12 @@ do_install() { export GCC4TIHOST=$XBPS_CROSS_TRIPLET cd ../gcc4ti-0.96b11/scripts ./Install_step_1 + + # override config.guess/sub from 2004 to detect modern targets + local cfgdir="${XBPS_COMMONDIR}/environment/configure/automake" + cp ${cfgdir}/config.* ../download/gcc-* + cp ${cfgdir}/config.* ../download/binutils-* + ./Install_step_2 ./Install_step_3 ./Install_step_4 ``` otherwise, it won't compile on musl or non-x86_64 targets (it'll fail to detect the target triplet). The nostrip_files bit is not entirely necssary but it'll prevent it from trying. also, you should find if you can somehow split the build/install steps. i'll leave the rest to other reviewers