Bug 1222921

Summary: cvise fails to build on Leap 15.6 - no member named 'getField'
Product: [openSUSE] openSUSE Distribution Reporter: Lubos Kocman <lubos.kocman>
Component: OtherAssignee: Martin Liška <martin.liska>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: martin.liska, mlin
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lubos Kocman 2024-04-16 21:51:05 UTC
Hello

package cvise fails to build on Leap 15.6

https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/cvise/standard/x86_64

2.8.0+git.20230428.7aaa251/clang_delta/RemoveUnusedStructField.cpp:250:39: error: 'const class clang::DesignatedInitExpr::Designator' has no member named 'getField'; did you mean 'getFieldLoc'?
[  218s]   250 |         const FieldDecl *CurrFD = DS->getField();
[  218s]       |                                       ^~~~~~~~
[  218s]       |                                       getFieldLoc
[  218s] make[2]: *** [clang_delta/CMakeFiles/clang_delta.dir/build.make:639: clang_delta/CMakeFiles/clang_delta.dir/RemoveUnusedStructField.cpp.o] Error 1
Comment 2 Martin Liška 2024-04-17 10:44:48 UTC
Please update to the latest C-Vise release where the LLVM 17 compatibility is addressed. Or, if you can't provide Python 3.8+, then please cherry-pick the following revisions:
https://github.com/marxin/cvise/commit/20cac24b794987f09321201130452f2102e26194
https://github.com/marxin/cvise/commit/47b20cd98513e686145e52aa7f8dc081204ad6ea
Comment 3 Max Lin 2024-05-14 04:20:39 UTC
(In reply to Martin Liška from comment #2)
> Please update to the latest C-Vise release where the LLVM 17 compatibility
> is addressed. Or, if you can't provide Python 3.8+, then please cherry-pick
> the following revisions:
> https://github.com/marxin/cvise/commit/
> 20cac24b794987f09321201130452f2102e26194
> https://github.com/marxin/cvise/commit/
> 47b20cd98513e686145e52aa7f8dc081204ad6ea

these two patches is not enough to fix the build, I force it to use llvm15 to build with cvise on Leap 15.6 atm, that works.