Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904127 - sys-devel/gcc-11.3.1_p20230303[fortran] adds -Werror flag on its own
Summary: sys-devel/gcc-11.3.1_p20230303[fortran] adds -Werror flag on its own
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Blocks: werror
  Show dependency tree
Reported: 2023-04-10 12:54 UTC by Agostino Sarubbo
Modified: 2023-04-12 21:43 UTC (History)
2 users (show)

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

build.log.xz (build.log.xz,314.75 KB, application/x-xz)
2023-04-10 12:54 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-04-10 12:54:33 UTC

Issue: sys-devel/gcc-11.3.1_p20230303 adds -Werror flag on its own.
Discovered on: amd64 (internal ref: ci)

-Werror is not recommended for releases and should always be disabled when encountered in build-logs, because there are numerous cases where this breaks without purpose.
See also:
Comment 1 Agostino Sarubbo gentoo-dev 2023-04-10 12:54:39 UTC
Created attachment 859808 [details]

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Mike Gilbert gentoo-dev 2023-04-10 18:37:58 UTC
It looks like -Werror only appears when building libgfortran.