public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Building for several archs
@ 2015-10-19 21:17 Fabio Estevam
  2015-10-19 21:21 ` York Sun
  2015-10-19 21:36 ` Tom Rini
  0 siblings, 2 replies; 10+ messages in thread
From: Fabio Estevam @ 2015-10-19 21:17 UTC (permalink / raw)
  To: u-boot

Hi,

I am working on a patch series that I need to test across several
architectures (Need to build all the boards that select
CONFIG_SPI_FLASH_STMICRO).

I started trying to accomplish this task with buildman and it failed
to build. After that I tried building it manually.

I am getting the following errors on top of head U-boot:

m68k:

http://pastebin.com/hX5KWDPK

powerpc:

http://pastebin.com/rK0MUp1F

With these toolchains I am able to build the kernel without issues.

Any ideas?

Thanks,

Fabio Estevam

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

* [U-Boot] Building for several archs
  2015-10-19 21:17 [U-Boot] Building for several archs Fabio Estevam
@ 2015-10-19 21:21 ` York Sun
  2015-10-19 21:27   ` Fabio Estevam
  2015-10-19 21:36 ` Tom Rini
  1 sibling, 1 reply; 10+ messages in thread
From: York Sun @ 2015-10-19 21:21 UTC (permalink / raw)
  To: u-boot

On 10/19/2015 02:17 PM, Fabio Estevam wrote:
> Hi,
> 
> I am working on a patch series that I need to test across several
> architectures (Need to build all the boards that select
> CONFIG_SPI_FLASH_STMICRO).
> 
> I started trying to accomplish this task with buildman and it failed
> to build. After that I tried building it manually.
> 
> I am getting the following errors on top of head U-boot:
> 
> m68k:
> 
> http://pastebin.com/hX5KWDPK
> 
> powerpc:
> 
> http://pastebin.com/rK0MUp1F
> 
> With these toolchains I am able to build the kernel without issues.
> 
> Any ideas?
> 

For the powerpc build, I don't see you specify a target.

York

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

* [U-Boot] Building for several archs
  2015-10-19 21:21 ` York Sun
@ 2015-10-19 21:27   ` Fabio Estevam
  2015-10-19 21:32     ` York Sun
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-10-19 21:27 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 19, 2015 at 7:21 PM, York Sun <yorksun@freescale.com> wrote:
> On 10/19/2015 02:17 PM, Fabio Estevam wrote:
>> Hi,
>>
>> I am working on a patch series that I need to test across several
>> architectures (Need to build all the boards that select
>> CONFIG_SPI_FLASH_STMICRO).
>>
>> I started trying to accomplish this task with buildman and it failed
>> to build. After that I tried building it manually.
>>
>> I am getting the following errors on top of head U-boot:
>>
>> m68k:
>>
>> http://pastebin.com/hX5KWDPK
>>
>> powerpc:
>>
>> http://pastebin.com/rK0MUp1F
>>
>> With these toolchains I am able to build the kernel without issues.
>>
>> Any ideas?
>>
>
> For the powerpc build, I don't see you specify a target.

Sorry, here is the complete log:
http://pastebin.com/ngp0WWB7

The target I am trying to build is T1024QDS_NAND_defconfig.

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

* [U-Boot] Building for several archs
  2015-10-19 21:27   ` Fabio Estevam
@ 2015-10-19 21:32     ` York Sun
  0 siblings, 0 replies; 10+ messages in thread
From: York Sun @ 2015-10-19 21:32 UTC (permalink / raw)
  To: u-boot



On 10/19/2015 02:27 PM, Fabio Estevam wrote:
> On Mon, Oct 19, 2015 at 7:21 PM, York Sun <yorksun@freescale.com> wrote:
>> On 10/19/2015 02:17 PM, Fabio Estevam wrote:
>>> Hi,
>>>
>>> I am working on a patch series that I need to test across several
>>> architectures (Need to build all the boards that select
>>> CONFIG_SPI_FLASH_STMICRO).
>>>
>>> I started trying to accomplish this task with buildman and it failed
>>> to build. After that I tried building it manually.
>>>
>>> I am getting the following errors on top of head U-boot:
>>>
>>> m68k:
>>>
>>> http://pastebin.com/hX5KWDPK
>>>
>>> powerpc:
>>>
>>> http://pastebin.com/rK0MUp1F
>>>
>>> With these toolchains I am able to build the kernel without issues.
>>>
>>> Any ideas?
>>>
>>
>> For the powerpc build, I don't see you specify a target.
> 
> Sorry, here is the complete log:
> http://pastebin.com/ngp0WWB7
> 
> The target I am trying to build is T1024QDS_NAND_defconfig.
> 

I didn't have any compiling issue with rc5. Will try the latest later today.

York

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

* [U-Boot] Building for several archs
  2015-10-19 21:17 [U-Boot] Building for several archs Fabio Estevam
  2015-10-19 21:21 ` York Sun
@ 2015-10-19 21:36 ` Tom Rini
  2015-10-19 22:49   ` Fabio Estevam
  1 sibling, 1 reply; 10+ messages in thread
From: Tom Rini @ 2015-10-19 21:36 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 19, 2015 at 07:17:51PM -0200, Fabio Estevam wrote:

> Hi,
> 
> I am working on a patch series that I need to test across several
> architectures (Need to build all the boards that select
> CONFIG_SPI_FLASH_STMICRO).
> 
> I started trying to accomplish this task with buildman and it failed
> to build. After that I tried building it manually.
> 
> I am getting the following errors on top of head U-boot:
> 
> m68k:
> 
> http://pastebin.com/hX5KWDPK
> 
> powerpc:
> 
> http://pastebin.com/rK0MUp1F
> 
> With these toolchains I am able to build the kernel without issues.

Something is very whacky.  From my ~/.buildman:

[toolchain]
m68k: /opt/gcc-4.9.0-nolibc/m68k-linux
powerpc: /opt/eldk-5.3/powerpc/sysroots/i686-eldk-linux/usr/bin/powerpc-linux

I'm able to build all m68k and almost all powerpc with just buildman
'powerpc|m68k'

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151019/ffc03bdb/attachment.sig>

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

* [U-Boot] Building for several archs
  2015-10-19 21:36 ` Tom Rini
@ 2015-10-19 22:49   ` Fabio Estevam
  2015-10-19 23:04     ` Tom Rini
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-10-19 22:49 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 19, 2015 at 7:36 PM, Tom Rini <trini@konsulko.com> wrote:

> Something is very whacky.  From my ~/.buildman:
>
> [toolchain]
> m68k: /opt/gcc-4.9.0-nolibc/m68k-linux

Interesting. For m68k I am using this same toolchain:

export ARCH=m68k
export CROSS_COMPILE=/usr/local/gcc-4.9.0-nolibc/m68k-linux/bin/m68k-linux-

make mrproper
make M54455EVB_defconfig
make

....

  CC      arch/m68k/cpu/mcf5445x/cpu.o
In file included from include/common.h:149:0,
                 from arch/m68k/cpu/mcf5445x/cpu.c:12:
include/asm/global_data.h:83:58: error: invalid register name for 'gd'
 #define DECLARE_GLOBAL_DATA_PTR  register volatile gd_t *gd asm ("r9")
                                                          ^
arch/m68k/cpu/mcf5445x/cpu.c:20:1: note: in expansion of macro
'DECLARE_GLOBAL_DATA_PTR'
 DECLARE_GLOBAL_DATA_PTR;
 ^
arch/m68k/cpu/mcf5445x/cpu.c: In function 'checkcpu':
arch/m68k/cpu/mcf5445x/cpu.c:88:31: error: 'volatile struct
arch_global_data' has no member named 'flb_clk'
          strmhz(buf3, gd->arch.flb_clk));
                               ^
arch/m68k/cpu/mcf5445x/cpu.c:96:31: error: 'volatile struct
arch_global_data' has no member named 'inp_clk'
          strmhz(buf1, gd->arch.inp_clk),
                               ^
arch/m68k/cpu/mcf5445x/cpu.c:97:31: error: 'volatile struct
arch_global_data' has no member named 'vco_clk'
          strmhz(buf2, gd->arch.vco_clk));
                               ^
make[1]: *** [arch/m68k/cpu/mcf5445x/cpu.o] Error 1
make: *** [arch/m68k/cpu/mcf5445x] Error 2

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

* [U-Boot] Building for several archs
  2015-10-19 22:49   ` Fabio Estevam
@ 2015-10-19 23:04     ` Tom Rini
  2015-10-19 23:36       ` Fabio Estevam
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Rini @ 2015-10-19 23:04 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 19, 2015 at 08:49:33PM -0200, Fabio Estevam wrote:
> On Mon, Oct 19, 2015 at 7:36 PM, Tom Rini <trini@konsulko.com> wrote:
> 
> > Something is very whacky.  From my ~/.buildman:
> >
> > [toolchain]
> > m68k: /opt/gcc-4.9.0-nolibc/m68k-linux
> 
> Interesting. For m68k I am using this same toolchain:
> 
> export ARCH=m68k
> export CROSS_COMPILE=/usr/local/gcc-4.9.0-nolibc/m68k-linux/bin/m68k-linux-
> 
> make mrproper
> make M54455EVB_defconfig
> make

I bet you have a dirty tree.  I never do in-tree builds and only do out
of tree builds and I've heard earlier today that there's some problems
with dirty in-tree builds.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151019/b2e0c54d/attachment.sig>

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

* [U-Boot] Building for several archs
  2015-10-19 23:04     ` Tom Rini
@ 2015-10-19 23:36       ` Fabio Estevam
  2015-10-19 23:53         ` Tom Rini
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-10-19 23:36 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 19, 2015 at 9:04 PM, Tom Rini <trini@konsulko.com> wrote:

> I bet you have a dirty tree.  I never do in-tree builds and only do out
> of tree builds and I've heard earlier today that there's some problems
> with dirty in-tree builds.

Yes, you are right.

I had to use the brute force approach and git clone the tree again.

Now I can build for different archs.

Thanks!

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

* [U-Boot] Building for several archs
  2015-10-19 23:36       ` Fabio Estevam
@ 2015-10-19 23:53         ` Tom Rini
  2015-10-19 23:56           ` Fabio Estevam
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Rini @ 2015-10-19 23:53 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 19, 2015 at 09:36:45PM -0200, Fabio Estevam wrote:
> On Mon, Oct 19, 2015 at 9:04 PM, Tom Rini <trini@konsulko.com> wrote:
> 
> > I bet you have a dirty tree.  I never do in-tree builds and only do out
> > of tree builds and I've heard earlier today that there's some problems
> > with dirty in-tree builds.
> 
> Yes, you are right.
> 
> I had to use the brute force approach and git clone the tree again.
> 
> Now I can build for different archs.

'git clean -dfx' should also do it, btw.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151019/85fe4a01/attachment.sig>

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

* [U-Boot] Building for several archs
  2015-10-19 23:53         ` Tom Rini
@ 2015-10-19 23:56           ` Fabio Estevam
  0 siblings, 0 replies; 10+ messages in thread
From: Fabio Estevam @ 2015-10-19 23:56 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 19, 2015 at 9:53 PM, Tom Rini <trini@konsulko.com> wrote:

>> Yes, you are right.
>>
>> I had to use the brute force approach and git clone the tree again.
>>
>> Now I can build for different archs.
>
> 'git clean -dfx' should also do it, btw.

Great, thanks for this hint.

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

end of thread, other threads:[~2015-10-19 23:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 21:17 [U-Boot] Building for several archs Fabio Estevam
2015-10-19 21:21 ` York Sun
2015-10-19 21:27   ` Fabio Estevam
2015-10-19 21:32     ` York Sun
2015-10-19 21:36 ` Tom Rini
2015-10-19 22:49   ` Fabio Estevam
2015-10-19 23:04     ` Tom Rini
2015-10-19 23:36       ` Fabio Estevam
2015-10-19 23:53         ` Tom Rini
2015-10-19 23:56           ` Fabio Estevam

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