Skip to content

[BUG] ld.lld: error: Invalid record (Producer: 'LLVM12.0.5git' Reader: 'LLVM 12.0.5git') #1591

@DoDoENT

Description

@DoDoENT

Description

Happens when LTO is enabled for armeabi-v7a ABI with NDK r23 - the same code works correctly with NDK r22b.

I still haven't been able to create a minimum reproducible sample (I'll update this issue if I manage to do so), but @lmglmg and I observed the same issue also with armv7 slice when building the same code for iOS using Xcode 13 (it also uses the LLVM 12-based backend).

I'm posting this here in case if someone has already seen this issue and found a workaround.

Environment Details

  • NDK Version: r23
  • Build system: cmake
  • Host OS: MacOS
  • ABI: armeabi-v7a
  • NDK API level: 16
  • Device API level: 16

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions