> > > > Ref:
> > > > 
> > > > Linux From Scratch - Version SVN-20181029 Chapter 5. Constructing 
> > > > a Temporary System 5.5. GCC-8.2.0 - Pass 1
> > > > 
> > > > Using the latest script to update the dynamic linker results in gcc 
> > > > failing to build.
> > > > 
> > > > Using a previous script fixes the problem.
> > > > 
> > > > Details below.
> > > > 
> > > > 
> > > > 
> > > > This script:
> > > > 
> > > > for file in gcc/config/{linux,i386/linux{,64}}.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
> > > > 
> > > This script has been in the book for a couple of years. It is hard 
> > > to believe that nobody else has seen a failure if it is wrong.
> > > 
> > > Maybe your system is not recognized as either i386 or x86_64, or not as 
> > > linux?
> > > 
> > > Are you building on a Mac, Unix derivate or raspberry pi? What is the
> > > response of the " arch" command?
> > > 
> > I'm building on a linux machine recognised as x86_64 and I tried three
> > separate times...
> > 
> whats the output of "uname -a" ? (i assume Julius meant this by "arch"
> command).
> Append the output of "gcc -v --version"
> 
On the host machine:

$ uname -a
Linux boxdell 4.14.10-tinycore64 #2018 SMP Mon Jan 1 16:07:42 UTC 2018 x86_64 
GNU/Linux

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/usr/local --enable-languages=c,c++ 
--disable-multilib --disable-bootstrap --with-system-zlib 
--libexecdir=/usr/local/lib --enable-frame-pointer --with-mpfr=/usr/local 
--with-gmp=/usr/local --with-cloog=/usr/local --with-isl=/usr/local
Thread model: posix
gcc version 7.2.0 (GCC)

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to