Summary: | dev-lang/go rebuilding packages fails with "ignoring symbol" errors with -ggdb3 in CFLAGS? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Zack Weinberg <zack+gentoobugs> |
Component: | Current packages | Assignee: | William Hubbs <williamh> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | zack+gentoobugs |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info '=dev-util/hut-0.3.0::guru' output
Build log ebuild environment file |
Description
Zack Weinberg
2024-04-12 14:14:54 UTC
Created attachment 890494 [details]
Build log
Created attachment 890495 [details]
ebuild environment file
Someone tried to debug this with me in #gentoo a few months ago but I was quite tired, and they ended up coming back saying they stopped building dev-lang/go (and maybe some other packages?) w/o -ggdb3 and then Everything Was Fine. Fairly sure it's new with go-1.22 or maybe go-1.21. I don't think I managed to reproduce it at the time though. Ah, wait, maybe a dupe of bug 924496 -- where https://bugs.gentoo.org/924496#c3 mentions why it may have started (so maybe not a new go bug, but newly surfaced in ebuilds). The workaround in https://bugs.gentoo.org/924496#c4 is effective. Specifically, I now have this in /etc/portage/make.conf COMMON_FLAGS="-O2 -march=native -pipe" CFLAGS="-ggdb3 ${COMMON_FLAGS}" CXXFLAGS="-ggdb3 ${COMMON_FLAGS}" FCFLAGS="-ggdb3 ${COMMON_FLAGS}" FFLAGS="-ggdb3 ${COMMON_FLAGS}" CGO_CFLAGS="-g ${COMMON_FLAGS}" CGO_CXXFLAGS="-g ${COMMON_FLAGS}" CGO_FFLAGS="-g ${COMMON_FLAGS}" and emerge @golang-rebuild now succeeds for me. I know absolutely nothing about Go, but am happy to do further experiments if given step by step instructions. |