On 11/28/22 5:32 PM, [email protected] wrote:
DISTRO="xilinx-standalone" bitbake libv7afpthf-exceptions
It builds, but still complains about the lib ended up at
/usr/lib/libexceptions.a,
but I think this is an issue with cmake. Someone else reported something
similar here: https://www.yoctoproject.org/pipermail/yocto/2019-
May/045486.html
Apologies for spam, but want to document what I'm doing for the benefit of
future readers...
Glad you got this far.
Fixed the CMake problem by patching my CMakeLists.txt like this:
- install(TARGETS exceptions DESTINATION lib)
+ install(TARGETS exceptions)
With this in place, the static library is correctly built and packaged.
(This works because in CMake 3.14 and later you can omit the DESTINATION and it
will default to use GNUInstallDirs -
https://cmake.org/cmake/help/v3.14/module/GNUInstallDirs.html#module:GNUInstallDirs).
For building the actual RTOS, I also had to modify local.conf to add this:
TUNE_CCARGS:tune-armv7afpthf:append = " -mfpu=vfpv3"
Otherwise I get errors like this:
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S: Assembler
messages:
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:173: Error:
VFP single precision register expected -- `vpushne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:176: Error:
VFP single precision register expected -- `vpopne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:186: Error:
VFP single precision register expected -- `vpopne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:280: Error:
VFP single precision register expected -- `vpushne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:291: Error:
VFP single precision register expected -- `vpopne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:319: Error:
VFP single precision register expected -- `vpush {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:326: Error:
VFP single precision register expected -- `vpop {D16-D31}'
The last thing (hopefully) I'm running into is a link issue:
...
recipe-sysroot-native/usr/bin/arm-xilinxmllibv7afpthf-eabi/../../libexec/arm-xilinxmllibv7afpthf-eabi/gcc/arm-xilinxmllibv7afpthf-eabi/11.2.0/ld:
... /libv7afpthf-recipe-sysroot/usr/lib/thumb/v7-a+fp/hard/crt0.o: in function
`_mainCRTStartup':
/usr/src/debug/libv7afpthf-libgloss/4.1.0-r0/newlib-4.1.0/libgloss/arm/crt0.S:547:
undefined reference to `__bss_start__'
...
recipe-sysroot-native/usr/bin/arm-xilinxmllibv7afpthf-eabi/../../libexec/arm-xilinxmllibv7afpthf-eabi/gcc/arm-xilinxmllibv7afpthf-eabi/11.2.0/ld:
/usr/src/debug/libv7afpthf-libgloss/4.1.0-r0/newlib-4.1.0/libgloss/arm/crt0.S:547:
undefined reference to `__bss_end__'
libgloss is just a placeholder for building/linking newlib. It doesn't provide
all of the necessary symbols, this is why you need libxil. There is no way to
build libxil in the current 'raw' baremetal version of Yocto Project
integration. (The alternative experimental version you can, but I've no idea if
it would work in this case.)
So you the output of meta-xilinx-toolchain, and you should be able to build
libxil from that. (I believe it's part of the embedded software repository,
unfortunately I don't know the actual configuration to build it. All of the
versions I've used have either been provided to me by Vivado or by another team
here -- either case, built outside of the Yocto Project.)
Working on tracking this one down, but I think it's because our linker script
is out of date (it was generated by Xilinx 2017.1 tools). It seems like
__bss_start__ has been renamed to __bss_start?
Yes, some of the symbols were renamed by the compiler in about 2019/2020 era.
Unfortunately I don't remember any of the details. Again embeddedsw repository
probably has something you can look at that may give you a clue.
--Mark
Thanks,
Chris
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5101):
https://lists.yoctoproject.org/g/meta-xilinx/message/5101
Mute This Topic: https://lists.yoctoproject.org/mt/95098230/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-