New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/29952#issuecomment-812667442 Comment: I can't make it not rebuild `fixdep` using the new `HOSTCC`. One plan was to build it for host first, build the others programs and finally rebuild it for the target. See `make -d` output: ``` Updating goal targets.... Considering target file '__build'. File '__build' does not exist. Considering target file 'scripts/basic/fixdep'. Considering target file 'scripts/basic/fixdep.c'. Looking for an implicit rule for 'scripts/basic/fixdep.c'. Trying pattern rule with stem 'fixdep.c'. Trying implicit prerequisite 'scripts/basic/fixdep.c_shipped'. Trying pattern rule with stem 'fixdep.c'. Trying implicit prerequisite 'scripts/basic/fixdep.c_shipped'. Looking for a rule with intermediate file 'scripts/basic/fixdep.c_shipped'. Avoiding implicit rule recursion. No implicit rule found for 'scripts/basic/fixdep.c'. Finished prerequisites of target file 'scripts/basic/fixdep.c'. No need to remake target 'scripts/basic/fixdep.c'. Considering target file 'FORCE'. File 'FORCE' does not exist. Finished prerequisites of target file 'FORCE'. Must remake target 'FORCE'. Successfully remade target file 'FORCE'. Considering target file 'FORCE'. File 'FORCE' was considered already. Finished prerequisites of target file 'scripts/basic/fixdep'. Prerequisite 'scripts/basic/fixdep.c' is older than target 'scripts/basic/fixdep'. Prerequisite 'FORCE' of target 'scripts/basic/fixdep' does not exist. Must remake target 'scripts/basic/fixdep'. Putting child 0x55fc06c6f1c0 (scripts/basic/fixdep) PID 9052 on the chain. Live child 0x55fc06c6f1c0 (scripts/basic/fixdep) PID 9052 HOSTCC scripts/basic/fixdep /bin/sh: line 1: scripts/basic/fixdep: cannot execute binary file: Exec format error ``` I have no idea how to bypass this `FORCE` thing. `FORCE` is a `PHONY`, so it isn't even possible to temporarily create a file named FORCE.