gzip
Linux マシンで組み込みプラットフォーム用にビルドしようとしています。ここから最新の gzip ディストリビューションをダウンロードしました。次に、特定のターゲットに合わせて を調整するためにmake
、最初にプログラムを実行する必要があります。configure
Makefile
そのため、実行するconfigure
といくつかのエラーメッセージが表示されます。問題はいくつかの組み合わせのようです。私たちのコンパイラのバージョンは と呼ばれe-gcc
ているので、次の行を使用すると、このエラーが発生しました。
~/Projects/gzip-1.4$ ./configure CC=e-gcc
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 for style of include used by make... GNU
checking for gcc... e-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/xyz/Projects/gzip-1.4':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
明らかに、C でコンパイルされたプログラムは実行できません。b/c はクロスコンパイラです。このオプションを使用する必要があるというメッセージが表示されます--host
が、問題は gcc で実際に定義された名前がないことです。しかし、私は試しました:
./configure CC=e-gcc --host=epiphany
受け取ったエラーは次のとおりです。
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
blah blah blah
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `epiphany': machine `epiphany' not recognized
configure: error: /bin/bash build-aux/config.sub epiphany failed
arm
最後に、私たちのアーキテクチャに精神的に最も近いホストをごまかして設定してみました。構成はさらに先に進みましたが、最終的には次のメッセージで失敗しました。
checking for GNU libc compatible realloc... no
checking for rmdir... no
configure: error: in `/home/xyz/Projects/gzip-1.4':
configure: error: Your system lacks the rmdir function.
Please report this, along with the output of "uname -a", to the
bug-coreutils@gnu.org mailing list. To continue past this point,
rerun configure with SKIP_RMDIR_CHECK=yes.
E.g., ./configure SKIP_RMDIR_CHECK=yes
See `config.log' for more details.
私は今、続行する方法についてかなり無知です。助言がありますか?