Bug 475458 - clang profile compilation error : -Wenum-constexpr-conversion
Summary: clang profile compilation error : -Wenum-constexpr-conversion
Status: RESOLVED DUPLICATE of bug 471995
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.11.230403
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-11 07:27 UTC by lg3dx6fd
Modified: 2023-10-11 08:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
build log (3.83 MB, text/x-log)
2023-10-11 07:27 UTC, lg3dx6fd
Details
environment stuff (120.88 KB, text/plain)
2023-10-11 07:27 UTC, lg3dx6fd
Details
portage's main configuration : /etc/portage/make.conf (2.81 KB, text/plain)
2023-10-11 07:27 UTC, lg3dx6fd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lg3dx6fd 2023-10-11 07:27:05 UTC
Created attachment 162213 [details]
build log

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. get a chrooted gentoo linux with clang profile ( which basically means using clang + libc++ + compiler-rt + libunwind ... ).
2. add similar to next compilation flags ( they should be fine ) to portage's main config ( /etc/portage/make.conf ):  -O3 -march=native -pipe -ggdb3 -flto=thin -Werror=odr -Werror=strict-aliasing 
3. try to emerge ( emerge is something like download sources, check something, configure, build and link, do some pre-installation stuff, check what previously was installed, maybe delete previous and install new package.)
4. get a compilation error 
```
In file included from /var/tmp/portage/dev-util/kdevelop-23.04.3/work/kdevelop-23.04.3/plugins/clang/codecompletion/completionhelper.cpp:9:
/var/tmp/portage/dev-util/kdevelop-23.04.3/work/kdevelop-23.04.3/plugins/clang/codecompletion/../duchain/cursorkindtraits.h:217:7: error: integer value -1 is outside the valid
 range of values [0, 255] for this enumeration type [-Wenum-constexpr-conversion]
    : static_cast<IntegralType::CommonIntegralTypes>(-1);
      ^
 ```

OBSERVED RESULT
compilation failure

EXPECTED RESULT
compilation success

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: gentoo clang profile
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
attach build logs, environment log of the package generated by gentoo and main config ( assume it's clang profile )
Comment 1 lg3dx6fd 2023-10-11 07:27:23 UTC
Created attachment 162214 [details]
environment stuff
Comment 2 lg3dx6fd 2023-10-11 07:27:51 UTC
Created attachment 162215 [details]
portage's main configuration : /etc/portage/make.conf
Comment 3 Igor Kushnir 2023-10-11 08:04:59 UTC

*** This bug has been marked as a duplicate of bug 471995 ***