Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887829 - Tinderbox CLANG-STRICTER-SYSTEM passes CFLAGS additional flags into CXXFLAGS and FCFLAGS
Summary: Tinderbox CLANG-STRICTER-SYSTEM passes CFLAGS additional flags into CXXFLAGS ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Agostino Sarubbo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 886275
  Show dependency tree
 
Reported: 2022-12-22 05:32 UTC by Sergey Torokhov
Modified: 2024-02-09 15:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Torokhov 2022-12-22 05:32:31 UTC
Tinderbox CLANG-STRICTER-SYSTEM passes additional CFLAGS="-Werror=implicit-function-declaration -Werror=implict-int -Werror=incompatible-function-pointer-types " flags into CXXFLAGS and FCFLAGS while shouldn't do it (for CXXFLAGS too).

The passing mentioned flags especially into FCFLAGS results in configuration/compilation warnings and errors like [1], [2]:
f951: Warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for Fortran
f951: Warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for Fortran
f951: Error: ‘-Werror=incompatible-function-pointer-types’: no option ‘-Wincompatible-function-pointer-types’; did you mean ‘-Wincompatible-pointer-types’?

The issues that seem to be invalid are then generated.

[1] https://bugs.gentoo.org/886275
[2] https://bugs.gentoo.org/887633


Reproducible: Always
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-22 08:03:57 UTC
Hi Sergey, thanks for the report.

Let me ask to sam what to to in this case.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-05 08:03:28 UTC
OK, yeah, we only want these in CFLAGS (not even CXXFLAGS).