Bug 2177253 - redhat-rpm-config injects invalid flags to gfortran
Summary: redhat-rpm-config injects invalid flags to gfortran
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 38
Hardware: noarch
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-10 15:35 UTC by nvwarr
Modified: 2023-07-05 10:50 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources redhat-rpm-config pull-request 254 0 None None None 2023-07-05 10:50:08 UTC

Description nvwarr 2023-03-10 15:35:33 UTC
Description of problem:

redhat-rpm-config injects flags to gfortran, which are appropriate for the C/C++ compiler and/or preprocessor but not for Fortran.

Version-Release number of selected component (if applicable):

redhat-rpm-config-252-1.fc38.noarch

How reproducible:

always

Steps to Reproduce:
1. build an rpm containing Fortran code

Actual results:

three warnings are generated, which are not generated outside of rpmbuild

f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for Fortran
f951: Warning: -D_FORTIFY_SOURCE not defined
annobin: test.f: Warning: -D_GLIBCXX_ASSERTIONS not defined

Expected results:

should not pass -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS to gfortran.

Additional info:

this has actually been around for a while, but has only just crossed my annoyance threshold:)

Comment 1 Florian Weimer 2023-07-05 10:50:09 UTC
Some discussion in PR 254. I'm working on a different approach.


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