Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919710 - dev-lang/vala: fails to compile on GCC 14 (incompatible pointer type)
Summary: dev-lang/vala: fails to compile on GCC 14 (incompatible pointer type)
Status: RESOLVED DUPLICATE of bug 892708
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-11 15:23 UTC by Christopher Fore
Modified: 2023-12-11 15:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log of vala (build.log,134.50 KB, text/x-log)
2023-12-11 15:23 UTC, Christopher Fore
Details
casts the function to gchar** (cast-to-gchar.patch,811 bytes, patch)
2023-12-11 15:43 UTC, Christopher Fore
Details | Diff

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