linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next-20160804: Build error when building xtensa images
@ 2016-08-04  6:30 Guenter Roeck
  2016-08-04 13:25 ` Max Filippov
  0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2016-08-04  6:30 UTC (permalink / raw)
  To: Max Filippov; +Cc: linux-kernel, linux-xtensa

Hi Max,

I see the following build errors when building xtensa images in next-20160804.

Error log:
arch/xtensa/kernel/built-in.o: In function `fast_alloca':
(.text+0x99a): dangerous relocation: j: cannot encode: _WindowUnderflow12
arch/xtensa/kernel/built-in.o: In function `fast_alloca':
(.text+0x99d): dangerous relocation: j: cannot encode: _WindowUnderflow8
arch/xtensa/kernel/built-in.o: In function `fast_alloca':
(.text+0x9a0): dangerous relocation: j: cannot encode: _WindowUnderflow4
arch/xtensa/kernel/built-in.o: In function `window_overflow_restore_a0_fixup':
(.text+0x23a3): dangerous relocation: j: cannot encode: (.DoubleExceptionVector.text+0x104)
arch/xtensa/kernel/built-in.o: In function `window_overflow_restore_a0_fixup':
(.text+0x23c1): dangerous relocation: j: cannot encode: (.DoubleExceptionVector.text+0x104)
arch/xtensa/kernel/built-in.o: In function `window_overflow_restore_a0_fixup':
(.text+0x23dd): dangerous relocation: j: cannot encode: (.DoubleExceptionVector.text+0x104)

This affects all images I am testing.

Bisect points to 'xtensa: cleanup MMU setup and kernel layout macros'. Bisect log is attached.

Toolchains tested:
	xtensa-linux-gcc (Buildroot 2014.02-rc2-00048-g088ed8d) 4.7.3
	GNU ld (GNU Binutils) 2.22

	xtensa-linux-gcc (GCC) 4.6.3
	GNU ld (GNU Binutils) 2.22

	xtensa-linux-gcc (Buildroot 2014.08-rc3) 4.8.3 (built for dc232b)
	GNU ld (GNU Binutils) 2.22

Guenter

---
# bad: [4d9dc2a0baee551d44e853e28a69cec881308655] Add linux-next specific files for 20160804
# good: [523d939ef98fd712632d93a5a2b588e477a7565e] Linux 4.7
git bisect start 'HEAD' 'v4.7'
# good: [b0c4e2acdd6175a07107474f3cd7bdc062cf4d3d] Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6
git bisect good b0c4e2acdd6175a07107474f3cd7bdc062cf4d3d
# good: [77a87824ed676ca8ff8482e4157d3adb284fd381] clocksource/drivers/clps_711x: fixup for "ARM: clps711x:
git bisect good 77a87824ed676ca8ff8482e4157d3adb284fd381
# good: [221bb8a46e230b9824204ae86537183d9991ff2a] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
git bisect good 221bb8a46e230b9824204ae86537183d9991ff2a
# bad: [5134a4ec4905a332a460709acd4e08afe749d6fc] Merge remote-tracking branch 'befs/for-next'
git bisect bad 5134a4ec4905a332a460709acd4e08afe749d6fc
# good: [f0936155f2204720655aefbc2f17c25a2c80a59e] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
git bisect good f0936155f2204720655aefbc2f17c25a2c80a59e
# good: [50e4cfe7f334833aba4e5b69bbe6450aeed56732] Merge remote-tracking branch 'samsung-krzk/for-next'
git bisect good 50e4cfe7f334833aba4e5b69bbe6450aeed56732
# good: [1a4db2bf7d3c1e26a42337b5bb1e81b6b7cfce2b] Merge remote-tracking branch 'parisc-hd/for-next'
git bisect good 1a4db2bf7d3c1e26a42337b5bb1e81b6b7cfce2b
# good: [a0f556c518531ec412b1dfeae008d175fd0b203e] Merge remote-tracking branch 'sh/for-next'
git bisect good a0f556c518531ec412b1dfeae008d175fd0b203e
# good: [8d089bae416b7303868ab9bb6083ae4c4168a132] fs: befs: remove in vain variable assignment
git bisect good 8d089bae416b7303868ab9bb6083ae4c4168a132
# good: [59f2e68f6b6113647da3800d90b727d7cafcc703] Merge remote-tracking branch 'unicore32/unicore32'
git bisect good 59f2e68f6b6113647da3800d90b727d7cafcc703
# bad: [3de00482b006daa110151ac6775adc52538a3d6a] xtensa: minimize use of PLATFORM_DEFAULT_MEM_{ADDR,SIZE}
git bisect bad 3de00482b006daa110151ac6775adc52538a3d6a
# good: [f1883aa7d63e3be92ad18da7a1bfc6c9b15c4f9a] xtensa: move kernel mapping addresses into kmem_layout.h
git bisect good f1883aa7d63e3be92ad18da7a1bfc6c9b15c4f9a
# bad: [a9f2fc628e3a26a829fd79aff74eb49839d1e74b] xtensa: cleanup MMU setup and kernel layout macros
git bisect bad a9f2fc628e3a26a829fd79aff74eb49839d1e74b
# good: [d39af90265feb40ec198c4ca8268724645b4b50e] xtensa: add alternative kernel memory layouts
git bisect good d39af90265feb40ec198c4ca8268724645b4b50e
# first bad commit: [a9f2fc628e3a26a829fd79aff74eb49839d1e74b] xtensa: cleanup MMU setup and kernel layout macros

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

* Re: next-20160804: Build error when building xtensa images
  2016-08-04  6:30 next-20160804: Build error when building xtensa images Guenter Roeck
@ 2016-08-04 13:25 ` Max Filippov
  2016-08-24 16:32   ` Sudip Mukherjee
  0 siblings, 1 reply; 3+ messages in thread
From: Max Filippov @ 2016-08-04 13:25 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-kernel, linux-xtensa

Hi Guenter,

On Thu, Aug 4, 2016 at 9:30 AM, Guenter Roeck <linux@roeck-us.net> wrote:
> Hi Max,
>
> I see the following build errors when building xtensa images in
> next-20160804.
>
> Error log:
> arch/xtensa/kernel/built-in.o: In function `fast_alloca':
> (.text+0x99a): dangerous relocation: j: cannot encode: _WindowUnderflow12
> arch/xtensa/kernel/built-in.o: In function `fast_alloca':
> (.text+0x99d): dangerous relocation: j: cannot encode: _WindowUnderflow8
> arch/xtensa/kernel/built-in.o: In function `fast_alloca':
> (.text+0x9a0): dangerous relocation: j: cannot encode: _WindowUnderflow4
> arch/xtensa/kernel/built-in.o: In function
> `window_overflow_restore_a0_fixup':
> (.text+0x23a3): dangerous relocation: j: cannot encode:
> (.DoubleExceptionVector.text+0x104)
> arch/xtensa/kernel/built-in.o: In function
> `window_overflow_restore_a0_fixup':
> (.text+0x23c1): dangerous relocation: j: cannot encode:
> (.DoubleExceptionVector.text+0x104)
> arch/xtensa/kernel/built-in.o: In function
> `window_overflow_restore_a0_fixup':
> (.text+0x23dd): dangerous relocation: j: cannot encode:
> (.DoubleExceptionVector.text+0x104)
>
> This affects all images I am testing.
>
> Bisect points to 'xtensa: cleanup MMU setup and kernel layout macros'.

Thanks for the report. The default kernel load address in this patch
was wrong. Fix posted.

-- 
Thanks.
-- Max

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

* Re: next-20160804: Build error when building xtensa images
  2016-08-04 13:25 ` Max Filippov
@ 2016-08-24 16:32   ` Sudip Mukherjee
  0 siblings, 0 replies; 3+ messages in thread
From: Sudip Mukherjee @ 2016-08-24 16:32 UTC (permalink / raw)
  To: Max Filippov, Guenter Roeck; +Cc: linux-kernel, linux-xtensa

On Thursday 04 August 2016 06:55 PM, Max Filippov wrote:
> Hi Guenter,
>
> On Thu, Aug 4, 2016 at 9:30 AM, Guenter Roeck <linux@roeck-us.net> wrote:
>> Hi Max,
>>
>> I see the following build errors when building xtensa images in
>> next-20160804.
>>
>> Error log:
>> arch/xtensa/kernel/built-in.o: In function `fast_alloca':
>> (.text+0x99a): dangerous relocation: j: cannot encode: _WindowUnderflow12
>> arch/xtensa/kernel/built-in.o: In function `fast_alloca':
>> (.text+0x99d): dangerous relocation: j: cannot encode: _WindowUnderflow8
>> arch/xtensa/kernel/built-in.o: In function `fast_alloca':
>> (.text+0x9a0): dangerous relocation: j: cannot encode: _WindowUnderflow4
>> arch/xtensa/kernel/built-in.o: In function
>> `window_overflow_restore_a0_fixup':
>> (.text+0x23a3): dangerous relocation: j: cannot encode:
>> (.DoubleExceptionVector.text+0x104)
>> arch/xtensa/kernel/built-in.o: In function
>> `window_overflow_restore_a0_fixup':
>> (.text+0x23c1): dangerous relocation: j: cannot encode:
>> (.DoubleExceptionVector.text+0x104)
>> arch/xtensa/kernel/built-in.o: In function
>> `window_overflow_restore_a0_fixup':
>> (.text+0x23dd): dangerous relocation: j: cannot encode:
>> (.DoubleExceptionVector.text+0x104)
>>
>> This affects all images I am testing.
>>
>> Bisect points to 'xtensa: cleanup MMU setup and kernel layout macros'.
>
> Thanks for the report. The default kernel load address in this patch
> was wrong. Fix posted.

xtensa builds still fails with that same error.
Did the fix make its way to linux-next?

xtensa defconfig for next-20160824 is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/154646688

regards
sudip

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

end of thread, other threads:[~2016-08-24 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04  6:30 next-20160804: Build error when building xtensa images Guenter Roeck
2016-08-04 13:25 ` Max Filippov
2016-08-24 16:32   ` Sudip Mukherjee

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