LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-05-2022, 07:23 AM   #1
areccsu
LQ Newbie
 
Registered: May 2022
Posts: 3

Rep: Reputation: 0
LFS 11.0 Ch 7.7. Libstdc++ from GCC-11.2.0, Pass 2


Good time everyone! Building my first LFS and got a problem with building Libstdc++ while in the chroot env (7.7 chapter). I have found some threads with similar problem, but none of them has any fixes..
I have re-build already 5th time and get stuck on the same spot all of these times.
Building on Ubuntu 22.04 LTS, Kernel 5.15.0-27-generic
I am following the book line by line, 4 times checked the links and variables from 7.5 and 7.6 chapters. Still get the Error:
Code:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking target system type... x86_64-lfs-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-lfs-linux-gnu-strip... no
checking for strip... no
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for suffix of object files... configure: error: in `/sources/gcc-11.2.0/build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
The command used:
Code:
../libstdc++-v3/configure            \
    CXXFLAGS="-g -O2 -D_GNU_SOURCE"  \
    --prefix=/usr                    \
    --disable-multilib               \
    --disable-nls                    \
    --host=$(uname -m)-lfs-linux-gnu \
    --disable-libstdcxx-pch
I don't really understand what part of config.log is needed, so here is all of it.. (from /sources/gcc-11.2.0/build/config.log)

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by package-unused configure version-unused, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../libstdc++-v3/configure CXXFLAGS=-g -O2 -D_GNU_SOURCE --prefix=/usr --disable-multilib --disable-nls --host=x86_64-lfs-linux-gnu --disable-libstdcxx-pch

## --------- ##
## Platform. ##
## --------- ##

hostname = alex-PC
uname -m = x86_64
uname -r = 5.15.0-27-generic
uname -s = Linux
uname -v = #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/bin
PATH: /usr/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:3155: checking build system type
configure:3169: result: x86_64-pc-linux-gnu
configure:3189: checking host system type
configure:3202: result: x86_64-lfs-linux-gnu
configure:3222: checking target system type
configure:3235: result: x86_64-lfs-linux-gnu
configure:3320: checking for a BSD-compatible install
configure:3388: result: /usr/bin/install -c
configure:3399: checking whether build environment is sane
configure:3454: result: yes
configure:3513: checking for x86_64-lfs-linux-gnu-strip
configure:3543: result: no
configure:3553: checking for strip
configure:3583: result: no
configure:3605: checking for a thread-safe mkdir -p
configure:3644: result: /usr/bin/mkdir -p
configure:3651: checking for gawk
configure:3667: found /usr/bin/gawk
configure:3678: result: gawk
configure:3689: checking whether make sets $(MAKE)
configure:3711: result: yes
configure:3740: checking whether make supports nested variables
configure:3757: result: yes
configure:3890: checking for x86_64-lfs-linux-gnu-gcc
configure:3906: found /usr/bin/x86_64-lfs-linux-gnu-gcc
configure:3917: result: x86_64-lfs-linux-gnu-gcc
configure:4186: checking for C compiler version
configure:4195: x86_64-lfs-linux-gnu-gcc --version >&5
x86_64-lfs-linux-gnu-gcc (GCC) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4206: $? = 0
configure:4195: x86_64-lfs-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=x86_64-lfs-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-lfs-linux-gnu/11.2.0/lto-wrapper
Target: x86_64-lfs-linux-gnu
Configured with: ../configure --build=x86_64-pc-linux-gnu --host=x86_64-lfs-linux-gnu --prefix=/usr CC_FOR_TARGET=x86_64-lfs-linux-gnu-gcc --with-build-sysroot=/mnt/lfs --enable-initfini-array --disable-nls --disable-multilib --disable-decimal-float --disable-libatomic --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (GCC) 
configure:4206: $? = 0
configure:4195: x86_64-lfs-linux-gnu-gcc -V >&5
x86_64-lfs-linux-gnu-gcc: error: unrecognized command-line option '-V'
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4206: $? = 1
configure:4195: x86_64-lfs-linux-gnu-gcc -qversion >&5
x86_64-lfs-linux-gnu-gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4206: $? = 1
configure:4222: x86_64-lfs-linux-gnu-gcc -o conftest    conftest.c  >&5
x86_64-lfs-linux-gnu-gcc: fatal error: cannot execute 'as': execvp: No such file or directory
compilation terminated.
configure:4225: $? = 1
configure:4438: checking for suffix of object files
configure:4460: x86_64-lfs-linux-gnu-gcc -c   conftest.c >&5
x86_64-lfs-linux-gnu-gcc: fatal error: cannot execute 'as': execvp: No such file or directory
compilation terminated.
configure:4464: $? = 1
configure: failed program was:
| /* 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 ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4478: error: in `/sources/gcc-11.2.0/build':
configure:4480: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFILT_set=
ac_cv_env_CXXFILT_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-g -O2 -D_GNU_SOURCE'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-lfs-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-lfs-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-lfs-linux-gnu-gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-lfs-linux-gnu
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABI_TWEAKS_SRCDIR=''
ACLOCAL='${SHELL} /sources/gcc-11.2.0/missing aclocal-1.15'
ALLOCATOR_H=''
ALLOCATOR_NAME=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
ATOMICITY_SRCDIR=''
ATOMIC_FLAGS=''
ATOMIC_WORD_SRCDIR=''
AUTOCONF='${SHELL} /sources/gcc-11.2.0/missing autoconf'
AUTOHEADER='${SHELL} /sources/gcc-11.2.0/missing autoheader'
AUTOMAKE='${SHELL} /sources/gcc-11.2.0/missing automake-1.15'
AWK='gawk'
BASIC_FILE_CC=''
BASIC_FILE_H=''
BUILD_EPUB_FALSE=''
BUILD_EPUB_TRUE=''
BUILD_HTML_FALSE=''
BUILD_HTML_TRUE=''
BUILD_INFO_FALSE=''
BUILD_INFO_TRUE=''
BUILD_MAN_FALSE=''
BUILD_MAN_TRUE=''
BUILD_PDF_FALSE=''
BUILD_PDF_TRUE=''
BUILD_XML_FALSE=''
BUILD_XML_TRUE=''
CC='x86_64-lfs-linux-gnu-gcc'
CCODECVT_CC=''
CCOLLATE_CC=''
CCTYPE_CC=''
CFLAGS=''
CLOCALE_CC=''
CLOCALE_H=''
CLOCALE_INTERNAL_H=''
CMESSAGES_CC=''
CMESSAGES_H=''
CMONEY_CC=''
CNUMERIC_CC=''
CPP=''
CPPFLAGS=''
CPU_DEFINES_SRCDIR=''
CPU_OPT_BITS_RANDOM=''
CPU_OPT_EXT_RANDOM=''
CSTDIO_H=''
CTIME_CC=''
CTIME_H=''
CXX=''
CXXCPP=''
CXXFILT=''
CXXFLAGS='-g -O2 -D_GNU_SOURCE -fno-builtin'
CYGPATH_W='echo'
C_INCLUDE_DIR=''
DBLATEX=''
DEBUG_FLAGS=''
DEFS=''
DOT=''
DOXYGEN=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_ALLOCATOR_NEW_FALSE=''
ENABLE_ALLOCATOR_NEW_TRUE=''
ENABLE_CXX11_ABI_FALSE=''
ENABLE_CXX11_ABI_TRUE=''
ENABLE_DUAL_ABI_FALSE=''
ENABLE_DUAL_ABI_TRUE=''
ENABLE_EXTERN_TEMPLATE_FALSE=''
ENABLE_EXTERN_TEMPLATE_TRUE=''
ENABLE_FILESYSTEM_TS_FALSE=''
ENABLE_FILESYSTEM_TS_TRUE=''
ENABLE_FLOAT128_FALSE=''
ENABLE_FLOAT128_TRUE=''
ENABLE_PYTHONDIR_FALSE=''
ENABLE_PYTHONDIR_TRUE=''
ENABLE_SYMVERS_DARWIN_FALSE=''
ENABLE_SYMVERS_DARWIN_TRUE=''
ENABLE_SYMVERS_FALSE=''
ENABLE_SYMVERS_GNU_FALSE=''
ENABLE_SYMVERS_GNU_NAMESPACE_FALSE=''
ENABLE_SYMVERS_GNU_NAMESPACE_TRUE=''
ENABLE_SYMVERS_GNU_TRUE=''
ENABLE_SYMVERS_SUN_FALSE=''
ENABLE_SYMVERS_SUN_TRUE=''
ENABLE_SYMVERS_TRUE=''
ENABLE_VISIBILITY_FALSE=''
ENABLE_VISIBILITY_TRUE=''
ENABLE_VTABLE_VERIFY_FALSE=''
ENABLE_VTABLE_VERIFY_TRUE=''
ENABLE_WERROR_FALSE=''
ENABLE_WERROR_TRUE=''
ERROR_CONSTANTS_SRCDIR=''
EXEEXT=''
EXTRA_CFLAGS=''
EXTRA_CXX_FLAGS=''
FGREP=''
GLIBCXX_BUILD_DEBUG_FALSE=''
GLIBCXX_BUILD_DEBUG_TRUE=''
GLIBCXX_BUILD_PCH_FALSE=''
GLIBCXX_BUILD_PCH_TRUE=''
GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=''
GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=''
GLIBCXX_C_HEADERS_C_FALSE=''
GLIBCXX_C_HEADERS_C_GLOBAL_FALSE=''
GLIBCXX_C_HEADERS_C_GLOBAL_TRUE=''
GLIBCXX_C_HEADERS_C_STD_FALSE=''
GLIBCXX_C_HEADERS_C_STD_TRUE=''
GLIBCXX_C_HEADERS_C_TRUE=''
GLIBCXX_HOSTED_FALSE=''
GLIBCXX_HOSTED_TRUE=''
GLIBCXX_INCLUDES=''
GLIBCXX_LDBL_ALT128_COMPAT_FALSE=''
GLIBCXX_LDBL_ALT128_COMPAT_TRUE=''
GLIBCXX_LDBL_COMPAT_FALSE=''
GLIBCXX_LDBL_COMPAT_TRUE=''
GLIBCXX_LIBS=''
GREP=''
HWCAP_CFLAGS=''
INCLUDE_DIR_NOTPARALLEL_FALSE=''
INCLUDE_DIR_NOTPARALLEL_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBICONV=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LONG_DOUBLE_128_FLAGS=''
LONG_DOUBLE_ALT128_COMPAT_FLAGS=''
LONG_DOUBLE_COMPAT_FLAGS=''
LTLIBICONV=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /sources/gcc-11.2.0/missing makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPTIMIZE_CXXFLAGS=''
OPT_LDFLAGS=''
OS_INC_SRCDIR=''
OTOOL64=''
OTOOL=''
PACKAGE='libstdc++'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='package-unused'
PACKAGE_STRING='package-unused version-unused'
PACKAGE_TARNAME='libstdc++'
PACKAGE_URL=''
PACKAGE_VERSION='version-unused'
PATH_SEPARATOR=':'
PDFLATEX=''
RANLIB=''
SECTION_FLAGS=''
SECTION_LDFLAGS=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=':'
SYMVER_FILE=''
TOPLEVEL_INCLUDES=''
USE_NLS=''
VERSION='version-unused'
VTV_CXXFLAGS=''
VTV_CXXLINKFLAGS=''
VTV_CYGMIN_FALSE=''
VTV_CYGMIN_TRUE=''
VTV_PCH_CXXFLAGS=''
WARN_FLAGS=''
XMLCATALOG=''
XMLLINT=''
XSLTPROC=''
XSL_STYLE_DIR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
baseline_dir=''
baseline_subdir_switch=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
check_msgfmt=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_shared=''
enable_static=''
exec_prefix='NONE'
get_gcc_base_ver=''
glibcxx_MOFILES=''
glibcxx_PCHFLAGS=''
glibcxx_POFILES=''
glibcxx_builddir=''
glibcxx_compiler_pic_flag=''
glibcxx_compiler_shared_flag=''
glibcxx_cxx98_abi=''
glibcxx_localedir=''
glibcxx_lt_pic_flag=''
glibcxx_prefixdir=''
glibcxx_srcdir=''
glibcxx_toolexecdir=''
glibcxx_toolexeclibdir=''
gxx_include_dir=''
host='x86_64-lfs-linux-gnu'
host_alias='x86_64-lfs-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='lfs'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /sources/gcc-11.2.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libtool_VERSION=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_host_flags=''
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
multi_basedir='../libstdc++-v3/..'
oldincludedir='/usr/include'
pdfdir='${docdir}'
port_specific_symbol_files=''
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
python_mod_dir=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
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=''
toplevel_srcdir=''

## ----------- ##
## 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 ""

configure: exit 1
Here is the building pwd:
Code:
bash-5.1# echo $(pwd)
/sources/gcc-11.2.0/build
Also here is the check output:
Code:
bash, version 5.1.16(1)-release
/bin/sh -> /usr/bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.38
bison (GNU Bison) 3.8.2
/usr/bin/yacc -> /usr/bin/bison
bzip2,  Version 1.0.8, 13-Jul-2019.
Coreutils:  8.32
diff (GNU diffutils) 3.8
find (GNU findutils) 4.8.0
GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.1)
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
(Ubuntu GLIBC 2.35-0ubuntu3) 2.35
grep (GNU grep) 3.7
gzip 1.10
Linux version 5.15.0-27-generic (buildd@ubuntu) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022
m4 (GNU M4) 1.4.18
GNU Make 4.3
GNU patch 2.7.6
Perl version='5.34.0';
Python 3.10.4
sed (GNU sed) 4.8
tar (GNU tar) 1.34
texi2any (GNU texinfo) 6.8
xz (XZ Utils) 5.2.5
g++ compilation OK
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 11.0 Ch 7.7. Libstdc++ from GCC-11.2.0, Pass 2 areccsu Linux From Scratch 3 05-28-2022 09:11 AM
LFS 10.1 failed at Chapter 7.7. Libstdc++ from GCC-10.2.0, Pass 2 someguydude Linux From Scratch 7 07-06-2021 05:44 PM
LFS 10 Stable - 7.7.1 libstdc++ Pass 2 - Fails ILikeTux Linux From Scratch 7 02-27-2021 12:23 PM
[SOLVED] LFS: Error during GCC-4.7.1-Pass 1 (LFS 7.2, Section 5.5) erkant Linux From Scratch 7 11-28-2012 06:03 AM
gcc-pass 2...libstdc++-v3...GCC_NO_EXECUTABLE!! tagigogo Linux From Scratch 7 05-15-2005 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration