On Wed, Sep 11, 2024 at 6:56 AM Joel Winarske via
lists.yoctoproject.org
<joel.winarske=gmail....@lists.yoctoproject.org> wrote:
>
> Seeing this error when installing archive file to ${PN}-staticdev, (not prior 
> seen on kirkstone or dunfell):
>
> ```
> ERROR: dwarfsrcfiles failed with exit code 1 (cmd was ['dwarfsrcfiles', 
> '/mnt/raid10/yocto/master/raspberry-pi5/tmp/work/cortexa76-poky-linux/filament-vk/1.54.3/package/usr/lib/filament/libfilamat.a']):
> dwarfsrcfiles: 
> /mnt/raid10/yocto/master/raspberry-pi5/tmp/work/cortexa76-poky-linux/filament-vk/1.54.3/package/usr/lib/filament/libfilamat.a:
>  not a valid ELF file
> ```
>
> Running readelf -h on the file I get:
>
> `readelf: Error: This is a LLVM bitcode file - try extracing and then using 
> llvm-bcanalyzer`

This error tells me that the generated objects are containing lto
intermediate information so
the linker can re-invoke the compiler again to do whole program
optimization. So you have two
options, either disable LTO for this recipe if it is enabled by
default, you might have a bit less
optimized binary, or disable running dwarfsrcfile using something like

PACKAGE_DEBUG_STATIC_SPLIT = '0'

in the recipe.


>
> Is there an override to handle clang generated archives?
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63825): https://lists.yoctoproject.org/g/yocto/message/63825
Mute This Topic: https://lists.yoctoproject.org/mt/108393840/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to