-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Build error with tinydir inlining #838
Comments
we enable most warnings and set as error in order to be more strict. Is this something that can be fixed upstream in tinydir? Are its functions too big to inline? |
I just compared the build flags between Debian and Ubuntu and found that the difference that causes the problem is |
When I raise the inlining limit (
(this check also seems to come from When I ignore that with |
Nix is disabling fortifying with level 3: Gentoo, FreeBSD and OpenMandriva are patching out |
which version of ubuntu/gcc runs into this error?
|
Yes, 13.2.0, same on Debian unstable. |
After increasing the inline limit and ignoring stringop-truncation errors in the 2.0.0 Debian package, it also successfully built in Ubuntu and it made it just in time before the freeze for 24.04 LTS. 😄 |
On Ubuntu build servers the build fails with this error:
In CMakeLists.txt
-Werror
and-Winline
are set:cdogs-sdl/CMakeLists.txt
Line 131 in 92490cc
tinydir_open
is declared as:where
_TINYDIR_FUNC
is:I'm not sure why it fails on Ubuntu, but succeeds on Debian builds (and also on CI builds here on Github). (maybe related to
--param max-inline-insns-single limit reached
that could be different?)Is there a reason why the build explicitely sets
-Winline
and upgrades these warnings to errors?The text was updated successfully, but these errors were encountered: