I ddin't think removing those cp commands would make it compile but I ran
it anyways:

#5.5
tar -xf gcc-5.2.0.tar.bz2
cd gcc-5.2.0
tar -xf ../mpfr-3.1.3.tar.xz
mv -v mpfr-3.1.3 mpfr
tar -xf ../gmp-6.0.0a.tar.xz
mv -v gmp-6.0.0 gmp
tar -xf ../mpc-1.0.3.tar.gz
mv -v mpc-1.0.3 mpc
for file in \
 $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
  cp -uv $file{,.orig}
  sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
      -e 's@/usr@/tools@g' $file.orig > $file
  echo '
#undef STANDARD_STARTFILE_PREFIX_1
#undef STANDARD_STARTFILE_PREFIX_2
#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
  touch $file.orig
done
mkdir -v ../gcc-build
cd ../gcc-build
../gcc-5.2.0/configure                             \
    --target=$LFS_TGT                              \
    --prefix=/tools                                \
    --with-glibc-version=2.11                      \
    --with-sysroot=$LFS                            \
    --with-newlib                                  \
    --without-headers                              \
    --with-local-prefix=/tools                     \
    --with-native-system-header-dir=/tools/include \
    --disable-nls                                  \
    --disable-shared                               \
    --disable-multilib                             \
    --disable-decimal-float                        \
    --disable-threads                              \
    --disable-libatomic                            \
    --disable-libgomp                              \
    --disable-libquadmath                          \
    --disable-libssp                               \
    --disable-libvtv                               \
    --disable-libstdcxx                            \
    --enable-languages=c,c++
( make 2>&1 | tee ../5.5.compile.log && exit $PIPESTATUS ) && echo GOOD
make install

here are the compile/config logs:
http://pastebin.com/Bsri0v4n
Could you possibly show me what to look for and how to learn how to fix it?

On Sun, Oct 25, 2015 at 12:10 PM, Michael Havens <[email protected]> wrote:

> Okay, my build failed. Here are the commands I entered
>
>
>    1. #5.5
>    2. tar -xjf gcc-5.2.0.tar.bz2
>    3. cd gcc-5.2.0
>    4. cp ../mpfr-3.1.3.tar.xz .
>    5. cp ../mpc-1.0.3.tar.gz .
>    6. cp ../gmp-6.0.0a.tar.xz .
>    7. tar -xJf ../mpfr-3.1.3.tar.xz
>    8. mv -v mpfr-3.1.3 mpfr
>    9. tar -xJf ../gmp-6.0.0a.tar.xz
>    10. mv -v gmp-6.0.0 gmp
>    11. tar -xzf ../mpc-1.0.3.tar.gz
>    12. mv -v mpc-1.0.3 mpc
>    13. for file in \
>    14.  $(find gcc/config -name linux64.h -o -name linux.h -o -name
>    sysv4.h)
>    15. do
>    16.   cp -uv $file{,.orig}
>    17.   sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
>    18.       -e 's@/usr@/tools@g' $file.orig > $file
>    19.   echo '
>    20. #undef STANDARD_STARTFILE_PREFIX_1
>    21. #undef STANDARD_STARTFILE_PREFIX_2
>    22. #define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
>    23. #define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
>    24.   touch $file.orig
>    25. done
>    26. mkdir -v ../gcc-build
>    27. cd ../gcc-build
>    28. ../gcc-5.2.0/configure                             \
>    29.     --target=$LFS_TGT                              \
>    30.     --prefix=/tools                                \
>    31.     --with-glibc-version=2.11                      \
>    32.     --with-sysroot=$LFS                            \
>    33.     --with-newlib                                  \
>    34.     --without-headers                              \
>    35.     --with-local-prefix=/tools                     \
>    36.     --with-native-system-header-dir=/tools/include \
>    37.     --disable-nls                                  \
>    38.     --disable-shared                               \
>    39.     --disable-multilib                             \
>    40.     --disable-decimal-float                        \
>    41.     --disable-threads                              \
>    42.     --disable-libatomic                            \
>    43.     --disable-libgomp                              \
>    44.     --disable-libquadmath                          \
>    45.     --disable-libssp                               \
>    46.     --disable-libvtv                               \
>    47.     --disable-libstdcxx                            \
>    48.     --enable-languages=c,c++
>    49. ( make 2>&1 | tee ../5.5.compile.log && exit $PIPESTATUS ) && echo
>    GOOD
>    50. make install
>
> It appears it all worked until I got to line 50:
>
> make[4]: Leaving directory `/mnt/lfs/sources/gcc-build/libcc1'
> make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/libcc1'
> make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/libcc1'
> make[2]: Entering directory
> `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc'
> *make[2]: *** No rule to make target `install'.  Stop.*
> make[2]: Leaving directory
> `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc'
> make[1]: *** [install-target-libgcc] Error 2
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
> make: *** [install] Error 2
>
> config.log exit status is zero so everything in there is good :
>
>  cat gcc-build/config.log
>
> --snip--
> configure: exit 0
>
> here is the tail end of 5.5.compile.log:
>
> --snip--
>   checking for suffix of object files... configure: error: in
> `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
> make: *** [all] Error 2
> lfs@debian:/mnt/lfs/sources$
>
> --
> :-)~MIKE~(-:
>



-- 
:-)~MIKE~(-:
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to