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
Fix build on FreeBSD again #3249
Conversation
json_ui.cc:29:9: error: use of undeclared identifier 'sprintf' sprintf(buffer, R"("#%02x%02x%02x")", color.r, color.g, color.b); ^ 1 error generated. Regressed by 7cdbe1d
This kind of error mostly happens because there is no FreeBSD CI. Cirrus CI supports FreeBSD and is free for open source projects. Would you in principle accept a PR that adds a basic |
Something like the following seems to do the job:
Do you have any experience with Cirrus? It's much faster, and writing The locale seems to be wrong in the Linux containers, and I don't know how to handle multiple compilers, do you know how to do that? |
I think it needs to be a little more complicated. For example, on FreeBSD Something like (untested):
Very little. I'm using it for some of my projects with no problems so far. The FreeBSD Wiki (https://wiki.freebsd.org/HostedCI) lists a bunch of projects that use Cirrus too. https://github.com/newsboat/newsboat/blob/master/.cirrus.yml#L74 handles multiple compilers by setting some environment variables via As for the locale would something like
work? |
I've written a Cirrus CI build script for another project and it worked out pretty well. |
Travis has been pretty slow and prone to error-ing out of test builds recently. If someone came up with a |
I have a working |
Nice! Any idea how to handle compiling with Clang>=5 as well? |
Sure. I've added a build with Clang on Linux and GCC on FreeBSD: https://github.com/t6/kakoune/blob/991583bdcbb98b009f7d3ef0f8ea7958f90eb99e/.cirrus.yml |
Note that there are lots of warnings when building with GCC9... |
Regressed by 7cdbe1d