LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS-BOOK-SVN-20190908 chapter 6.10 adjusting toolchain can't find "ld-new" (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-book-svn-20190908-chapter-6-10-adjusting-toolchain-cant-find-ld-new-4175660738/)

Terry Coats 09-11-2019 02:14 PM

LFS-BOOK-SVN-20190908 chapter 6.10 adjusting toolchain can't find "ld-new"
 
Chapter 6.10 LFS-BOOK-SVN-20190908
I've been compiling this version of lfs with no problems
up until now. Here's the problem:
Code:

mv -v /tools/bin/{ld,ld-old}
mv -v /tools/$(uname -m)-pc-linux-gnu/bin/{ld,ld-old}
mv -v /tools/bin/{ld-new,ld}
ln -sv /tools/bin/ld /tools/$(uname -m)-pc-linux-gnu/bin/ld

The third line wants to move "ld-new' to "ld."
The problem is there is no "ld-new" in /tools/bin
and I don't see anywhere where it was created, like a step
is missing.Any suggestions on this?

Terry Coats 09-12-2019 12:04 AM

Never mind on this one. I bunged it up so bad trying
to fix it that I even lost the source folder and all
it contained plus the big html file with the book.
I'm usually better then this but I must have gotten
up to eat or something and completely lost my place
without realizing it. Sorry.

hazel 09-13-2019 06:33 AM

ld-new is created in the second pass of binutils in chapter 5. If you read the page carefully, you will see that after installing, you clear and rebuild the ld subdirectory. This creates a file called ld-new which you copy to /tools/bin by hand.

Terry Coats 09-13-2019 10:38 AM

Quote:

Originally Posted by hazel (Post 6036367)
ld-new is created in the second pass of binutils in chapter 5. If you read the page carefully, you will see that after installing, you clear and rebuild the ld subdirectory. This creates a file called ld-new which you copy to /tools/bin by hand.

Yeah, I finally realized I missed a step.I must have got up
to eat or go to the bathroom or something and lost my place
without realizing it. I'm usually pretty good at this having
done several lfs over the years. Now it's become just a slog.
In messing around trying to fix it I even ended up deleting
the whole sources directory and the big html containing the
book so it was a complete startover.I'm now at chapter 6.12
without problems so maybe I can complete this soon. Then on
to blfs.


All times are GMT -5. The time now is 01:01 AM.