LFS libstdcに失敗しました - make:***ターゲットが指定されておらず、makefileが見つかりません。止める

LFS libstdcに失敗しました - make:***ターゲットが指定されておらず、makefileが見つかりません。止める

LFS 5章を読んでいます。 LibSTDCをコンパイルしようとしています。ビルドディレクトリを入力した後、以下を作成して実行しました。

../libstdc++-v3/configure \
--host=$LFS_TGT \
--build=$(../config.guess) \
--prefix=/usr \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-pch \
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/13.2.0

私は得る:

checking for unistd.h... no
checking for dlfcn.h... no
checking for objdir... .libs
checking if x86_64-lfs-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-lfs-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-lfs-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-lfs-linux-gnu-gcc static flag -static works... yes
checking if x86_64-lfs-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-lfs-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-lfs-linux-gnu-gcc linker (/mnt/lfs/tools/x86_64-lfs-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

エラーを無視して「make」を実行し続けました。

makeを実行した後、次のようになります。

make: *** No targets specified and no makefile found.  Stop.

makefileや他のものを使用せずにlsを使用してください。ちょうど "config.log"ファイルです。その中にはたくさんの行があります。最後の25は次のとおりです。

target='x86_64-lfs-linux-gnu'
target_alias='x86_64-lfs-linux-gnu'
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='lfs'
thread_header=''
tmake_file=''
toplevel_builddir='/mnt/lfs/sources/gcc-13.2.0/build/..'
toplevel_srcdir='/mnt/lfs/sources/gcc-13.2.0/libstdc++-v3/..'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "package-unused"
#define PACKAGE_TARNAME "libstdc++"
#define PACKAGE_VERSION "version-unused"
#define PACKAGE_STRING "package-unused version-unused"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define LT_OBJDIR ".libs/"

configure: exit 1

cdを以前のディレクトリ「gcc-13.2.0」に移動してmakeを実行すると、同じエラーが発生します。 「configure」を実行すると、次のエラーが発生します。

configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.

私はLFSユーザーで、$ LFS変数が設定されています。これが何なのかというアイデアをいただきありがとうございます。ありがとうございます!

ベストアンサー1

おすすめ記事