BobBuildTool/basement

host toolchain doesn't work for aarch64 systems

Closed this issue · 3 comments

host-autoconf returns arm64-linux-gnu and fails while checking against gcc -dumpmachine

Expected a compatible (arm64-linux-gnu) host compiler!

the host-compiler is called aarch64-linux-gnu.

basement/default.yaml

Lines 20 to 22 in 1579c40

ARCH: "$(host-arch)"
AUTOCONF_BUILD: "$(host-autoconf)"
AUTOCONF_HOST: "$(host-autoconf)"

def hostArch(args, **options):
m = platform.uname().machine
if m == "x86_64":
return m
elif m == "AMD64":
return "x86_64"
elif m.startswith("i"):
return "i386"
elif m.startswith("aarch64"):
return "arm64"
elif m.startswith("arm"):
return "arm"
else:
raise ParseError("Unsupported host machine: " + m)
# get host autoconf triple
def hostAutoconf(args, **options):
machine = hostArch(None)
system = platform.uname().system
if system == 'Linux':
return machine + "-linux-gnu"
elif system.startswith("MSYS_NT"):
return machine + "-pc-msys"
elif system.startswith("MINGW64_NT"):
return "x86_64-w64-mingw32"
elif system.startswith("MINGW32_NT"):
return "i686-w64-mingw32"
elif system == "Windows":
return machine + "-pc-win32"
else:
raise ParseError("Unsupported system: " + system)

Yeah, the host-autoconf string function obviously needs fixing. I'm afraid that won't be the only problem. But let's see...

Could you please test #163 and see if it fixes your problem?

Your fix is working perfect.