簡體   English   中英

Debian:如何為 hppa64 使用 autoconf

[英]Debian: How to use autoconf for hppa64

我正在嘗試將以下基於 autoconf 的項目交叉構建到 hppa64(當前使用 Debian/sid 系統)。

到目前為止的步驟:

% sudo apt-get install gcc-hppa64-linux-gnu
% wget http://www.chronox.de/libkcapi/libkcapi-1.3.1.tar.xz
% tar xf libkcapi-1.3.1.tar.xz
% cd libkcapi-1.3.1
% autoreconf -i
% ./configure --host=hppa64-linux-gnu  --build=x86_64-linux-gnu --enable-kcapi-rngapp
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for hppa64-linux-gnu-strip... hppa64-linux-gnu-strip
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... hppa64-unknown-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for hppa64-linux-gnu-gcc... hppa64-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/tmp/libkcapi-1.3.1':
configure: error: C compiler cannot create executables
See `config.log' for more details

和:

% hppa-linux-gnu-gcc --version
hppa-linux-gnu-gcc (Debian 11.2.0-9) 11.2.0

% x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 11.2.0-16) 11.2.0

我錯過了什么?

解決方案是:

% sudo apt-get install g++-hppa-linux-gnu

不清楚我首先缺少什么,因為項目只是 C。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM