Bug 1222921 - cvise fails to build on Leap 15.6 - no member named 'getField'
Summary: cvise fails to build on Leap 15.6 - no member named 'getField'
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Martin Liška
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-16 21:51 UTC by Lubos Kocman
Modified: 2024-05-21 02:49 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.