Bug 108310 - Failure to build with LLVM7
Summary: Failure to build with LLVM7
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/swr (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-10-10 03:23 UTC by Thiago Macieira
Modified: 2019-09-18 18:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Thiago Macieira 2018-10-10 03:23:58 UTC
Building d3682766f66b69ab636a2b9ca74db48fab68e024

Configured as:

CFLAGS='-O2 -fPIC -g -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -Wl,--copy-dt-needed-entries,-z,now,-z,relro,-z,max-page-size=0x1000,-z,separate-code -Wno-error -ftree-vectorize -Wl,--enable-new-dtags -m64 -march=westmere -mtune=haswell -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wp,-D_REENTRANT -O3 -falign-functions=32 -fno-math-errno -fno-semantic-interposition -fno-trapping-math  -m32 -m64 -march=haswell'
export CFLAGS
./configure --build=x86_64-generic-linux-gnu --host=x86_64-generic-linux-gnu --target=x86_64-clr-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --enable-dri --enable-dri3 --enable-glx --enable-gles2 --enable-xorg --enable-shared-glapi --enable-xorg --enable-glx-tls --enable-xvmc --enable-va --enable-glx-tls --enable-texture-float --enable-gbm --enable-llvm --disable-omx-tizonia --disable-omx-bellagio --sysconfdir=/usr/share/mesa --with-egl-platforms=x11,drm,wayland --with-vulkan-drivers=intel,radeon --with-dri-drivers=i965 --with-gallium-drivers=swrast,swr,radeonsi,r600,nouveau,svga --with-swr-archs=avx2 --enable-gallium-osmesa

Build errors:
rasterizer/jitter/blend_jit.cpp:873:20: error: ‘createInstructionSimplifierPass’ was not declared in this scope
         passes.add(createInstructionSimplifierPass());
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rasterizer/jitter/fetch_jit.cpp: In member function ‘llvm::Function* FetchJit::Create(const FETCH_COMPILE_STATE&)’:
rasterizer/jitter/fetch_jit.cpp:297:19: error: ‘createInstructionSimplifierPass’ was not declared in this scope
     optPasses.add(createInstructionSimplifierPass());
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rasterizer/jitter/streamout_jit.cpp:309:20: error: ‘createInstructionSimplifierPass’ was not declared in this scope
         passes.add(createInstructionSimplifierPass());
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rasterizer/jitter/functionpasses/lower_x86.cpp:79:48: error: ‘x86_fma_vfmadd_ps_256’ is not a member of ‘llvm::Intrinsic’
         {"meta.intrinsic.VFMADDPS", Intrinsic::x86_fma_vfmadd_ps_256},
                                                ^~~~~~~~~~~~~~~~~~~~~
Comment 1 Thiago Macieira 2018-10-10 03:24:49 UTC
Patch used by Clear Linux found in https://bugs.freedesktop.org/attachment.cgi?id=141969
Comment 2 GitLab Migration User 2019-09-18 18:24:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/200.


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.