Bug 104766 - Libclc warnings "Linking two modules of different data layouts" with LLVM 5 and 6
Summary: Libclc warnings "Linking two modules of different data layouts" with LLVM 5 a...
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-24 13:52 UTC by Luke A. Guest
Modified: 2018-01-24 13:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Full compile log (108.38 KB, text/plain)
2018-01-24 13:52 UTC, Luke A. Guest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke A. Guest 2018-01-24 13:52:09 UTC
Created attachment 136939 [details]
Full compile log

I tried to compile libclc against LLVM 6 and got these warnings, then I tried LLVM 5 (branch release_50 in llvm/clang/compiler-rt) and got them still.

This is the end of the build log:

WARNING: Linking two modules of different data layouts: 'nvptx64--nvidiacl/lib/shared/vload_half_helpers.ll.bc' is '' whereas 'llvm-link' is 'e-i64:64-v16:16-v32:32-n16:32:64'

WARNING: Linking two modules of different data layouts: 'nvptx64--nvidiacl/lib/shared/vstore_half_helpers.ll.bc' is '' whereas 'llvm-link' is 'e-i64:64-v16:16-v32:32-n16:32:64'

WARNING: Linking two modules of different data layouts: 'nvptx64--nvidiacl/lib/subnormal_helper_func.ll.bc' is '' whereas 'llvm-link' is 'e-i64:64-v16:16-v32:32-n16:32:64'

LLVM-LINK r600--/lib/builtins.link.cedar.bc
WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vload_half_helpers.ll.cedar.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vstore_half_helpers.ll.cedar.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/subnormal_helper_func.ll.cedar.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

LLVM-LINK r600--/lib/builtins.link.cypress.bc
WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vload_half_helpers.ll.cypress.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vstore_half_helpers.ll.cypress.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/subnormal_helper_func.ll.cypress.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

LLVM-LINK r600--/lib/builtins.link.barts.bc
WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vload_half_helpers.ll.barts.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vstore_half_helpers.ll.barts.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/subnormal_helper_func.ll.barts.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-i64:64-v16:16-v32:32-n16:32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

LLVM-LINK r600--/lib/builtins.link.cayman.bc
WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vload_half_helpers.ll.cayman.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/shared/vstore_half_helpers.ll.cayman.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'r600--/lib/subnormal_helper_func.ll.cayman.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

LLVM-LINK amdgcn--/lib/builtins.link.tahiti.bc
WARNING: Linking two modules of different data layouts: 'amdgcn--/lib/shared/vload_half_helpers.ll.tahiti.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'amdgcn--/lib/shared/vstore_half_helpers.ll.tahiti.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'amdgcn--/lib/subnormal_helper_func.ll.tahiti.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

LLVM-LINK amdgcn--amdhsa/lib/builtins.link.bc
WARNING: Linking two modules of different data layouts: 'amdgcn--amdhsa/lib/shared/vload_half_helpers.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'amdgcn--amdhsa/lib/shared/vstore_half_helpers.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'amdgcn--amdhsa/lib/subnormal_helper_func.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

LLVM-LINK amdgcn-mesa-mesa3d/lib/builtins.link.tahiti.bc
WARNING: Linking two modules of different data layouts: 'amdgcn-mesa-mesa3d/lib/shared/vload_half_helpers.ll.tahiti.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'amdgcn-mesa-mesa3d/lib/shared/vstore_half_helpers.ll.tahiti.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'amdgcn-mesa-mesa3d/lib/subnormal_helper_func.ll.tahiti.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

OPT nvptx64--nvidiacl/lib/builtins.opt.bc
WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64'

OPT r600--/lib/builtins.opt.cedar.bc
OPT r600--/lib/builtins.opt.cypress.bc
OPT r600--/lib/builtins.opt.barts.bc
OPT r600--/lib/builtins.opt.cayman.bc
OPT amdgcn--/lib/builtins.opt.tahiti.bc
OPT amdgcn--amdhsa/lib/builtins.opt.bc
OPT amdgcn-mesa-mesa3d/lib/builtins.opt.tahiti.bc
LLVM-LINK nvptx--nvidiacl/lib/builtins.link.bc
WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/shared/vload_half_helpers.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'

WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/shared/vstore_half_helpers.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'

WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/subnormal_helper_func.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'

WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'

PREPARE-BUILTINS built_libs/cedar-r600--.bc
PREPARE-BUILTINS built_libs/cypress-r600--.bc
PREPARE-BUILTINS built_libs/barts-r600--.bc
PREPARE-BUILTINS built_libs/cayman-r600--.bc
OPT nvptx--nvidiacl/lib/builtins.opt.bc
PREPARE-BUILTINS built_libs/nvptx64--nvidiacl.bc
PREPARE-BUILTINS built_libs/amdgcn--amdhsa.bc
PREPARE-BUILTINS built_libs/tahiti-amdgcn--.bc
PREPARE-BUILTINS built_libs/tahiti-amdgcn-mesa-mesa3d.bc
PREPARE-BUILTINS built_libs/nvptx--nvidiacl.bc

Using this build of clang/llvm:

~/opt/mesa-debug/bin/llvm-config --version
5.0.1


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.