ld.lld: warning: Linking two modules of different data layouts for x86_64-linux

kinke kinke at gmx.net
Mon Jul 13 15:35:30 UTC 2020


On Monday, 13 July 2020 at 14:19:25 UTC, Innot Sagg wrote:
> I build android x86-64 project with lto, get this error:
>
> ld.lld: warning: Linking two modules of different data layouts: 
> '/d/lib/libpcre.a(pcre_exec.c.o at 173954)' is 
> 'e-m:e-i64:64-f80:128-n8:16:32:64-S128' whereas 'ld-temp.o' is 
> 'e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128'

This is probably caused by an (seemingly irrelevant) LLVM change 
in the meantime (https://reviews.llvm.org/D64931), which isn't in 
the LLVM version used by the Android NDK yet, but in LLVM 10 used 
by our prebuilt LDC packages.


More information about the digitalmars-d-ldc mailing list