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.
Please attach the full build.log and emerge --info.