Bug 1221306 - GCC 14: vala package(s) fails
Summary: GCC 14: vala package(s) fails
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-12 15:51 UTC by Michal Jireš
Modified: 2024-03-13 21:28 UTC (History)
1 user (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 Michal Jireš 2024-03-12 15:51:10 UTC
Building vala with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/vala/standard/x86_64

Due to:

valacodecontext.c: In function 'vala_code_context_get_file_path':
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 ();
      |

This affects many(all?) packages using Vala language.

It appears that it is fixed upstream https://gitlab.gnome.org/GNOME/vala/-/issues/1407 on latest version.
If not, use -fpermissive as mentioned by meta bug#1220571 until it is.
Comment 1 Michael Gorse 2024-03-13 21:28:21 UTC
The version in GNOME:Next compiles against gcc 14.