ARM平臺編譯dante出現【configure: error: cannot guess build type; you must specify one】解決方法
阿新 • • 發佈:2020-12-26
技術標籤:linuxarmgcc/gdb編譯除錯
編譯dante的時候出現:
[email protected]:~/dante-1.4.2# ./configure --prefix=/usr/local/dante --sysconfdir=/etc --disable-client
Configuring Dante 1.4.2:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... ./config.guess: unable to guess system type
This script, last modified 2011-10-01, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to < [email protected]> in order to provide the needed
information to handle your system.
config.guess timestamp = 2011-10-01
uname -m = aarch64
uname -r = 4.4.172-*
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue Jan 14 13:21:03 CST 2020
/usr/bin/uname -p =
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.4.172-*
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP PREEMPT Tue Jan 14 13:21:03 CST 2020
configure: error: cannot guess build type; you must specify one
意思是無法檢測到編譯的平臺,需要我們手動指定一個。
由於我使用的arm平臺,因此加個引數--build=arm-linux
搞定。
程式碼如下:
./configure --prefix=/usr/local/dante \
--sysconfdir=/etc --disable-client --build=arm-linux