Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836908 - Gerbv link error with newer gcc
Summary: Gerbv link error with newer gcc
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-06 09:58 UTC by hangglider
Modified: 2022-04-06 11:49 UTC (History)
0 users

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 hangglider 2022-04-06 09:58:50 UTC
When merging gerbv with newer gcc (11.2.1_p20220115 in my case), 2 link errors occur, as gcc won't any more instantiate variables origining from header files. E.g.

header.h:
enum {...} something;

won't give "something" with simply including header.h. Correct way would be to only declare in header, but define in .c:

header.h:
enum something {...};

cfile.c:
#include "header.h"
enum something something;

gerbv suffers from that in src/callbacks.[hc] twice, with (1) toggle_layer and (2) CALLBACKS_SAVE_FILE_TYPE. As the problem is reported upstream for more than a year, I'm unwilling to re-report.

Reproducible: Always

Steps to Reproduce:
1. have gcc-11.2.* installed
2. emerge gerbv
Actual Results:  
Link error

Expected Results:  
working gerbv. Beside this a fix at upstream.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-06 11:49:12 UTC
Please attach the full build.log and emerge --info.