我正在跟进这构建 Linux 系统以获取学习经验的指南 在该指南的标题为 的部分中海湾合作委员会(静态),我在运行命令`时遇到错误
$ 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 上的内容
我该如何解决这个问题?