[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] Compile for qemu-ppce500 fails
From: |
Scott Wood |
Subject: |
Re: [Qemu-ppc] Compile for qemu-ppce500 fails |
Date: |
Tue, 2 Jun 2015 17:21:13 -0500 |
On Tue, 2015-06-02 at 00:52 -0500, zhongcai zhou wrote:
> I am trying to compile u-boot for qemu_ppce500 target. But it fails
> with the following errors:
>
> arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0xfc): undefined
> reference to `tlb_table'
> arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0x100): undefined
> reference to `num_tlb_entries'
> make: *** [u-boot] Error 1
>
>
> The steps I followed.
>
> git clone git://git.qemu-project.org/u-boot.git
> git reset --hard 2072e7262965bb48d7fffb1e283101e6ed8b21a8
> ### this follows the direction from qemu-2.3.0/pc-bios/README
> make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- qemu-
> ppce500_config
> make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-
>
> Then I have:
>
> ...
> OBJCOPY examples/standalone/hello_world.srec
> OBJCOPY examples/standalone/sched.srec
> OBJCOPY examples/standalone/hello_world.bin
> OBJCOPY examples/standalone/sched.bin
> LDS u-boot.lds
> LD u-boot
> arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0xfc): undefined
> reference to `tlb_table'
> arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0x100): undefined
> reference to `num_tlb_entries'
> make: *** [u-boot] Error 1
It builds fine for me with current master as well as commit 2072e72.
Maybe you have an unclean output tree?
-Scott