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

Bug 919710

Summary: dev-lang/vala: fails to compile on GCC 14 (incompatible pointer type)
Product: Gentoo Linux Reporter: Christopher Fore <csfore>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log of vala
casts the function to gchar**

Description Christopher Fore 2023-12-11 15:23:38 UTC
Created attachment 878667 [details]
build.log of vala

Reproducible:
Always

Steps to reproduce:
1. Emerge with GCC 14

valacodecontext.c:2669:33: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'const gchar * const*' {aka 'const char * const*'} [-Wincompatible-pointer-types]
 2669 |                 _tmp4_ = _tmp3_ = g_get_system_data_dirs ();
      |                                 ^
valacodecontext.c:2700:33: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'const gchar * const*' {aka 'const char * const*'} [-Wincompatible-pointer-types]
 2700 |                 _tmp9_ = _tmp8_ = g_get_system_data_dirs ();
      |                                 ^

$ gcc-config -l
...
 [3] x86_64-pc-linux-gnu-13
 [4] x86_64-pc-linux-gnu-14 *
Comment 1 Christopher Fore 2023-12-11 15:43:31 UTC
Created attachment 878668 [details, diff]
casts the function to gchar**

I can't seem to find the upstream source for this C file, the archived bootstrap code doesn't have it and there are no C files in Vala's repository.
Comment 2 Christopher Fore 2023-12-11 15:54:57 UTC

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