Re: FTB due to 'too many arguments to function'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mattia Verga venit, vidit, dixit 2025-01-19 18:28:04:
> Il 19/01/25 18:23, Michael J Gruber ha scritto:
> > Mattia Verga via devel venit, vidit, dixit 2025-01-19 18:19:24:
> >> I see several of my packages are FTB in the running mass rebuild due to
> >> something like:
> >>
> >> error: too many arguments to function ‘DoInterlace’; expected 0, have 1
> >>
> >> Is that due to GCC 15, or is due to some "hardening" setting applied to
> >> Fedora flags? Should I start filing bugs upstream?
> > I don't mind guessing, but you're not giving us much for an "educated"
> > guess ...
> >
> > Most probably, it's f() which used to be taken as f(int) when it is
> > f(void) now but f(int) is used.
> >
> > Michael
> 
> For example:
> 
> https://kojipkgs.fedoraproject.org//work/tasks/7044/127997044/build.log
> 
> I don't know much of C, from what I've read online those functions are 
> declared without arguments and then used with arguments. It seems this 
> is now throwing an error, while before the mass rebuild just worked:
> 
> /builddir/build/BUILD/libahp-gt-1.7.0-build/libahp-gt-1.7.0/ahp_gt.c: In 
> function ‘synscan_poll’:
> /builddir/build/BUILD/libahp-gt-1.7.0-build/libahp-gt-1.7.0/ahp_gt.c:541:17: 
> error: too many arguments to function ‘ahp_gt_get_tracking_mode’; 
> expected 0, have 1
>    541 |                 ahp_gt_get_tracking_mode(cmd[0]);
>        |                 ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
> In file included from 
> /builddir/build/BUILD/libahp-gt-1.7.0-build/libahp-gt-1.7.0/ahp_gt.c:26:
> /builddir/build/BUILD/libahp-gt-1.7.0-build/libahp-gt-1.7.0/redhat-linux-build/ahp_gt.h:1037:16: 
> note: declared here
>   1037 | DLL_EXPORT int ahp_gt_get_tracking_mode();
>        |                ^~~~~~~~~~~~~~~~~~~~~~~~
> 

Yes, this is clearly fallout from gcc 15 landing in rawhide (just before
the mass rebuild). It's not a gcc 15 bug, though.

You could file upstream for gcc 15 / C23 standard compatibility.

For now, you can set an earlier standard (but it can be tricky to pass
on the falg, as I've found out).

Cheers
Michael
-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux