walnasar LTO issues for sunxi

Belisko Marek <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <CAAfyv35MGsyiObfz3taVZSHR8ZSxL9KmaoyPfyN6EcYxD9Hhyw@mail.gmail.com>
Hi,

I'm trying to build a TFA for pine64-plus (sunxi 64 bit) using the walnasar
branch. I'm hitting following issues:

| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/plat_log_common.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/plat_log_common.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/plat_psci_common.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/plat_psci_common.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/arm_arch_svc_setup.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/arm_arch_svc_setup.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/std_svc_setup.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/std_svc_setup.o:
plugin needed to handle lto object
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/bl31_entrypoint.o:
in function `bl31_entrypoint':
| (.text.asm.bl31_entrypoint+0x110): undefined reference to `bl31_setup'
| aarch64-poky-linux-ld: (.text.asm.bl31_entrypoint+0x114): undefined
reference to `bl31_main'
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/cpu_data.o:
in function `_cpu_data_by_index':
| (.text.asm._cpu_data_by_index+0x8): undefined reference to `percpu_data'
| aarch64-poky-linux-ld: (.text.asm._cpu_data_by_index+0xc): undefined
reference to `percpu_data'
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/context.o:
in function `end':
| (.text.asm.el3_exit+0x30): undefined reference to `per_world_context'
| aarch64-poky-linux-ld: (.text.asm.el3_exit+0x34): undefined reference to
`per_world_context'
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/runtime_exceptions.o:
in function `sync_handler64':
| (.text.asm.sync_exception_handler+0x68): undefined reference to
`rt_svc_descs_indices'
| aarch64-poky-linux-ld: (.text.asm.sync_exception_handler+0x6c): undefined
reference to `rt_svc_descs_indices'
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/runtime_exceptions.o:
in function `sysreg_handler64':
| (.text.asm.sync_exception_handler+0xa0): undefined reference to
`handle_sysreg_trap'
| aarch64-poky-linux-ld: (.text.asm.sync_exception_handler+0xd0): undefined
reference to `inject_undef64'
| aarch64-poky-linux-ld:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/runtime_exceptions.o:
in function `handle_interrupt_exception':
| (.text.asm.handle_interrupt_exception+0x20): undefined reference to
`plat_ic_get_pending_interrupt_type'
| aarch64-poky-linux-ld: (.text.asm.handle_interrupt_exception+0x2c):
undefined reference to `get_interrupt_type_handler'
| make: *** [Makefile:1557:
/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/build/sun50i_a64/release/bl31/bl31.elf]
Error 1
| make: Leaving directory
'/work/build/tmp/work/pine64_plus-poky-linux/trusted-firmware-a/2.12.1/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.

With scarthgap it works. Am I doing something wrong?

Thanks and BR,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.