Linux aarch64、loongarch64架构编译Python源码时遇到的问题configure: error: cannot guess build type

错误提示 以 aarch64架构为例

uname -m = aarch64
uname -r = 4.19.90-23.8.v2101.ky10.aarch64
uname -s = Linux
uname -v = #1 SMP Mon May 17 17:07:38 CST 2021
 
/usr/bin/uname -p = aarch64
/bin/uname -X     = 
 
hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = aarch64
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 
 
UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.19.90-23.8.v2101.ky10.aarch64
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP Mon May 17 17:07:38 CST 2021
configure: error: cannot guess build type; you must specify one

解决

./configure --build=aarch64-unknown-linux

若是loongarch64 则:

./configure --build=loongarch64-unknown-linux

你可能感兴趣的:(linux,bash,运维)