[Debian-med-packaging] Bug#1114476: [PATCH] Fix build of CAP2.c:317:14: error: too many arguments to function 'ckopen'; expected 0, have 2
Trupti
trupti at linux.ibm.com
Thu Sep 25 18:08:02 BST 2025
On 2025-09-24 10:08, Trupti wrote:
>> Hello,
>>
>> I was able to reproduce the issue on a ppc64el machine using sbuild.
>> Below is the relevant error log:
>>
>> make[4]: Leaving directory '/build/reproducible-path/arb-6.0.6'
>> make[3]: *** [Makefile:1968: arb] Error 2
>> make[3]: Leaving directory '/build/reproducible-path/arb-6.0.6'
>> make[2]: *** [Makefile:2303: all] Error 2
>> make[2]: Leaving directory '/build/reproducible-path/arb-6.0.6'
>> dh_auto_build: error: make -j16 "INSTALL=install --strip-program=true"
>> all returned exit code 2
>> make[1]: *** [debian/rules:51: override_dh_auto_build] Error 25
>> make[1]: Leaving directory '/build/reproducible-path/arb-6.0.6'
>> make: *** [debian/rules:39: binary] Error 2
>> dpkg-buildpackage: error: debian/rules binary subprocess returned exit
>> status 2
>>
>>
>> The build failed during the build stage inside the sbuild chroot for
>> ppc64el architecture.
>>
>>
>>
>> +------------------------------------------------------------------------------+
>> | Summary Mon, 22 Sep 2025
>> 11:25:43 +0000 |
>> +------------------------------------------------------------------------------+
>>
>> Build Architecture: ppc64el
>> Build Type: binary
>> Build-Space: 333292
>> Build-Time: 92
>> Distribution: forky-ppc64el-sbuild
>> Fail-Stage: build
>> Host Architecture: ppc64el
>> Install-Time: 54
>> Machine Architecture: ppc64el
>> Package: arb
>> Package-Time: 150
>> Source-Version: 6.0.6-8
>>
>>
>>
>> I will investigate the issue further and get back to you.
>>
>> Thanks,
>> Trupti
>
>
>
> Hello,
>
> The build fails with GCC 14+ because some functions in CAP2.c are
> written in an old C style.
> Earlier GCC versions allowed this, but new compilers treat them as
> functions with no arguments.
> So calls like my_calloc(1) or ckopen(file,mode) now give errors.
> The code needs to be updated with proper function declarations.
>
> I will work on preparing a patch to fix this.
>
>
> Thanks,
> Trupti
Hi,
Please find attached a patch (gcc15_fix_cap2.patch) which fixes the
CAP2.c build failures with GCC 15 on ppc64el. The issue was caused by
incorrect function prototypes in CAP2.c. This patch corrects the
function signatures and ensures consistent ANSI-style declarations.
Built and tested successfully on ppc64el with GCC 15.
Note: there are still other Altivec/Eigen-related errors in the code, so
the full build is still failing. Those need to be addressed in a
separate patch.
I would appreciate a review of this patch and any suggestions for
improvements.
Thanks,
Trupti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc15_fix_cap2.patch
Type: text/x-diff
Size: 9431 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20250925/3a8799d1/attachment-0003.patch>
More information about the Debian-med-packaging
mailing list