kraj / meta-clang

Clang C/C++ cross compiler and runtime for OpenEmbedded/Yocto Project
MIT License
153 stars 198 forks source link

libcxx is not a valid ELF file when compiling with LTO #858

Closed sknsean closed 11 months ago

sknsean commented 11 months ago

Describe the bug

ERROR: libcxx-15.0.7-r0 do_package: dwarfsrcfiles failed with exit code 1 (cmd was ['dwarfsrcfiles', '/src/build/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/libcxx/15.0.7-r0/package/usr/lib/libc++.a']):
dwarfsrcfiles: /src/build/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/libcxx/15.0.7-r0/package/usr/lib/libc++.a: not a valid ELF file

To Reproduce Steps to reproduce the behavior:

  1. Enable LTO
  2. Build libcxx

Expected behavior No error