[Clfs-support] CLFS chapter 6.1: no Makefile generated

Alexander Tampermeier alexander at tampermeier.at
Wed Jan 8 02:11:51 PST 2014


Book version: GIT-20140106-x86_64-Multilib
Host: CLFS GIT-20130724-x86_64-Multilib
$CLFS_HOST: x86_64-cross-linux-gnu
$CLFS_TARGET: x86_64-unknown-linux-gnu
$BUILD32: -m32
$BUILD64: -m64


Hi!

I got stuck in chapter "6.10. GCC-4.8.2". When issuing the command
"cp -v Makefile{,.orig}" I get the error message "cp: cannot stat 
'Makefile': No such file or directory".

There is no "Makefile" in gcc-build. The only file in gcc-build is 
"config.log". I suspect the prior command "CC="${CC} ${BUILD64}" 
CXX="${CXX} ${BUILD64} ....." should generate "Makefile" but it does not 
(please, see complete listing of the output of the commands of chapter 
6.10 below).

What have I missed that no Makefile was generated? Any help is highly 
appreciated.

Best regards
Alexander



clfs:~/gcc-4.8.2$ patch -Np1 -i 
../gcc-4.8.2-branch_update-1.patch/mnt/clfs/sources/
patching file ChangeLog
patching file contrib/gcc_update
patching file gcc/DATESTAMP
patching file gcc/ada/gcc-interface/utils.c
patching file gcc/alias.c
patching file gcc/cfgexpand.c
patching file gcc/cgraph.c
patching file gcc/cgraph.h
patching file gcc/cgraphbuild.c
patching file gcc/combine.c
patching file gcc/config/i386/i386.c
patching file gcc/config/i386/i386.md
patching file gcc/config/rs6000/rs6000.md
patching file gcc/config/sh/sh.opt
patching file gcc/cp/decl2.c
patching file gcc/cp/except.c
patching file gcc/cp/parser.c
patching file gcc/cp/semantics.c
patching file gcc/gimple-fold.c
patching file gcc/go/go-gcc.cc
patching file gcc/go/gofrontend/backend.h
patching file gcc/go/gofrontend/expressions.cc
patching file gcc/go/gofrontend/expressions.h
patching file gcc/go/gofrontend/gogo-tree.cc
patching file gcc/go/gofrontend/gogo.cc
patching file gcc/go/gofrontend/gogo.h
patching file gcc/go/gofrontend/import.h
patching file gcc/go/gofrontend/lex.cc
patching file gcc/go/gofrontend/parse.cc
patching file gcc/go/gofrontend/runtime.cc
patching file gcc/go/gofrontend/runtime.def
patching file gcc/go/gofrontend/types.cc
patching file gcc/go/gofrontend/types.h
patching file gcc/graphite-clast-to-gimple.c
patching file gcc/graphite-dependences.c
patching file gcc/ipa-prop.c
patching file gcc/optabs.c
patching file gcc/recog.c
patching file gcc/testsuite/g++.dg/cpp0x/decltype57.C
patching file gcc/testsuite/g++.dg/cpp0x/enum18.C
patching file gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi5.C
patching file gcc/testsuite/g++.dg/tm/noexcept-6.C
patching file gcc/testsuite/gcc.c-torture/execute/pr58831.c
patching file gcc/testsuite/gcc.dg/atomic-store-6.c
patching file gcc/testsuite/gcc.dg/graphite/pr54094.c
patching file gcc/testsuite/gcc.dg/pr58805.c
patching file gcc/testsuite/gcc.dg/torture/pr57488.c
patching file gcc/testsuite/gcc.dg/torture/pr58079.c
patching file gcc/testsuite/gcc.dg/torture/pr58779.c
patching file gcc/testsuite/gcc.dg/torture/pr58830.c
patching file gcc/testsuite/gcc.target/arm/require-pic-register-loc.c
patching file gcc/testsuite/gcc.target/i386/pr30315.c
patching file gcc/testsuite/gcc.target/sh/pr54089-3.c
patching file gcc/tree-ssa-pre.c
patching file gcc/tree-ssa-tail-merge.c
patching file gcc/version.c
patching file libffi/doc/libffi.info
patching file libgo/Makefile.am
patching file libgo/Makefile.in
patching file libgo/config.h.in
patching file libgo/configure
patching file libgo/configure.ac
patching file libgo/go/syscall/libcall_linux.go
patching file libgo/go/syscall/libcall_posix.go
patching file libgo/mksysinfo.sh
patching file libgo/runtime/go-cdiv.c
patching file libgo/runtime/go-make-slice.c
patching file libgo/runtime/go-nosys.c
patching file libgo/runtime/go-signal.c
patching file libitm/libitm.info
patching file libquadmath/libquadmath.info
patching file libstdc++-v3/include/bits/shared_ptr_base.h
patching file libstdc++-v3/include/bits/stl_algo.h
patching file libstdc++-v3/include/c_global/cstdio
patching file libstdc++-v3/include/debug/functions.h
patching file libstdc++-v3/include/debug/macros.h
patching file libstdc++-v3/testsuite/20_util/shared_ptr/cons/58839.cc
patching file libstdc++-v3/testsuite/25_algorithms/nth_element/58800.cc
clfs:~/gcc-4.8.2$ patch -Np1 -i ../gcc-4.8.2-specs-1.patch.ch
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$ patch -Np1 -i ../gcc-4.8.2-specs-1.patch/mnt/clfs/sources/
patching file gcc/config/aarch64/aarch64-linux.h
Hunk #1 succeeded at 21 with fuzz 2.
patching file gcc/config/alpha/linux-elf.h
patching file gcc/config/arm/linux-eabi.h
patching file gcc/config/arm/linux-elf.h
patching file gcc/config/c6x/uclinux-elf.h
patching file gcc/config/cris/linux.h
patching file gcc/config/freebsd-spec.h
patching file gcc/config/frv/linux.h
patching file gcc/config/i386/gnu.h
patching file gcc/config/i386/kfreebsd-gnu.h
patching file gcc/config/i386/kfreebsd-gnu64.h
patching file gcc/config/i386/linux.h
patching file gcc/config/i386/linux64.h
patching file gcc/config/ia64/linux.h
patching file gcc/config/knetbsd-gnu.h
patching file gcc/config/kopensolaris-gnu.h
patching file gcc/config/linux.h
patching file gcc/config/m32r/linux.h
patching file gcc/config/m68k/linux.h
patching file gcc/config/microblaze/linux.h
patching file gcc/config/mips/linux.h
patching file gcc/config/mips/linux64.h
patching file gcc/config/mn10300/linux.h
patching file gcc/config/pa/pa-linux.h
patching file gcc/config/rs6000/freebsd64.h
patching file gcc/config/rs6000/linux64.h
Hunk #1 succeeded at 350 (offset -10 lines).
patching file gcc/config/rs6000/sysv4.h
Hunk #1 succeeded at 776 (offset -11 lines).
Hunk #2 succeeded at 821 (offset -11 lines).
patching file gcc/config/s390/linux.h
patching file gcc/config/sh/linux.h
patching file gcc/config/sparc/linux.h
patching file gcc/config/sparc/linux64.h
patching file gcc/config/xtensa/linux.h
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$ echo -en '\n#undef 
STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/
tools/lib/"\n' >> gcc/config/linux.h
clfs:~/gcc-4.8.2$ echo -en '\n#undef 
STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""
\n' >> gcc/config/linux.h
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$ cp -v gcc/Makefile.in{,.orig}
'gcc/Makefile.in' -> 'gcc/Makefile.in.orig'
clfs:~/gcc-4.8.2$ sed 's@\./fixinc\.sh at -c true@' gcc/Makefile.in.orig > 
gcc/Makefile.in
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$
clfs:~/gcc-4.8.2$ mkdir -v ../gcc-build
mkdir: created directory '../gcc-build'
clfs:~/gcc-4.8.2$ cd ../gcc-build
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$ CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
 >   ../gcc-4.8.2/configure --prefix=/tools \
 >   --libdir=/tools/lib64 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
 >   --target=${CLFS_TARGET} --libexecdir=/tools/lib64 
--with-local-prefix=/tools \
 >   --enable-long-long --enable-c99 --enable-shared 
--enable-threads=posix \
 >   --disable-nls --enable-__cxa_atexit --enable-languages=c,c++ \
 >   --disable-libstdcxx-pch --enable-cloog-backend=isl --with-gmp=/tools \
 >   --with-mpfr=/tools --with-mpc=/tools --with-isl=/tools \
 >   --disable-isl-version-check --with-cloog=/tools --with-system-zlib \
 >   --with-native-system-header-dir=/tools/include --disable-libssp \
 >   --disable-install-libiberty  --enable-libstdcxx-time \
 >   --enable-checking=release
checking build system type... x86_64-cross-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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 libitm support... yes
checking for libsanitizer support... yes
checking for x86_64-unknown-linux-gnu-gcc... 
x86_64-unknown-linux-gnu-gcc -m64
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-unknown-linux-gnu-gcc -m64 accepts -g... yes
checking for x86_64-unknown-linux-gnu-gcc -m64 option to accept ISO 
C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-unknown-linux-gnu-g++ -m64 accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... no
checking for x86_64-unknown-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for x86_64-unknown-linux-gnu-gnatmake... 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 the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.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
ftp://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.
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$
clfs:~/gcc-build$ cp -v Makefile{,.orig}
cp: cannot stat 'Makefile': No such file or directory



More information about the Clfs-support mailing list