linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Build failure on treeboot-walnut.c
@ 2007-09-25 22:46 Grant Likely
  2007-09-26  0:15 ` Josh Boyer
  2007-10-08 21:33 ` Timur Tabi
  0 siblings, 2 replies; 10+ messages in thread
From: Grant Likely @ 2007-09-25 22:46 UTC (permalink / raw)
  To: linuxppc-dev, Paul Mackerras, Josh Boyer

Building Paul's current powerpc branch with a ppc6xx compiler causes
the following build failure:

  SYSMAP  System.map
  BOOTCC  arch/powerpc/boot/treeboot-walnut.o
{standard input}: Assembler messages:
{standard input}:184: Error: Unrecognized opcode: `mfdcr'
{standard input}:185: Error: Unrecognized opcode: `mfdcr'
{standard input}:186: Error: Unrecognized opcode: `mfdcr'
{standard input}:217: Error: Unrecognized opcode: `mtdcr'
make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 1
make: *** [uImage] Error 2

This is using ELDK 4.1:
GNU assembler version 2.16.1 (powerpc-linux) using BFD version 2.16.1
gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-09-25 22:46 Grant Likely
@ 2007-09-26  0:15 ` Josh Boyer
  2007-10-08 21:33 ` Timur Tabi
  1 sibling, 0 replies; 10+ messages in thread
From: Josh Boyer @ 2007-09-26  0:15 UTC (permalink / raw)
  To: Grant Likely; +Cc: Paul Mackerras, linuxppc-dev

On Tue, 25 Sep 2007 16:46:17 -0600
"Grant Likely" <grant.likely@secretlab.ca> wrote:

> Building Paul's current powerpc branch with a ppc6xx compiler causes
> the following build failure:
> 
>   SYSMAP  System.map
>   BOOTCC  arch/powerpc/boot/treeboot-walnut.o
> {standard input}: Assembler messages:
> {standard input}:184: Error: Unrecognized opcode: `mfdcr'
> {standard input}:185: Error: Unrecognized opcode: `mfdcr'
> {standard input}:186: Error: Unrecognized opcode: `mfdcr'
> {standard input}:217: Error: Unrecognized opcode: `mtdcr'
> make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 1
> make: *** [uImage] Error 2
> 
> This is using ELDK 4.1:
> GNU assembler version 2.16.1 (powerpc-linux) using BFD version 2.16.1
> gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)

Fixed in my tree.  I'll ask Paul to pull soon.

josh

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-09-25 22:46 Grant Likely
  2007-09-26  0:15 ` Josh Boyer
@ 2007-10-08 21:33 ` Timur Tabi
  2007-10-09  4:00   ` Grant Likely
  1 sibling, 1 reply; 10+ messages in thread
From: Timur Tabi @ 2007-10-08 21:33 UTC (permalink / raw)
  To: Grant Likely; +Cc: Paul Mackerras, linuxppc-dev

Looks like the problem is back:

   BOOTCC  arch/powerpc/boot/treeboot-walnut.o
Assembler messages:
Error: Internal assembler error for instruction icbt
Internal error, aborting at 
/tmp/crosstool/crosstool-0.42/build/powerpc-unknown-linux-gnu/gcc-4.0.2_e300-enabled-glibc-2.3.6/binutils-2.16.1-complete/gas/config/tc-ppc.c 
line 1314 in ppc_setup_opcodes
Please report this bug.
make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
make: *** [uImage] Error 2

Question: I'm building a kernel for the 8610.  Why is treeboot-walnut.c being 
compiled at all?

Grant Likely wrote:
> Building Paul's current powerpc branch with a ppc6xx compiler causes
> the following build failure:
> 
>   SYSMAP  System.map
>   BOOTCC  arch/powerpc/boot/treeboot-walnut.o
> {standard input}: Assembler messages:
> {standard input}:184: Error: Unrecognized opcode: `mfdcr'
> {standard input}:185: Error: Unrecognized opcode: `mfdcr'
> {standard input}:186: Error: Unrecognized opcode: `mfdcr'
> {standard input}:217: Error: Unrecognized opcode: `mtdcr'
> make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 1
> make: *** [uImage] Error 2
> 
> This is using ELDK 4.1:
> GNU assembler version 2.16.1 (powerpc-linux) using BFD version 2.16.1
> gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)
> 
> Cheers,
> g.
> 


-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-10-08 21:33 ` Timur Tabi
@ 2007-10-09  4:00   ` Grant Likely
  2007-10-09 13:30     ` Kumar Gala
  0 siblings, 1 reply; 10+ messages in thread
From: Grant Likely @ 2007-10-09  4:00 UTC (permalink / raw)
  To: Timur Tabi; +Cc: Paul Mackerras, linuxppc-dev

On 10/8/07, Timur Tabi <timur@freescale.com> wrote:
> Looks like the problem is back:
>
>    BOOTCC  arch/powerpc/boot/treeboot-walnut.o
> Assembler messages:
> Error: Internal assembler error for instruction icbt
> Internal error, aborting at
> /tmp/crosstool/crosstool-0.42/build/powerpc-unknown-linux-gnu/gcc-4.0.2_e300-enabled-glibc-2.3.6/binutils-2.16.1-complete/gas/config/tc-ppc.c
> line 1314 in ppc_setup_opcodes
> Please report this bug.
> make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
> make: *** [uImage] Error 2

No; this is something different.  The assember itself is failing
internally.  What version of binutils are you running?

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-10-09  4:00   ` Grant Likely
@ 2007-10-09 13:30     ` Kumar Gala
  2007-10-09 14:44       ` Timur Tabi
  0 siblings, 1 reply; 10+ messages in thread
From: Kumar Gala @ 2007-10-09 13:30 UTC (permalink / raw)
  To: Grant Likely; +Cc: PowerPC dev list, Paul Mackerras, Timur Tabi


On Oct 8, 2007, at 11:00 PM, Grant Likely wrote:

> On 10/8/07, Timur Tabi <timur@freescale.com> wrote:
>> Looks like the problem is back:
>>
>>    BOOTCC  arch/powerpc/boot/treeboot-walnut.o
>> Assembler messages:
>> Error: Internal assembler error for instruction icbt
>> Internal error, aborting at
>> /tmp/crosstool/crosstool-0.42/build/powerpc-unknown-linux-gnu/ 
>> gcc-4.0.2_e300-enabled-glibc-2.3.6/binutils-2.16.1-complete/gas/ 
>> config/tc-ppc.c
>> line 1314 in ppc_setup_opcodes
>> Please report this bug.
>> make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
>> make: *** [uImage] Error 2
>
> No; this is something different.  The assember itself is failing
> internally.  What version of binutils are you running?
>

2.61.1 if we believe his path :)

the assembler is failing because 'icbt' has several possible  
different instruction encodings and I'm guessing he's getting a  
conflict set.

What's the actual compile line?  Want to see the flags to assembler  
of -Wa to the compiler.

- k

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-10-09 13:30     ` Kumar Gala
@ 2007-10-09 14:44       ` Timur Tabi
  2007-10-09 14:51         ` Geert Uytterhoeven
  2007-10-09 14:51         ` Kumar Gala
  0 siblings, 2 replies; 10+ messages in thread
From: Timur Tabi @ 2007-10-09 14:44 UTC (permalink / raw)
  To: Kumar Gala; +Cc: PowerPC dev list, Paul Mackerras

Kumar Gala wrote:

> What's the actual compile line?  Want to see the flags to assembler of 
> -Wa to the compiler.

How do I modify the makefiles to spit out that command line?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-10-09 14:44       ` Timur Tabi
@ 2007-10-09 14:51         ` Geert Uytterhoeven
  2007-10-09 14:51         ` Kumar Gala
  1 sibling, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2007-10-09 14:51 UTC (permalink / raw)
  To: Timur Tabi; +Cc: PowerPC dev list, Paul Mackerras

[-- Attachment #1: Type: TEXT/PLAIN, Size: 840 bytes --]

On Tue, 9 Oct 2007, Timur Tabi wrote:
> Kumar Gala wrote:
> 
> > What's the actual compile line?  Want to see the flags to assembler of 
> > -Wa to the compiler.
> 
> How do I modify the makefiles to spit out that command line?

make V=1

With kind regards,
 
Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
 
Phone:    +32 (0)2 700 8453	
Fax:      +32 (0)2 700 8622	
E-mail:   Geert.Uytterhoeven@sonycom.com	
Internet: http://www.sony-europe.com/
 	
Sony Network and Software Technology Center Europe	
A division of Sony Service Centre (Europe) N.V.	
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium	
VAT BE 0413.825.160 · RPR Brussels	
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-10-09 14:44       ` Timur Tabi
  2007-10-09 14:51         ` Geert Uytterhoeven
@ 2007-10-09 14:51         ` Kumar Gala
  2007-10-09 14:54           ` Timur Tabi
  1 sibling, 1 reply; 10+ messages in thread
From: Kumar Gala @ 2007-10-09 14:51 UTC (permalink / raw)
  To: Timur Tabi; +Cc: PowerPC dev list, Paul Mackerras


On Oct 9, 2007, at 9:44 AM, Timur Tabi wrote:

> Kumar Gala wrote:
>
>> What's the actual compile line?  Want to see the flags to  
>> assembler of -Wa to the compiler.
>
> How do I modify the makefiles to spit out that command line?

try

$ make V=1

- k

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
  2007-10-09 14:51         ` Kumar Gala
@ 2007-10-09 14:54           ` Timur Tabi
  0 siblings, 0 replies; 10+ messages in thread
From: Timur Tabi @ 2007-10-09 14:54 UTC (permalink / raw)
  To: Kumar Gala; +Cc: PowerPC dev list, Paul Mackerras

Kumar Gala wrote:

> $ make V=1

make ARCH=ppc64 -f scripts/Makefile.build obj=arch/powerpc/boot 
arch/powerpc/boot/uImage powerpc-unknown-linux-gnu-gcc -m32 
-Wp,-MD,arch/powerpc/boot/.treeboot-walnut.o.d -Wall -Wundef 
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -Os -msoft-float -pipe 
-fomit-frame-pointer -fno-builtin -fPIC -nostdinc -isystem 
/_TOOLS_/.dist0/gnu-gcc-4.0.2-binutils-2.16.1-glibc-2.3.6-e300c2-powerpc-unknown-linux-gnu/i686-pc-linux2.4/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/include 
-Iarch/powerpc/boot -I/temp/kumar.484/arch/powerpc/boot -mcpu=405 -c -o 
arch/powerpc/boot/treeboot-walnut.o arch/powerpc/boot/treeboot-walnut.c
Assembler messages:
Error: Internal assembler error for instruction icbt
Internal error, aborting at 
/tmp/crosstool/crosstool-0.42/build/powerpc-unknown-linux-gnu/gcc-4.0.2_e300-enabled-glibc-2.3.6/binutils-2.16.1-complete/gas/config/tc-ppc.c 
line 1314 in ppc_setup_opcodes
Please report this bug.
make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
make: *** [uImage] Error 2

ARCH=ppc64?  WTF?  I specifically said ARCH=powerpc on the make command line.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Build failure on treeboot-walnut.c
@ 2008-02-18 15:46 maxime louvel
  0 siblings, 0 replies; 10+ messages in thread
From: maxime louvel @ 2008-02-18 15:46 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]

Kumar Gala wrote:

> $ make V=1

> make ARCH=ppc64 -f scripts/Makefile.build obj=arch/powerpc/boot
> arch/powerpc/boot/uImage powerpc-unknown-linux-gnu-gcc -m32
>- Wp,-MD,arch/powerpc/boot/.treeboot-walnut.o.d -Wall -Wundef
>- Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -Os -msoft-float
-pipe
>- fomit-frame-pointer -fno-builtin -fPIC -nostdinc -isystem
> /_TOOLS_/.dist0/gnu-
gcc-4.0.2-binutils-2.16.1-glibc-2.3.6-e300c2-powerpc-unknown-linux-gnu/i686-
pc-linux2.4/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/include -
Iarch/powerpc/boot -I/temp/kumar.484/arch/powerpc/boot -mcpu=405 -c -o
> arch/powerpc/boot/treeboot-walnut.o arch/powerpc/boot/treeboot-walnut.c
> Assembler messages:
> Error: Internal assembler error for instruction icbt
> Internal error, aborting at
> /tmp/crosstool/crosstool-0.42/build/powerpc-unknown-linux-gnu/gcc-
4.0.2_e300-enabled-glibc-2.3.6/binutils-2.16.1-complete/gas/config/tc-ppc.c
> line 1314 in ppc_setup_opcodes
> Please report this bug.
> make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
> make: *** [uImage] Error 2
>
>ARCH=ppc64?  WTF?  I specifically said ARCH=powerpc on the make command
line.

I have got the exact same problem.
Has the problem been sovled ?

I am trying to compile a 2.6.24 kernel (vanilla + some board specific stuff)
with a vanilla gcc-4.1.2 with the flag -msoft-float.

cheers,
Maxime
-- 
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom

[-- Attachment #2: Type: text/html, Size: 1657 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-02-18 15:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18 15:46 Build failure on treeboot-walnut.c maxime louvel
  -- strict thread matches above, loose matches on Subject: below --
2007-09-25 22:46 Grant Likely
2007-09-26  0:15 ` Josh Boyer
2007-10-08 21:33 ` Timur Tabi
2007-10-09  4:00   ` Grant Likely
2007-10-09 13:30     ` Kumar Gala
2007-10-09 14:44       ` Timur Tabi
2007-10-09 14:51         ` Geert Uytterhoeven
2007-10-09 14:51         ` Kumar Gala
2007-10-09 14:54           ` Timur Tabi

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).