On Sat, 2020-05-02 at 10:55 +0800, Xi Ruoyao via lfs-dev wrote:
> On 2020-05-01 20:51 -0500, Douglas R. Reno via lfs-dev wrote:
> > On 5/1/20 8:53 AM, Pierre Labastie via lfs-dev wrote:
> > >    cons: chroot is entered in the middle of chapter 5 (maybe
> > > chapter 5
> > > should be split), the debug sections of several packages
> > > reference
> > > x86_64-lfs-linux-gnu instead of x86_64-pc-linux-gnu, binutils-
> > > pass2
> > > needs "enable-shared".
> > 
> > The debug information being broken is a major dealbreaker for me. I
> > use 
> > the debug information from these packages semi-frequently and not
> > having 
> > that at my disposal would make things a lot tougher for me.
> 
> Hopefully we can fix the debug info with some -ffile-prefix-map
> parameter in
> $CC.

Yes, This can be done, but it is messy:
LFS_DIR=/usr/lib/gcc/$(uname -m)-lfs-linux-gnu
DIR=/usr/lib/gcc/$(../scripts/config.guess)
../configure --prefix=/usr                            \
             CC="gcc -ffile-prefix-map=$LFS_DIR=$DIR" blah

But actually, the fact that the debug sections reference a wrong source
location does not prevent using gdb in this case: the sources
referenced are private gcc headers, which don't generate code, so are not used 
by gdb.

Pierre

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

Reply via email to