Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 887917

Summary: [guru] sci-electronics/verilator-5.022 adds debug flags (-g/-ggdb) on its own
Product: GURU Reporter: Agostino Sarubbo <ago>
Component: Package issuesAssignee: vowstar <vowstar>
Status: RESOLVED FIXED    
Severity: normal CC: guru-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 785607    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-12-22 08:37:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-electronics/verilator-5.002 adds debug flags (-g/-ggdb) on its own.
Discovered on: amd64 (internal ref: guru_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
while at the end, the binaries are stripped, debug flags slow down the build process and take more disk/ram and should not be added by default..
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-22 08:37:04 UTC
Created attachment 844691 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-01-07 08:06:23 UTC
guru_ci has reproduced this issue with version 5.004 - Updating summary.
Comment 3 Agostino Sarubbo gentoo-dev 2023-01-31 13:19:44 UTC
guru_ci has reproduced this issue with version 5.006 - Updating summary.
Comment 4 Agostino Sarubbo gentoo-dev 2023-04-02 08:36:30 UTC
guru_ci has reproduced this issue with version 5.008 - Updating summary.
Comment 5 Agostino Sarubbo gentoo-dev 2023-08-10 12:50:37 UTC
guru_ci has reproduced this issue with version 5.014 - Updating summary.
Comment 6 Agostino Sarubbo gentoo-dev 2023-11-07 08:01:55 UTC
guru_ci has reproduced this issue with version 5.018 - Updating summary.
Comment 7 Agostino Sarubbo gentoo-dev 2024-03-17 07:58:00 UTC
guru_ci has reproduced this issue with version 5.022 - Updating summary.
Comment 8 Larry the Git Cow gentoo-dev 2024-03-19 00:39:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=01e3aec7e7e42a3ff27a057482656b825e1648ed

commit 01e3aec7e7e42a3ff27a057482656b825e1648ed
Author:     Huang Rui <vowstar@gmail.com>
AuthorDate: 2024-03-18 13:19:09 +0000
Commit:     Huang Rui <vowstar@gmail.com>
CommitDate: 2024-03-18 13:19:09 +0000

    sci-electronics/verilator: fix compile bugs
    
    - fix fails to compile with dev-lang/python-exec[-native-symlinks]
    - fix adds debug flags (-g/-ggdb) on its own
    
    Closes: https://bugs.gentoo.org/785151
    Closes: https://bugs.gentoo.org/887917
    Signed-off-by: Huang Rui <vowstar@gmail.com>

 sci-electronics/verilator/verilator-5.022.ebuild | 29 +++++++++++++++++++++-
 sci-electronics/verilator/verilator-9999.ebuild  | 31 ++++++++++++++++++++++--
 2 files changed, 57 insertions(+), 3 deletions(-)