LFS: Error during Binutils-2.22 - Pass 1 (Section 5.4, LFS 7.2)
I'm new to LFS, and started building version 7.2, by following the book. Everything worked fine until I reached section 5.2, where it starts installing Binutils-2.22-Pass 1. I'm currently logged in as the user lfs, which has the home directory in /home/lfs as the book suggests. If I run the following command as lfs user I get the following error:
patch -Np1 -i ../binutils-2.22-build_fix-1.patch
patch: **** Can't open patch file ../binutils-2.22-build_fix-1.patch : No such file or directory
The point that confuses me is the part before binutils which is ../
So, why should I use it? What's the point of it? Or should I change it to something?
But if I use the following command instead:
patch -Np1 -i $LFS/sources/binutils-2.22-build_fix-1.patch
Then, I get these lines:
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|Submitted By: Matt Burgess <matthew_at_linuxfromscratch_dot_org>
|Initial Package Version: 2.22
|Upstream Status: From Upstream
|Description: Fixes a build failure when using -O3 compiler flag
|diff -Naur binutils-2.22.orig/opcodes/ChangeLog binutils-2.22/opcodes/ChangeLog
|--- binutils-2.22.orig/opcodes/ChangeLog 2011-11-21 09:29:39.000000000 +0000
|+++ binutils-2.22/opcodes/ChangeLog 2012-03-27 19:49:36.299866714 +0000
File to patch:
And it is waiting me to enter a file to patch. If someone can help me, I would be glad.
You should read more carefully :)
This from: 5.3. General Compilation Instructions
Before you start do make sure your host is compliant.
That said where did you put the patch file it should be in /mnt/lfs/sources.
Unpack binutils tar then cd into binutils-2.22 dir before running commands
Thanks guys, it solved the problem!
If your problem was solved don't forget to mark the thread SOLVED ... It's good manners.
|All times are GMT -5. The time now is 06:59 PM.|