* error compiling ptrace in current mainline git
@ 2013-07-12 16:27 Chris Friesen
2013-07-12 22:31 ` Tony Breeds
2013-07-12 23:03 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 5+ messages in thread
From: Chris Friesen @ 2013-07-12 16:27 UTC (permalink / raw)
To: Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Hi all,
I'm trying to build current mainline git with gcc version 4.4.1 as a
cross compiler and I'm getting the following:
CC arch/powerpc/kernel/ptrace.o
{standard input}: Assembler messages:
{standard input}:1619: Error: junk at end of line: `1'
{standard input}:2074: Error: junk at end of line: `1'
{standard input}:2742: Error: junk at end of line: `1'
{standard input}:2855: Error: junk at end of line: `1'
{standard input}:2943: Error: junk at end of line: `1'
{standard input}:4699: Error: junk at end of line: `1'
{standard input}:4794: Error: junk at end of line: `1'
{standard input}:4915: Error: junk at end of line: `1'
{standard input}:4985: Error: junk at end of line: `1'
{standard input}:5087: Error: junk at end of line: `1'
make[2]: *** [arch/powerpc/kernel/ptrace.o] Error 1
make[1]: *** [arch/powerpc/kernel] Error 2
make: *** [sub-make] Error 2
Any ideas on how to deal with this? Is this a code error or a compiler
error?
Chris
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error compiling ptrace in current mainline git
2013-07-12 16:27 error compiling ptrace in current mainline git Chris Friesen
@ 2013-07-12 22:31 ` Tony Breeds
2013-07-12 23:40 ` Chris Friesen
2013-07-12 23:03 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 5+ messages in thread
From: Tony Breeds @ 2013-07-12 22:31 UTC (permalink / raw)
To: Chris Friesen; +Cc: Paul Mackerras, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 912 bytes --]
On Fri, Jul 12, 2013 at 10:27:41AM -0600, Chris Friesen wrote:
> Hi all,
>
> I'm trying to build current mainline git with gcc version 4.4.1 as a
> cross compiler and I'm getting the following:
>
>
> CC arch/powerpc/kernel/ptrace.o
> {standard input}: Assembler messages:
> {standard input}:1619: Error: junk at end of line: `1'
<snip>
> Any ideas on how to deal with this? Is this a code error or a
> compiler error?
It could be either can you:
a) try the 4.6.3 cross compiler from: https://www.kernel.org/pub/tools/crosstool/
b) Try a ppc64_defconfig build.
If the newer compiler with your .config fixes it it's a compiler issue.
If chaning the config with you 4.4.1 compiler fixes it please post you
.config to see if we can work out what's going on.
Also when you say "current mainline git" I assume you mean the HEAD of
linus's tree not Ben's right?
Yours Tony
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error compiling ptrace in current mainline git
2013-07-12 16:27 error compiling ptrace in current mainline git Chris Friesen
2013-07-12 22:31 ` Tony Breeds
@ 2013-07-12 23:03 ` Benjamin Herrenschmidt
2013-07-12 23:44 ` Chris Friesen
1 sibling, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2013-07-12 23:03 UTC (permalink / raw)
To: Chris Friesen; +Cc: linuxppc-dev, Paul Mackerras
On Fri, 2013-07-12 at 10:27 -0600, Chris Friesen wrote:
> Hi all,
>
> I'm trying to build current mainline git with gcc version 4.4.1 as a
> cross compiler and I'm getting the following:
>
>
> CC arch/powerpc/kernel/ptrace.o
> {standard input}: Assembler messages:
> {standard input}:1619: Error: junk at end of line: `1'
> {standard input}:2074: Error: junk at end of line: `1'
> {standard input}:2742: Error: junk at end of line: `1'
> {standard input}:2855: Error: junk at end of line: `1'
> {standard input}:2943: Error: junk at end of line: `1'
> {standard input}:4699: Error: junk at end of line: `1'
> {standard input}:4794: Error: junk at end of line: `1'
> {standard input}:4915: Error: junk at end of line: `1'
> {standard input}:4985: Error: junk at end of line: `1'
> {standard input}:5087: Error: junk at end of line: `1'
> make[2]: *** [arch/powerpc/kernel/ptrace.o] Error 1
> make[1]: *** [arch/powerpc/kernel] Error 2
> make: *** [sub-make] Error 2
>
>
> Any ideas on how to deal with this? Is this a code error or a compiler
> error?
Can you send the .s and .i files ? Also you can try with newer compilers
(there are some cross compilers on kernel.org)
Cheers,
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error compiling ptrace in current mainline git
2013-07-12 22:31 ` Tony Breeds
@ 2013-07-12 23:40 ` Chris Friesen
0 siblings, 0 replies; 5+ messages in thread
From: Chris Friesen @ 2013-07-12 23:40 UTC (permalink / raw)
To: Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
On 07/12/2013 04:31 PM, Tony Breeds wrote:
> On Fri, Jul 12, 2013 at 10:27:41AM -0600, Chris Friesen wrote:
>> Hi all,
>>
>> I'm trying to build current mainline git with gcc version 4.4.1 as a
>> cross compiler and I'm getting the following:
>>
>>
>> CC arch/powerpc/kernel/ptrace.o
>> {standard input}: Assembler messages:
>> {standard input}:1619: Error: junk at end of line: `1'
>
> <snip>
>
>> Any ideas on how to deal with this? Is this a code error or a
>> compiler error?
>
> It could be either can you:
> a) try the 4.6.3 cross compiler from: https://www.kernel.org/pub/tools/crosstool/
> b) Try a ppc64_defconfig build.
>
> If the newer compiler with your .config fixes it it's a compiler issue.
> If chaning the config with you 4.4.1 compiler fixes it please post you
> .config to see if we can work out what's going on.
I used the 4.6.3 cross compiler for x86_64 from the above location. It
seems to be able to build arch/powerpc/kernel/ptrace.c, but then it
gives a different error:
CC arch/powerpc/kernel/epapr_paravirt.o
AS arch/powerpc/kernel/epapr_hcalls.o
CC arch/powerpc/kernel/prom_init.o
AS arch/powerpc/kernel/head_64.o
/tmp/ccnAw2ZB.s: Assembler messages:
/tmp/ccnAw2ZB.s: Internal error, aborting at
/home/tony/buildall/src/binutils/gas/config/tc-ppc.c line 6351 in
md_apply_fix
Please report this bug.
make[2]: *** [arch/powerpc/kernel/head_64.o] Error 1
> Also when you say "current mainline git" I assume you mean the HEAD of
> linus's tree not Ben's right?
Yes, that's correct.
Chris
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error compiling ptrace in current mainline git
2013-07-12 23:03 ` Benjamin Herrenschmidt
@ 2013-07-12 23:44 ` Chris Friesen
0 siblings, 0 replies; 5+ messages in thread
From: Chris Friesen @ 2013-07-12 23:44 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, Paul Mackerras
[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]
On 07/12/2013 05:03 PM, Benjamin Herrenschmidt wrote:
> On Fri, 2013-07-12 at 10:27 -0600, Chris Friesen wrote:
>> Hi all,
>>
>> I'm trying to build current mainline git with gcc version 4.4.1 as a
>> cross compiler and I'm getting the following:
>>
>>
>> CC arch/powerpc/kernel/ptrace.o
>> {standard input}: Assembler messages:
>> {standard input}:1619: Error: junk at end of line: `1'
>> {standard input}:2074: Error: junk at end of line: `1'
>> {standard input}:2742: Error: junk at end of line: `1'
>> {standard input}:2855: Error: junk at end of line: `1'
>> {standard input}:2943: Error: junk at end of line: `1'
>> {standard input}:4699: Error: junk at end of line: `1'
>> {standard input}:4794: Error: junk at end of line: `1'
>> {standard input}:4915: Error: junk at end of line: `1'
>> {standard input}:4985: Error: junk at end of line: `1'
>> {standard input}:5087: Error: junk at end of line: `1'
>> make[2]: *** [arch/powerpc/kernel/ptrace.o] Error 1
>> make[1]: *** [arch/powerpc/kernel] Error 2
>> make: *** [sub-make] Error 2
>>
>>
>> Any ideas on how to deal with this? Is this a code error or a compiler
>> error?
>
> Can you send the .s and .i files ? Also you can try with newer compilers
> (there are some cross compilers on kernel.org)
Here are the two files. My resuilts with a newer compiler is in my
other message.
Chris
[-- Attachment #2: ptrace_files.tar.bz2 --]
[-- Type: application/x-bzip, Size: 190755 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-07-12 23:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-12 16:27 error compiling ptrace in current mainline git Chris Friesen
2013-07-12 22:31 ` Tony Breeds
2013-07-12 23:40 ` Chris Friesen
2013-07-12 23:03 ` Benjamin Herrenschmidt
2013-07-12 23:44 ` Chris Friesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).