Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936100

Summary: dev-cpp/libmcpp-2.7.2_p5-r1: Fails to compile due to incompatible pointer types
Product: Gentoo Linux Reporter: Alexis <flexibeast>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: flexibeast
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
Output of `emerge --info`

Description Alexis 2024-07-15 09:10:05 UTC
Will attach full build log and output of `emerge --info` forthwith, but the error is:

```
expand.c: In function 'replace':
expand.c:713:21: error: assignment to 'char *' from incompatible pointer type 'LOCATION *' {aka 'struct location *'} [-Wincompatible-pointer-types]
  713 |         m_inf->args = m_inf->loc_args = NULL;       /* Default args */
      |                     ^
expand.c: In function 'rescan':
expand.c:1975:41: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 1975 |                             mgc_cleared = remove_magics(
      |                                         ^
make[2]: *** [Makefile:589: expand.lo] Error 1
```

Reproducible: Always
Comment 1 Alexis 2024-07-15 09:11:28 UTC
Created attachment 897656 [details]
Build log
Comment 2 Alexis 2024-07-15 09:11:54 UTC
Created attachment 897657 [details]
Output of `emerge --info`
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-16 06:56:12 UTC
I really consider us a while off stabling and I'd advise not using GCC 14 on stable or being prepared to try ~arch versions of packages first. There's a lot to do still.

*** This bug has been marked as a duplicate of bug 919186 ***
Comment 4 Alexis 2024-07-16 07:29:35 UTC
Oh huh, i didn't realise i'd somehow managed to allow testing gcc; when i saw 14 getting installed, i assumed it had been stabled. %-} Not sure how it got into my accept_keywords file, but i've now commented it out. Thanks for bringing this to my attention!