> Date: Sat, 26 Jul 2014 10:58:53 -0500
> From: Bruce Dubbs <[email protected]>
> To: LFS Support List <[email protected]>
> Subject: Re: [lfs-support] gcc test compilation in step 5.7 fails due to ld
>  issue
>
> Geert Vanderpijpen wrote:
> > Hello all,
> >
> >
> > I'm having trouble with the gcc test compilation in step 5.7:
> >
> > lfs@geertvdp-VirtualBoxLFS:/mnt/lfs/sources/glibc-build > $LFS_TGT-gcc
> > dummy.c
> > /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld:
> > cannot find crt1.o: No such file or directory
> > /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld:
> > cannot find crti.o: No such file or directory
> > collect2: error: ld returned 1 exit status
> > lfs@geertvdp-VirtualBoxLFS:/mnt/lfs/sources/glibc-build >
> >


Per standard practice, it's often better if you post not just the
error-message line(s), but also some of the lines before (and sometimes
after) to give better context; exactly how much to include usually is
reasonably clear after a bit of familiarity with config/make error sequences.


> > My host system is Linux Mint Cinammon 17 on a Virtualbox 3.2.14 setup.
> > The version of the LFS book is 7.5
> > I did not derive from the book's instructions


( s/derive/deviate/ ; tho' 'derive' does make ~same sense.)


> >
> > I tested the compilation by passing the library location:
> >
> > lfs@geertvdp-VirtualBoxLFS:/mnt/lfs/sources/glibc-build > $LFS_TGT-gcc
> > -B/tools/lib dummy.c
> > lfs@geertvdp-VirtualBoxLFS:/mnt/lfs/sources/glibc-build >
> >
> > So that works
> >
> > I can see in the filesystem that the 2 files are present on the expected
> > location:
> >
> > lfs@geertvdp-VirtualBoxLFS:/mnt/lfs/sources/glibc-build > $LFS_TGT-gcc
> > -B/tools/lib dummy.c
> > lfs@geertvdp-VirtualBoxLFS:/mnt/lfs/sources/glibc-build >
> >
> > I thought that the issue was that the config script for binutils in section
> > 5.4.1 didn't get the correct --with-lib-path value, so I rebuilt it with
> > extra caution to that point, but the result is the same
> >
> > Anybody an idea what is going on here?


Those 'cannot find crti.o' / 'cannot find crt1.o' errors are often (ref
web-search results) the result of relatively straightforward oversight on
the part of the user, in the preceding pages/chapters of the book. Have
you double-checked that you haven't made any errors - including omissions -
there: and in particular (but not limited to) version-checks, bash-startup
files (contents, and 'source'-ing), environment settings, filesystem,
&c. What is the output of your version-check?



>
> We don't recommend running the tests in Chapter 5 because you are 
> testing with the host environment, not the new LFS system.  I suggest 
> waiting and running the tests when you build the package in Chapter 6.
>
>    -- Bruce


IIUIC: OP (Geert) is talking about the test-compilation (of dummy.c) and
not running package's test-suites per se; and so the test that OP (Geert)
is talking about here, definitely _should_ be done - yea unto even ;) some
might say that "it is imperative to stop and ensure".



rgds,
akh





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

Reply via email to