error compiling ptrace in current mainline git
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
Quoted 9 lines · Chris Friesen
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>
Quoted 2 lines
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
Quoted 23 lines · Chris Friesen
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
Quoted 2 lines
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.
Quoted 16 lines · Tony Breeds
Quoted 9 lines · Chris Friesen
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>
Quoted 2 lines
Any ideas on how to deal with this? Is this a code error or a compiler error?
Quoted 7 lines
It could be either can you:
a) try the 4.6.3 cross compiler from: https://www.kernel.org/pub/tools/crosstool/
b) Try appc64_defconfigbuild.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
Quoted 2 lines
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
Quoted 24 lines · Benjamin Herrenschmidt
Quoted 23 lines · Chris Friesen
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
Quoted 5 lines
Quoted 2 lines
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