Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone. I am following LFS book 8.0 on a Fedora 26 host system. it seems like the first pass of binutils makes correctly. I get hung when I try to configure/make gcc-6.3.0. I have virtually no clue what I am doing, so any help is appreciated.
Here is the output after running configure/make
Quote:
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ ../configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... no
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for isl 0.16, 0.15, or deprecated 0.14... no
recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated
checking for isl 0.16 or 0.15... no
The following languages will be built: c,c++,fortran,java,lto,objc
*** This configuration is not supported in the following subdirectories:
gnattools gotools target-libada target-libgo target-liboffloadmic
(Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
/tools/bin/ld: cannot find crt1.o: No such file or directory
/tools/bin/ld: cannot find crti.o: No such file or directory
/tools/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so when searching for -lgcc_s
/tools/bin/ld: cannot find -lgcc_s
/tools/bin/ld: cannot find -lc
/tools/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so when searching for -lgcc_s
/tools/bin/ld: cannot find -lgcc_s
/tools/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure: error: I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --target=$LFS_TGT
bash: --target=x86_64-lfs-linux-gnu: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --prefix=/tools
bash: --prefix=/tools: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-glibc-version=2.11
bash: --with-glibc-version=2.11: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-sysroot=$LFS
bash: --with-sysroot=/mnt/lfs: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-newlib
bash: --with-newlib: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --without-headers
bash: --without-headers: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-local-prefix=/tools
bash: --with-local-prefix=/tools: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-native-system-header-dir=/tools/include
bash: --with-native-system-header-dir=/tools/include: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-nls
bash: --disable-nls: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-shared
bash: --disable-shared: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-multilib
bash: --disable-multilib: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-decimal-float
bash: --disable-decimal-float: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-threads
bash: --disable-threads: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libatomic
bash: --disable-libatomic: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libgomp
bash: --disable-libgomp: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libmpx
bash: --disable-libmpx: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libquadmath
bash: --disable-libquadmath: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libssp
bash: --disable-libssp: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libvtv
bash: --disable-libvtv: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libstdcxx
bash: --disable-libstdcxx: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --enable-languages=c,c++
bash: --enable-languages=c,c++: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \make
make: *** No targets specified and no makefile found. Stop.
lfs:/mnt/lfs/sources/gcc-6.3.0/build$
and here is the output after running version-check.sh
Quote:
bash version-check.sh
bash, version 4.4.12(1)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.27-24.fc26
bison (GNU Bison) 3.0.4
Usage: /usr/bin/yacc [options] filename
Options:
-b file_prefix set filename prefix (default "y.")
-B create a backtracking parser
-d write definitions (.tab.h)
-i write interface (y.tab.i)
-g write a graphical description
-l suppress #line directives
-L enable position processing, e.g., "%locations"
-o output_file (default ".tab.c")
-p symbol_prefix set symbol prefix (default "yy")
-P create a reentrant parser, e.g., "%pure-parser"
-r produce separate code and table files (y.code.c)
-s suppress #define's for quoted names in %token lines
-t add debugging support
-v write description (y.output)
-V show version information and exit
yacc is
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.27
diff (GNU diffutils) 3.5
find (GNU findutils) 4.6.0
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 7.1.1 20170622 (Red Hat 7.1.1-3)
g++ (GCC) 7.1.1 20170622 (Red Hat 7.1.1-3)
(GNU libc) 2.25
grep (GNU grep) 3.1
gzip 1.8
Linux version 4.11.8-300.fc26.x86_64 (mockbuild@bkernel02.phx2.fedoraproject.org) (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) ) #1 SMP Thu Jun 29 20:09:48 UTC 2017
m4 (GNU M4) 1.4.18
GNU Make 4.2.1
GNU patch 2.7.5
Perl version='5.24.2';
sed (GNU sed) 4.4
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.3
xz (XZ Utils) 5.2.3
g++ compilation OK
I am sorry in advance if this post is poorly compiled
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
First, figure out what's wrong with your yacc-to-bison shortcut.
Code:
bison (GNU Bison) 3.0.4
Usage: /usr/bin/yacc [options] filename
Options:
..
..
-v write description (y.output)
-V show version information and exit
yacc is
Notice how that's blank... It should say:
yacc is bison (GNU Bison) 3.0.4
You also need to post the results of the math library check.
I think this did what I needed it to. here is the new output from version-check.sh
Code:
[DESKTOP@localhost ~]$ bash version-check.sh
bash, version 4.4.12(1)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.27-24.fc26
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.27
diff (GNU diffutils) 3.5
find (GNU findutils) 4.6.0
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 7.1.1 20170622 (Red Hat 7.1.1-3)
g++ (GCC) 7.1.1 20170622 (Red Hat 7.1.1-3)
(GNU libc) 2.25
grep (GNU grep) 3.1
gzip 1.8
Linux version 4.11.8-300.fc26.x86_64 (mockbuild@bkernel02.phx2.fedoraproject.org) (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) ) #1 SMP Thu Jun 29 20:09:48 UTC 2017
m4 (GNU M4) 1.4.18
GNU Make 4.2.1
GNU patch 2.7.5
Perl version='5.24.2';
sed (GNU sed) 4.4
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.3
xz (XZ Utils) 5.2.3
g++ compilation OK
and output from library-check.sh is looking like this
Code:
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found
thank you for the help. I guess the part where it talks about /usr/bin/yacc needing to be a link to bison was a little over my head. I'll wait a bit to see what other advice you might have for me before attempting the first pass of gcc again.
So I decided to start over with the first pass of gcc. I deleted the gcc-6.3.0 folder and unpacked the tar file again. I'm still having similar issues. Sorry for not really knowing what I'm doing, but I'm trying to learn.
here is the output from configure
Code:
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ ../configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... no
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for isl 0.16, 0.15, or deprecated 0.14... no
recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated
checking for isl 0.16 or 0.15... no
The following languages will be built: c,c++,fortran,java,lto,objc
*** This configuration is not supported in the following subdirectories:
gnattools gotools target-libada target-libgo target-liboffloadmic
(Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
/tools/bin/ld: cannot find crt1.o: No such file or directory
/tools/bin/ld: cannot find crti.o: No such file or directory
/tools/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so when searching for -lgcc_s
/tools/bin/ld: cannot find -lgcc_s
/tools/bin/ld: cannot find -lc
/tools/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so when searching for -lgcc_s
/tools/bin/ld: cannot find -lgcc_s
/tools/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure: error: I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --target=$LFS_TGT
bash: --target=x86_64-lfs-linux-gnu: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --prefix=/tools
bash: --prefix=/tools: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-glibc-version=2.11
bash: --with-glibc-version=2.11: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-sysroot=$LFS
bash: --with-sysroot=/mnt/lfs: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-newlib
bash: --with-newlib: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --without-headers
bash: --without-headers: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-local-prefix=/tools
bash: --with-local-prefix=/tools: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --with-native-system-header-dir=/tools/include
bash: --with-native-system-header-dir=/tools/include: No such file or directory
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-nls
bash: --disable-nls: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-shared
bash: --disable-shared: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-multilib
bash: --disable-multilib: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-decimal-float
bash: --disable-decimal-float: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-threads
bash: --disable-threads: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libatomic
bash: --disable-libatomic: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libgomp
bash: --disable-libgomp: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libmpx
bash: --disable-libmpx: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libquadmath
bash: --disable-libquadmath: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libssp
bash: --disable-libssp: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libvtv
bash: --disable-libvtv: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --disable-libstdcxx
bash: --disable-libstdcxx: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ --enable-languages=c,c++
bash: --enable-languages=c,c++: command not found
lfs:/mnt/lfs/sources/gcc-6.3.0/build$ \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
> \
and here is the contents of the config.log file
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../configure
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = x86_64
uname -r = 4.11.8-300.fc26.x86_64
uname -s = Linux
uname -v = #1 SMP Thu Jun 29 20:09:48 UTC 2017
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /tools/bin
PATH: /bin
PATH: /usr/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2297: checking build system type
configure:2311: result: x86_64-pc-linux-gnu
configure:2358: checking host system type
configure:2371: result: x86_64-pc-linux-gnu
configure:2391: checking target system type
configure:2404: result: x86_64-pc-linux-gnu
configure:2458: checking for a BSD-compatible install
configure:2526: result: /bin/install -c
configure:2537: checking whether ln works
configure:2559: result: yes
configure:2563: checking whether ln -s works
configure:2567: result: yes
configure:2574: checking for a sed that does not truncate output
configure:2638: result: /bin/sed
configure:2647: checking for gawk
configure:2663: found /bin/gawk
configure:2674: result: gawk
configure:3210: checking for libatomic support
configure:3220: result: yes
configure:3229: checking for libcilkrts support
configure:3239: result: yes
configure:3267: checking for libitm support
configure:3277: result: yes
configure:3286: checking for libsanitizer support
configure:3296: result: yes
configure:3305: checking for libvtv support
configure:3315: result: yes
configure:3325: checking for libmpx support
configure:3335: result: yes
configure:4118: checking for gcc
configure:4134: found /bin/gcc
configure:4145: result: gcc
configure:4374: checking for C compiler version
configure:4383: gcc --version >&5
gcc (GCC) 7.1.1 20170622 (Red Hat 7.1.1-3)
Copyright (C) 2017 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:4394: $? = 0
configure:4383: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC)
configure:4394: $? = 0
configure:4383: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4394: $? = 1
configure:4383: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4394: $? = 1
configure:4414: checking for C compiler default output file name
configure:4436: gcc conftest.c >&5
configure:4440: $? = 0
configure:4477: result: a.out
configure:4493: checking whether the C compiler works
configure:4502: ./a.out
configure:4506: $? = 0
configure:4521: result: yes
configure:4528: checking whether we are cross compiling
configure:4530: result: no
configure:4533: checking for suffix of executables
configure:4540: gcc -o conftest conftest.c >&5
configure:4544: $? = 0
configure:4566: result:
configure:4572: checking for suffix of object files
configure:4594: gcc -c conftest.c >&5
configure:4598: $? = 0
configure:4619: result: o
configure:4623: checking whether we are using the GNU C compiler
configure:4642: gcc -c conftest.c >&5
configure:4642: $? = 0
configure:4651: result: yes
configure:4660: checking whether gcc accepts -g
configure:4680: gcc -c -g conftest.c >&5
configure:4680: $? = 0
configure:4721: result: yes
configure:4738: checking for gcc option to accept ISO C89
configure:4802: gcc -c -g -O2 conftest.c >&5
configure:4802: $? = 0
configure:4815: result: none needed
configure:4893: checking for g++
configure:4909: found /bin/g++
configure:4920: result: g++
configure:4947: checking for C++ compiler version
configure:4956: g++ --version >&5
g++ (GCC) 7.1.1 20170622 (Red Hat 7.1.1-3)
Copyright (C) 2017 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:4967: $? = 0
configure:4956: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC)
configure:4967: $? = 0
configure:4956: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4967: $? = 1
configure:4956: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:4967: $? = 1
configure:4971: checking whether we are using the GNU C++ compiler
configure:4990: g++ -c conftest.cpp >&5
configure:4990: $? = 0
configure:4999: result: yes
configure:5008: checking whether g++ accepts -g
configure:5028: g++ -c -g conftest.cpp >&5
configure:5028: $? = 0
configure:5069: result: yes
configure:5118: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:5135: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc conftest.cpp >&5
/tools/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
configure:5135: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
| #error -static-libstdc++ not implemented
| #endif
| int main() {}
configure:5139: result: no
configure:5200: checking for gnatbind
configure:5230: result: no
configure:5292: checking for gnatmake
configure:5322: result: no
configure:5341: checking whether compiler driver understands Ada
configure:5364: result: no
configure:5373: checking how to compare bootstrapped objects
configure:5398: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5458: checking for objdir
configure:5473: result: .libs
configure:6024: checking for isl 0.16, 0.15, or deprecated 0.14
configure:6037: gcc -o conftest -g -O2 -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src -I$$s/mpc/src -lisl -L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp conftest.c -lisl -lgmp >&5
conftest.c:10:10: fatal error: isl/ctx.h: No such file or directory
#include <isl/ctx.h>
^~~~~~~~~~~
compilation terminated.
configure:6037: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <isl/ctx.h>
| int
| main ()
| {
| isl_ctx_get_max_operations (isl_ctx_alloc ());
| ;
| return 0;
| }
configure:6044: result: no
configure:6048: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated
configure:6052: checking for isl 0.16 or 0.15
configure:6065: gcc -o conftest -g -O2 -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src -I$$s/mpc/src -lisl -L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp conftest.c -lisl -lgmp >&5
conftest.c:10:10: fatal error: isl/schedule.h: No such file or directory
#include <isl/schedule.h>
^~~~~~~~~~~~~~~~
compilation terminated.
configure:6065: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <isl/schedule.h>
| int
| main ()
| {
| isl_options_set_schedule_serialize_sccs (NULL, 0);
| ;
| return 0;
| }
configure:6072: result: no
configure:7076: checking for default BUILD_CONFIG
configure:7108: result: bootstrap-debug
configure:7113: checking for --enable-vtable-verify
configure:7126: result: no
configure:7523: error: I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_FOR_TARGET_set=
ac_cv_env_OBJCOPY_FOR_TARGET_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=x86_64-pc-linux-gnu
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_isl=no
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/6.3.0:/usr/local/libexec/gcc/x86_64-pc-linux-gnu:/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0:/usr/lib/gcc/x86_64-pc-linux-gnu:/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/6.3.0:/usr/local/x86_64-pc-linux-gnu/bin:
gcc_cv_tool_prefix=/usr/local
lt_cv_objdir=.libs
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
AWK='gawk'
BISON=''
BUILD_CONFIG='bootstrap-debug'
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET='-g -O2'
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++ -std=gnu++98'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET='-g -O2'
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
EXTRA_CONFIGARGS_LIBJAVA='--disable-static'
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJCOPY_FOR_TARGET=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
READELF=''
READELF_FOR_TARGET=''
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST=''
SED='/bin/sed'
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../configure'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_configargs=' --cache-file=./config.cache '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
build_configdirs=' libiberty libcpp fixincludes'
build_cpu='x86_64'
build_libsubdir='build-x86_64-pc-linux-gnu'
build_noncanonical='x86_64-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-pc-linux-gnu'
build_tooldir='${exec_prefix}/x86_64-pc-linux-gnu'
build_vendor='pc'
compare_exclusions=''
configdirs=' intl libiberty zlib libbacktrace libcpp libdecnumber gmp mpfr mpc fixincludes gcc libcc1 lto-plugin'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags='--enable-shared'
extra_host_zlib_configure_flags=''
extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
extra_liboffloadmic_configure_flags=''
extra_linker_plugin_configure_flags=''
extra_linker_plugin_flags=''
extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/.libs'
extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src -I$$s/mpc/src '
gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp'
host='x86_64-pc-linux-gnu'
host_alias=''
host_configargs=' --cache-file=./config.cache '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
host_cpu='x86_64'
host_noncanonical='x86_64-pc-linux-gnu'
host_os='linux-gnu'
host_shared=''
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
islinc=''
isllibs=''
islver=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags='-static-libstdc++ -static-libgcc'
poststage1_libs=''
prefix='NONE'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages='c,c++,lto'
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_configargs=' '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
target_configdirs=' libgcc libbacktrace libgomp libcilkrts libatomic libitm libstdc++-v3 libsanitizer libvtv libmpx libssp libquadmath libgfortran boehm-gc libffi zlib libjava libobjc'
target_cpu='x86_64'
target_noncanonical='x86_64-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='x86_64-pc-linux-gnu'
target_vendor='pc'
tooldir='${exec_prefix}/x86_64-pc-linux-gnu'
## ------------------- ##
## File substitutions. ##
## ------------------- ##
alphaieee_frag='/dev/null'
host_makefile_frag='/dev/null'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='config/mt-gnu'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"
configure: exit 1
You should not be using just "configure" in your build. I assume you are going through Chapter 5 and that this is your first-pass build of gcc (btw that is the kind of information you should always give when posting to this thread). The book provides the following arguments to this particular configure command:
The less you know about Linux, the more important it is to keep strictly to the book's instructions. Otherwise things will never work. One nice thing about the LFS book is that it explains the reasons for all the options and special edits it requires. In this way, you can learn a lot.
Alternatively, you can do a lot of general reading and come back to LFS in a few months' time when you know more.
I have not tested to build gcc-6.3.0 on a fedora 26 host. I did follow the book with the exception of gcc-6.4.0 and that did build fine.
Fedora 26 has gcc-7.1.0.
I also succesfully did a build with binutils 2.28.1 and glibc-25git on the same host (f26).
As hazel said, you should copy and paste the entire ./configure with the extra lines inside the code box.
Be sure to install gcc-c++ and m4 through dnf before starting to build lfs on a fedora host.
Last edited by hendrickxm; 08-11-2017 at 05:04 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.