* Re: [BUG] as of trunk build Linux kernel trunk entry_32.S got error
[not found] <AANLkTimqT82wR20vvunnMvNShFSs0zWtmeT66A84Nh5t@mail.gmail.com>
@ 2011-03-03 13:48 ` H.J. Lu
2011-03-03 14:30 ` Alan Modra
0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2011-03-03 13:48 UTC (permalink / raw)
To: Hui Zhu, LKML, H. Peter Anvin; +Cc: binutils
On Wed, Mar 2, 2011 at 10:16 PM, Hui Zhu <teawater@gmail.com> wrote:
> as -version
> GNU assembler (GNU Binutils) 2.21.51.20110303
> AS arch/x86/kernel/entry_32.o
> /home/teawater/big/kernel/linux-2.6/arch/x86/kernel/entry_32.S:
> Assembler messages:
> /home/teawater/big/kernel/linux-2.6/arch/x86/kernel/entry_32.S:1422:
> Error: .size expression does not evaluate to a constant
>
> When I change back to the as of system, everything is OK.
>
> Because I always use the as of trunk, so I think a recent PATCH caused
> the problem.
>
You need
http://git.kernel.org/?p=linux/kernel/git/hjl/linux-2.6.37.y.git;a=commitdiff;h=2c5ce9c1b8eb927c131a31d4466e24e00647e9cb
--
H.J.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] as of trunk build Linux kernel trunk entry_32.S got error
2011-03-03 13:48 ` [BUG] as of trunk build Linux kernel trunk entry_32.S got error H.J. Lu
@ 2011-03-03 14:30 ` Alan Modra
2011-03-03 14:36 ` H.J. Lu
0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2011-03-03 14:30 UTC (permalink / raw)
To: H.J. Lu; +Cc: Hui Zhu, LKML, H. Peter Anvin, binutils
On Thu, Mar 03, 2011 at 05:48:01AM -0800, H.J. Lu wrote:
> On Wed, Mar 2, 2011 at 10:16 PM, Hui Zhu <teawater@gmail.com> wrote:
> > as -version
> > GNU assembler (GNU Binutils) 2.21.51.20110303
> > AS arch/x86/kernel/entry_32.o
> > /home/teawater/big/kernel/linux-2.6/arch/x86/kernel/entry_32.S:
> > Assembler messages:
> > /home/teawater/big/kernel/linux-2.6/arch/x86/kernel/entry_32.S:1422:
> > Error: .size expression does not evaluate to a constant
> >
> > When I change back to the as of system, everything is OK.
> >
> > Because I always use the as of trunk, so I think a recent PATCH caused
> > the problem.
> >
>
> You need
>
> http://git.kernel.org/?p=linux/kernel/git/hjl/linux-2.6.37.y.git;a=commitdiff;h=2c5ce9c1b8eb927c131a31d4466e24e00647e9cb
That doesn't fix the similar entry_32.S problem. Here you go.
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index c8b4efa..9ca3b0e 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -1413,7 +1413,7 @@ ENTRY(async_page_fault)
CFI_ADJUST_CFA_OFFSET 4
jmp error_code
CFI_ENDPROC
-END(apf_page_fault)
+END(async_page_fault)
#endif
/*
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [BUG] as of trunk build Linux kernel trunk entry_32.S got error
2011-03-03 14:30 ` Alan Modra
@ 2011-03-03 14:36 ` H.J. Lu
0 siblings, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2011-03-03 14:36 UTC (permalink / raw)
To: Hui Zhu, LKML, H. Peter Anvin, binutils; +Cc: Alan Modra
On Thu, Mar 3, 2011 at 6:30 AM, Alan Modra <amodra@gmail.com> wrote:
> On Thu, Mar 03, 2011 at 05:48:01AM -0800, H.J. Lu wrote:
>> On Wed, Mar 2, 2011 at 10:16 PM, Hui Zhu <teawater@gmail.com> wrote:
>> > as -version
>> > GNU assembler (GNU Binutils) 2.21.51.20110303
>> > AS arch/x86/kernel/entry_32.o
>> > /home/teawater/big/kernel/linux-2.6/arch/x86/kernel/entry_32.S:
>> > Assembler messages:
>> > /home/teawater/big/kernel/linux-2.6/arch/x86/kernel/entry_32.S:1422:
>> > Error: .size expression does not evaluate to a constant
>> >
>> > When I change back to the as of system, everything is OK.
>> >
>> > Because I always use the as of trunk, so I think a recent PATCH caused
>> > the problem.
>> >
>>
>> You need
>>
>> http://git.kernel.org/?p=linux/kernel/git/hjl/linux-2.6.37.y.git;a=commitdiff;h=2c5ce9c1b8eb927c131a31d4466e24e00647e9cb
>
> That doesn't fix the similar entry_32.S problem. Here you go.
>
> diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
> index c8b4efa..9ca3b0e 100644
> --- a/arch/x86/kernel/entry_32.S
> +++ b/arch/x86/kernel/entry_32.S
> @@ -1413,7 +1413,7 @@ ENTRY(async_page_fault)
> CFI_ADJUST_CFA_OFFSET 4
> jmp error_code
> CFI_ENDPROC
> -END(apf_page_fault)
> +END(async_page_fault)
> #endif
>
> /*
>
The assembler error message is very vague about mismactched
.size location. I guess we don't have the infrastructure to provide
better diagnostics.
--
H.J.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-03 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <AANLkTimqT82wR20vvunnMvNShFSs0zWtmeT66A84Nh5t@mail.gmail.com>
2011-03-03 13:48 ` [BUG] as of trunk build Linux kernel trunk entry_32.S got error H.J. Lu
2011-03-03 14:30 ` Alan Modra
2011-03-03 14:36 ` H.J. Lu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.