Closed SolarAquarion closed 1 month ago
What versions of valac and C compiler are you using? There seems to be a mismatch between the code the Vala compiler is producing and what the compiler is set to accept.
On elementary 7.1 (the current stable version) this is what is used:
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
Vala compiler for the host machine: valac (valac 0.56.17)
and this produces no C compiler warnings on the current main source code.
I get the same error messages under Fedora 40. meson outputs the following versions:
C compiler for the host machine: cc (gcc 14.0.1 “cc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0)”)
C linker for the host machine: cc ld.bfd 2.41-37
Vala compiler for the host machine: valac (valac 0.56.17)
Here is the full build log: https://github.com/meisenzahl/distro-agnostic/actions/runs/10476492737/job/29015506125?pr=23
@tintou do you know if it is somehow possible to fix the errors?
@ryonakano could this be a similar problem to https://github.com/elementary/gala/pull/2045?
If so, could you perhaps provide some assistance to solve the problem?
The Files main
branch is building on OS8 Early Access with these tools:
C compiler for the host machine: cc (gcc 13.2.0 "cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0")
C linker for the host machine: cc ld.bfd 2.42
Vala compiler for the host machine: valac (valac 0.56.17)
So it looks like an incompatibility with gcc 14 of some of the code generated by valac 0.56. If I can get gcc 14 installed on OS8 I'll see whether the code can be tweaked to produce compatible C code as was done with gala
.
There are currently 8 non-fatal compiler warnings being generated on OS8. Should probably fix those first ...
I can confirm that the build fails on OS8 if CC=gcc-14
is specified.
What Happened?
Build failure while trying to build the version from git
Steps to Reproduce
Download the git?
Expected Behavior
Successful build from git?
OS Version
Other Linux
Software Version
Compiled from git
Log Output
Hardware Info
No response