Bug 2149391 - petsc: Mystery undeclared functions during build configuration stage
Summary: petsc: Mystery undeclared functions during build configuration stage
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: petsc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. sagitter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCHelpNeeded
TreeView+ depends on / blocked
 
Reported: 2022-11-29 19:36 UTC by Florian Weimer
Modified: 2023-02-08 21:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-02-08 21:15:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.