Bug 109129

Summary: format_types.h:1220: undefined reference to `_mm256_cvtps_ph'
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Drivers/Gallium/swrAssignee: Dylan Baker <baker.dylan.c>
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 109323    

Description Vinson Lee 2018-12-21 18:58:39 UTC
SWR build error with ICC with meson. Build passes with autotools.

'src/gallium/drivers/swr/src@gallium@drivers@swr@@swrAVX2@sha/rasterizer_memory_StoreTile_TileY.cpp.o' 'src/gallium/drivers/swr/src@gallium@drivers@swr@@swrAVX2@sha/rasterizer_memory_InitMemory.cpp.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libswrAVX2.so.0 -Wl,--gc-sections -L/usr/lib/llvm-7/lib -lLLVM-7 -Wl,--end-group -pthread  
ld: src/gallium/drivers/swr/src@gallium@drivers@swr@@swrAVX2@sha/rasterizer_memory_StoreTile_Linear2.cpp.o: in function `TypeTraits<(SWR_TYPE)6, 16u>::pack(SIMDImpl::SIMD512Impl::Float const&)':
src/gallium/drivers/swr/rasterizer/core/format_types.h:1220: undefined reference to `_mm256_cvtps_ph'
ld: src/gallium/drivers/swr/rasterizer/core/format_types.h:1221: undefined reference to `_mm256_cvtps_ph'
Comment 1 Dylan Baker 2018-12-21 20:54:16 UTC
This is likely due to: https://github.com/mesonbuild/meson/commit/b335ca2818b3cdb770bb69df25ae527d7ae8e7d3.

I'm checking with said patch applied.
Comment 2 Dylan Baker 2018-12-21 21:26:08 UTC
Indeed, it seems to be fixed by that patch. I'm planning to make 0.49.1 required for using ICC once it's out anyway (due to a lot of fixes in 0.49.0 and the fix to this in 0.49.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.