[lfs-support] in "Binutils-2.22 - Pass 2" should patch the source before "cd ../binutils-build"

xinglp xinglp at gmail.com
Thu Mar 29 09:58:15 PDT 2012


在 2012年3月29日 下午11:58,Alexander Kapshuk <alexander.kapshuk at gmail.com> 写道:
>
>
> On Thu, Mar 29, 2012 at 6:10 PM, xinglp <xinglp at gmail.com> wrote:
>>
>> 在 2012年3月29日 下午11:03,Alexander Kapshuk <alexander.kapshuk at gmail.com> 写道:
>> > What patch would that be?
>> > The book doesn't mention any.
>>
>>
>> http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html
>> =====================================
>> 5.9.1. Installation of Binutils
>>
>> Create a separate build directory again:
>> mkdir -v ../binutils-build
>> cd ../binutils-build
>>
>> Apply a patch to prevent a build failure when using compiler
>> optimizations:
>> patch -Np1 -i ../binutils-2.22-build_fix-1.patch
>> =====================================
>> SHOULD BE
>> =====================================
>> Apply a patch to prevent a build failure when using compiler
>> optimizations:
>> patch -Np1 -i ../binutils-2.22-build_fix-1.patch
>>
>> Create a separate build directory again:
>> mkdir -v ../binutils-build
>> cd ../binutils-build
>> =====================================
>> >
>> >
>> > On Thu, Mar 29, 2012 at 5:35 PM, xinglp <xinglp at gmail.com> wrote:
>> >>
>> >>
>> >> --
>> >> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> >> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> >> Unsubscribe: See the above information page
>> >
>> >
>> >
>> > --
>> > http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> > FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> > Unsubscribe: See the above information page
>> >
>> --
>> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> Unsubscribe: See the above information page
>
> On the hind thought, correct me if I'm wrong but the original instructions
> seem to be OK.
> (1). The patch file would be in $LFS/sources
> (2). The archive containing binutils would be in $LFS/sources as well
> (3). Once unpacked, one would cd into the directory containing the unpacked
> files
> (4). Then, do 'mkdir ../binutils-build', with binutils-build residing in
> $LFS/sources
> (5). cd into ../binutils-build ($LFS/sources/binutils-build)
> (6). Apply the path: path -Np1 -i ../binutils...patch
> ($LFS/sources/binutils...patch)
After cd into ../binutils-build, you entered an empty directory,
and the command "patch -Np1 -i ../binutils-2.22-build_fix-1.patch" is
tring to apply diff to the empty current directory.

So it prints:

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>
|Date:                    2012-03-27
|Initial Package Version: 2.22
|Upstream Status:         From Upstream
|Origin:
http://lists.gnu.org/archive/html/bug-binutils/2011-10/msg00241.html
|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:

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



More information about the lfs-support mailing list