Bug 109039

Summary: [CLOVER][CLANG-SVN] build failure CodeGenOptions.h: No such file or directory
Product: Mesa Reporter: LoneVVolf <lonewolf>
Component: Gallium/StateTracker/CloverAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: high CC: network723, root
Version: gitKeywords: patch
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 99553    
Attachments: fix

Description LoneVVolf 2018-12-12 11:55:46 UTC
https://llvm.org/viewvc/llvm-project?view=revision&revision=348827

In llvm/clang  commit 348827 CodeGenOptions were moved from Frontend to Basic .
This breaks building mesa-git with opencl support.
Comment 1 Yurii Kolesnykov 2018-12-12 13:00:34 UTC
Created attachment 142791 [details] [review]
fix
Comment 2 Jan Vesely 2018-12-13 21:02:56 UTC
(In reply to Yurii Kolesnykov from comment #1)
> Created attachment 142791 [details] [review] [review]
> fix

Have you tested the patch with LLVM-7? It looks like it would fail the build.
Comment 3 Kai 2018-12-15 16:59:52 UTC
I stumbled across this issue as well and didn't check the bug tracker but immediately prepared [0]. That patch should fix this problem without leaving older LLVM versions out in the cold.


[0] <https://patchwork.freedesktop.org/patch/268295/>
Comment 4 Jan Vesely 2018-12-16 11:43:48 UTC
Fixed in e4f9a37ace750646fd75fbbdff9b5e77a0b26cfb.

clover: Fix build after clang r348827
    
    CodeGenOptions were moved to Basic.

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.