ld.lld: warning: Linking two modules of different data layouts for x86_64-linux
Innot Sagg
donovinsbbkgbi at gmail.com
Mon Jul 13 14:19:25 UTC 2020
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'
The c lib is build with:
x86_64-linux-android21-clang
--target=x86_64-unknown-linux-android21 -fPIC -flto=full
The ldc:
ldmd2 -g -gc -O0 -L--export-dynamic
-mtriple=x86_64-unknown-linux-android21 -linker=lld -flto=full
-betterC -L-lpcre
aarch64-unknown-linux-android21 or armv7a-unknown-linux-android21
have no problem.
should I change target and mtriple to fix this ?
More information about the digitalmars-d-ldc
mailing list