-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Adding initial workflow #4
Conversation
meson.build
Outdated
default_options: ['c_std=gnu23', 'cpp_std=gnu++23'], | ||
version: '0.1.0-dev', | ||
meson_version: '>= 1.1', | ||
default_options: ['c_std=gnu2x', 'cpp_std=gnu++23'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meson.build:1:0: ERROR: None of values ['gnu23'] are supported by the C compiler. Possible values for option "C_std" are ['none', 'c89', 'c99', 'c11', 'c17', 'c18', 'c2x', 'gnu89', 'gnu99', 'gnu11', 'gnu17', 'gnu18', 'gnu2x']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are using an "outdated" compiler.
I am making explicit use of the #embed
preprocessor directive which has been set standard with C23 (and as such covered by gnu23).
Any prior version is unlikely to work.
On my system, and on the flatpak I am using clang-19 for that reason.
You might be able to also use very recent zig (it is just an updated clang frontend in C/C++ mode).
If you look at project.json
,
"meson-setup.clang-release": "meson setup --reconfigure build/ --buildtype=release --native-file toolchains/clang.ini"
I am using a specific native file to ensure that c23 is supported.
This is briefly discussed in: https://github.com/KaruroChori/vs-fltk/blob/master/docs/for-developers.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood. I made some changes. Please trigger the workflow when it's convenient.
@@ -1,7 +1,9 @@ | |||
project( | |||
'vs-fltk', | |||
['c', 'cpp', 'swift'], | |||
default_options: ['c_std=gnu23', 'cpp_std=gnu++23'], | |||
version: '0.1.0-dev', | |||
meson_version: '>= 1.1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build type: native build
WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead
6412b0c
to
3efe5ab
Compare
Failing with these relevant parts in the log
and a second one virtually identical. |
Yes, that was the issue. There are now compiling errors of code I wrote which I cannot locally replicate. |
This reverts commit 79c9e22.
Attempt to add freeglut3-dev since this was also the issue when building the flatpak
Replaced vs.example with the actual meson command; otherwise, if successful, the machine would run the application without headless mode, and wait for user input.
88b916f
to
e581b31
Compare
Co-authored-by: Andy Alt <[email protected]>
It looks like the gnu lib shipped in ubuntu-22.04 is fully missing some header files like |
Well it looks like the culprit is the newest verison of cmake mesonbuild/meson#13888 |
31e7e55
to
a9b83e3
Compare
Success on ubuntu-24.04! |
Only keeping 24.04 for now, since the other versions ship with an older incompatible libc++
No description provided.