Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887285 - dev-lang/go-1.19.4: cgo runtime sets -Werror
Summary: dev-lang/go-1.19.4: cgo runtime sets -Werror
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
: 887229 (view as bug list)
Depends on:
Blocks: werror 916580
  Show dependency tree
 
Reported: 2022-12-20 06:02 UTC by tastytea
Modified: 2023-11-02 15:10 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 tastytea 2022-12-20 06:02:28 UTC
/go/src/runtime/cgo/cgo.go (in the tarball, installed into /usr/lib/ here) contains:
> #cgo CFLAGS: -Wall -Werror -fno-stack-protector

This seems to add -Werror to everything that is compiled with cgo.

-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: https://devmanual.gentoo.org/ebuild-writing/common-mistakes/index.html#-werror-compiler-flag-not-removed
Comment 1 tastytea 2022-12-20 06:04:12 UTC
*** Bug 887229 has been marked as a duplicate of this bug. ***