On Mon, 2020-10-26 at 21:53 +0100, Pierre Labastie wrote:
> Please do not top post...
> 
> On Mon, 2020-10-26 at 13:54 -0600, Alexander Brassel wrote:
> > Hi Ken,
> > 
> > > The libgcc_s files should have been installed in $LFS/usr in gcc
> > > pass 2 at the end of chapter 6.  $LFS should be /mnt/lfs.  The
> > > only
> > > packages installed in /mnt/lfs/tools are binutils pass 1 and gcc
> > > pass 1.
> > 
> > That's interesting.  When I check the LFS users history, I find the
> > following commands:
> > 
> > ```
> > lfs:~$ cat ~/.bash_history  | grep -- --enable-languages=c,c++
> > ../configure                                           --
> > target=$LFS_TGT                                  --
> > prefix=$LFS/tools
> >                                --with-glibc-version=2.11          
> >  
> >              --with-sysroot=$LFS                                --
> > with-newlib                                      --without-headers
> >  
> >                                --enable-initfini-array            
> >  
> >              --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++
> 
> That is pass1
> 
> > ../configure                                           --
> > build=$(../config.guess)                         --host=$LFS_TGT  
> >  
> >                                --prefix=/usr                      
> >  
> >              CC_FOR_TARGET=$LFS_TGT-gcc                         --
> > with-build-sysroot=$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++
> > 
> 
> That is pass2, and it seems ok, but see below.
> 
> > 
> > > No idea why yours is different, but I wonder if you have passed
> > > 'tools' to a different package (before 10.0 we put a lot of
> > > things
> > > in tools, now we DESTDIR to $LFS/usr).
> > > 
> > For what it's worth here, I am using 10.0
> > 
> > I looked through all of the places I used destdir during temp
> > toolchain onwards.  I see the following:
> > ```
> > lfs:~$ cat ~/.bash_history  | grep -- DESTDIR                 
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install
> > make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install
> > make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > ./configure --prefix=/usr --host=$LFS_TGT && make -j8 && make
> > DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install -j8
> > make -j8 && make DESTDIR=$LFS install -j8
> > make DESTDIR=$LFS install
> > make DESTDIR=$LFS install -j8
> > ```
> > 
> > Don't seem to be any locations where `tool` is passed, and I have
> > $LFS in my /etc/environment (checked to make sure it is correctly
> > set
> > to `/mnt/lfs`)
> > 
> > When looking at chapter 6.18 (second pass of gcc) is the `--
> > prefix=usr` directive in configure be responsible for ensuring that
> > the gcc shared libs are installed correctly?
> 
> yes, but see below
> 
> > 
> > Additionally, is there any extra, helpful info that I could provide
> > to you?  I've proactively provided the contents of /usr, /lib, and
> > /usr/lib.
> > 
> > ```
> > lfs:~$ ls $LFS/usr
> > bin  include  lib  lib64  libexec  local  sbin share  src  var
> >  x86_64-lfs-linux-gnu
> > ```
> 
> Hmmm, shouldn't contain lib64...
> 
> > 
> > ```
> > lfs:~$ ls $LFS/lib
> > firmware libbz2.so.1.0    libgcc_s.so        libmount.so.1.1.0    
> >  libnss_db.so.2     libreadline.so.8    libutil-2.32.so
> > ld-2.32.so libbz2.so.1.0.8    libgcc_s.so.1      libmvec-2.32.so  
> >  
> >  [...]
> > ```
> 
> Ah, so here is libgcc_s.so !
> Something wrong again, It is normally in /usr/lib
> 
> > 
> > ```
> > lfs:~$ ls $LFS/usr/lib
> >  [...]
> > ```
> > 
> 
> In view of the fact that you have /usr/lib64, and that libgcc_s.so
> has
> been installed into $LFS/lib, I suspect there is something wrong in
> the
> sed at the beginning of gcc-pass2 installation. But that could be
> something else...
> 
> Note, a listing of /usr/lib64 may give some clue.

Ooops sorry: $LFS/usr/lib64

Pierre

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