gccクロスコンパイラツールチェーンの構築中にエラーが発生しました。

gccクロスコンパイラツールチェーンの構築中にエラーが発生しました。

私はフォローアップをしています。これ学習体験のためのLinuxシステムの構築に関するガイドは、このガイドのセクションにあります。GCC(静的)、 `コマンドを実行するとエラーが発生します。

$ ln -vs libgcc.a `${LJOS_TARGET}-gcc -print-libgcc-file-name |
  ↪sed 's/libgcc/&_eh/'`


No command '-gcc' found, did you mean:
Command 'gcc' from package 'gcc' (main)
Command 'cgcc' from package 'sparse' (universe)
-gcc: command not found
'./libgcc.a' -> 'libgcc.a'

無視してタイトルのまま続いたglibcしかし、このコマンドを実行した後に別のエラーが発生します。

BUILD_CC="gcc" CC="${LJOS_TARGET}-gcc" \
AR="${LJOS_TARGET}-ar" \
RANLIB="${LJOS_TARGET}-ranlib" CFLAGS="-O2" \
../glibc-2.27/configure --prefix=/usr \
--host=${LJOS_TARGET} --build=${LJOS_HOST} \
--disable-profile --enable-add-ons --with-tls \
--enable-kernel=2.6.32 --with-__thread \
--with-binutils=${LJOS}/cross-tools/bin \
--with-headers=${LJOS}/usr/include \
--cache-file=config.cache

エラーはそうです

configure: loading cache config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... -gcc
checking for suffix of object files... configure: error: in `/home/noob/Desktop/glibc- build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details

これら私はconfig.logの内容です

この問題をどのように解決できますか?

ベストアンサー1

おすすめ記事