Bug 2149391

Summary: petsc: Mystery undeclared functions during build configuration stage
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: petscAssignee: Antonio T. sagitter <trpost>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: trpost
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-08 21:15:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2137512    

Description Florian Weimer 2022-11-29 19:36:31 UTC
As part of the modern C effort, I noticed a few calls to undeclared functions:

/tmp/petsc-2vv1tqcy/config.functions/conftest.c:13: implicit function declaration: sysinfo
/tmp/petsc-4k1fvpta/config.functions/conftest.c:13: implicit function declaration: sysinfo
/tmp/petsc-4qu24htp/config.functions/conftest.c:13: implicit function declaration: sysinfo
/tmp/petsc-4qu24htp/config.packages.MPI/conftest.c:12: implicit function declaration: MPI_Send_init_c
/tmp/petsc-4qu24htp/config.packages.MPI/conftest.c:11: implicit function declaration: MPI_Send_c
/tmp/petsc-4qu24htp/config.packages.MPI/conftest.c:13: implicit function declaration: MPI_Isend_c
/tmp/petsc-4qu24htp/config.packages.MPI/conftest.c:15: implicit function declaration: MPI_Recv_init_c
/tmp/petsc-4qu24htp/config.packages.MPI/conftest.c:14: implicit function declaration: MPI_Recv_c
/tmp/petsc-4qu24htp/config.packages.MPI/conftest.c:16: implicit function declaration: MPI_Irecv_c
/tmp/petsc-be8lusqo/config.functions/conftest.c:13: implicit function declaration: sysinfo

See https://fedoraproject.org/wiki/Toolchain/PortingToModernC#Discovering_Packages_Which_Need_Fixing for the technical background and where these logs are coming from. The full log is here:

https://gitlab.com/fweimer-rh/fedora-modernc-logs/-/blob/main/logs/p/petsc.log

I have trouble figuring out where this is coming from. I opened an upstream issue: https://gitlab.com/petsc/petsc/-/issues/1290

This bug here is mainly to avoid duplicate work on the Fedora side.

Comment 1 Antonio T. sagitter 2022-12-06 18:37:19 UTC
> https://gitlab.com/fweimer-rh/fedora-modernc-logs/-/blob/main/logs/p/petsc.log

Where does this output come from?
Is it the build log of SRPM package in Fedora?

Comment 2 Florian Weimer 2022-12-06 18:40:00 UTC
(In reply to Antonio T. sagitter from comment #1)
> > https://gitlab.com/fweimer-rh/fedora-modernc-logs/-/blob/main/logs/p/petsc.log
> 
> Where does this output come from?
> Is it the build log of SRPM package in Fedora?

It's a build log, with additional instrumentation for certain kinds of errors:

<https://fedoraproject.org/wiki/Toolchain/PortingToModernC#Currently_available_instrumentations>

Comment 3 Ben Cotton 2023-02-07 15:00:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 4 Florian Weimer 2023-02-08 21:15:23 UTC
Upstream conclusion is that this is harmless after all.