mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* metag build errors in mainline kernel
@ 2018-02-20 23:44 Guenter Roeck
  2018-02-21 12:27 ` James Hogan
  0 siblings, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2018-02-20 23:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-metag, James Hogan

The following errors are seen when building the kernel with the latest
available metag toolchain (4.2.4 (IMG-1.4.0.700)). Kernel version tested
is (v4.16-rc2-64-gaf3e79d29555).

metag:allmodconfig

arch/metag/kernel/devtree.c:54: error: implicit declaration of function 'pr_info'

arch/metag/kernel/perf/perf_event.c:831: error: label ‘out’ used but not defined
arch/metag/kernel/perf/perf_event.c:822: warning: unused variable ‘cpu’

metag:meta2_smp_defconfig

kernel/time/hrtimer.c: In function 'hrtimer_run_softirq':
time/hrtimer.c:1431: error: unable to find a register to spill in class 'Yr_REGS'
time/hrtimer.c:1431: error: this is the insn:
(insn:HI 41 40 99 2 kernel/time/hrtimer.c:576 (set (mem/s/j:DI (plus:SI (reg/f:SI 15 D1.7 [orig:84 D.45290 ] [84])
                (const_int 368 [0x170])) [0 <variable>.offset+0 S8 A128])
	(reg:DI 99 [ <variable>.offset ])) 211 {*sto_di_1_1_off12} (nil)
    (expr_list:REG_DEAD (reg:DI 99 [ <variable>.offset ])
	(nil)))
kernel/time/hrtimer.c:1431: confused by earlier errors, bailing out

Guenter

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

* Re: metag build errors in mainline kernel
  2018-02-20 23:44 metag build errors in mainline kernel Guenter Roeck
@ 2018-02-21 12:27 ` James Hogan
  2018-02-21 13:53   ` Graham Whaley
  2018-02-21 14:16   ` Guenter Roeck
  0 siblings, 2 replies; 4+ messages in thread
From: James Hogan @ 2018-02-21 12:27 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-kernel, linux-metag

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

On Tue, Feb 20, 2018 at 03:44:43PM -0800, Guenter Roeck wrote:
> The following errors are seen when building the kernel with the latest
> available metag toolchain (4.2.4 (IMG-1.4.0.700)). Kernel version tested
> is (v4.16-rc2-64-gaf3e79d29555).
> 
> metag:allmodconfig
> 
> arch/metag/kernel/devtree.c:54: error: implicit declaration of function 'pr_info'
> 
> arch/metag/kernel/perf/perf_event.c:831: error: label ‘out’ used but not defined
> arch/metag/kernel/perf/perf_event.c:822: warning: unused variable ‘cpu’

Thanks, these are easy enough for me to fix up.

> 
> metag:meta2_smp_defconfig
> 
> kernel/time/hrtimer.c: In function 'hrtimer_run_softirq':
> time/hrtimer.c:1431: error: unable to find a register to spill in class 'Yr_REGS'
> time/hrtimer.c:1431: error: this is the insn:
> (insn:HI 41 40 99 2 kernel/time/hrtimer.c:576 (set (mem/s/j:DI (plus:SI (reg/f:SI 15 D1.7 [orig:84 D.45290 ] [84])
>                 (const_int 368 [0x170])) [0 <variable>.offset+0 S8 A128])
> 	(reg:DI 99 [ <variable>.offset ])) 211 {*sto_di_1_1_off12} (nil)
>     (expr_list:REG_DEAD (reg:DI 99 [ <variable>.offset ])
> 	(nil)))
> kernel/time/hrtimer.c:1431: confused by earlier errors, bailing out

Hmm.. ancient shelved toolchain. Perhaps this is the excuse we need to
say goodbye to arch/metag/...

Cheers
James

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: metag build errors in mainline kernel
  2018-02-21 12:27 ` James Hogan
@ 2018-02-21 13:53   ` Graham Whaley
  2018-02-21 14:16   ` Guenter Roeck
  1 sibling, 0 replies; 4+ messages in thread
From: Graham Whaley @ 2018-02-21 13:53 UTC (permalink / raw)
  To: James Hogan; +Cc: Guenter Roeck, linux-kernel, linux-metag

> Hmm.. ancient shelved toolchain. Perhaps this is the excuse we need to
> say goodbye to arch/metag/...

I too was wondering - that one day there will come a time when the
toolkit will be too old and there will be no updates....

Graham

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

* Re: metag build errors in mainline kernel
  2018-02-21 12:27 ` James Hogan
  2018-02-21 13:53   ` Graham Whaley
@ 2018-02-21 14:16   ` Guenter Roeck
  1 sibling, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2018-02-21 14:16 UTC (permalink / raw)
  To: James Hogan; +Cc: linux-kernel, linux-metag

On 02/21/2018 04:27 AM, James Hogan wrote:
> On Tue, Feb 20, 2018 at 03:44:43PM -0800, Guenter Roeck wrote:
>> The following errors are seen when building the kernel with the latest
>> available metag toolchain (4.2.4 (IMG-1.4.0.700)). Kernel version tested
>> is (v4.16-rc2-64-gaf3e79d29555).
>>
>> metag:allmodconfig
>>
>> arch/metag/kernel/devtree.c:54: error: implicit declaration of function 'pr_info'
>>
>> arch/metag/kernel/perf/perf_event.c:831: error: label ‘out’ used but not defined
>> arch/metag/kernel/perf/perf_event.c:822: warning: unused variable ‘cpu’
> 
> Thanks, these are easy enough for me to fix up.
> 
>>
>> metag:meta2_smp_defconfig
>>
>> kernel/time/hrtimer.c: In function 'hrtimer_run_softirq':
>> time/hrtimer.c:1431: error: unable to find a register to spill in class 'Yr_REGS'
>> time/hrtimer.c:1431: error: this is the insn:
>> (insn:HI 41 40 99 2 kernel/time/hrtimer.c:576 (set (mem/s/j:DI (plus:SI (reg/f:SI 15 D1.7 [orig:84 D.45290 ] [84])
>>                  (const_int 368 [0x170])) [0 <variable>.offset+0 S8 A128])
>> 	(reg:DI 99 [ <variable>.offset ])) 211 {*sto_di_1_1_off12} (nil)
>>      (expr_list:REG_DEAD (reg:DI 99 [ <variable>.offset ])
>> 	(nil)))
>> kernel/time/hrtimer.c:1431: confused by earlier errors, bailing out
> 
> Hmm.. ancient shelved toolchain. Perhaps this is the excuse we need to
> say goodbye to arch/metag/...
> 

Might be worth a thought. The metag toolchain doesn't even build anymore
without tweaking. gcc 4.2.4 doesn't build with a modern gcc, the metag
buildroot on github points to a no longer existing daily snapshot of
uclibc, and ToT uclibc doesn't build with gcc 4.2.4.

Guenter

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

end of thread, other threads:[~2018-02-21 14:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-20 23:44 metag build errors in mainline kernel Guenter Roeck
2018-02-21 12:27 ` James Hogan
2018-02-21 13:53   ` Graham Whaley
2018-02-21 14:16   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®