LFS libstdc failed - make: *** No targets specified and no makefile found. Stop
0
votes
0
answers
254
views
I am on chapter 5 of LFS. I am trying to compile LibSTDC. After cd'ing into the build directory I created and running:
../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
I get:
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.
I ignored these errors and proceeded to run "make"
I got this after running make:
make: *** No targets specified and no makefile found. Stop.
Using ls, there is no makefile or anything else. Just a "config.log" file. Which has many lines. Here are the last 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-ing into the previous directory "gcc-13.2.0" and running make yields the same error. Running "configure" yields this error:
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.
I am the LFS user and the $LFS variable is set. Any ideas as to what this could be are appreciated. Thank you!
Asked by lfsthrowaway
(1 rep)
Sep 3, 2023, 03:44 PM