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
.
|
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) |