Closed ashleybone closed 4 years ago
This seems to have been solved by commit 1a3448616b3208883133227243b2a1faef198fa0.
As I'm able to compile it with gcc 10.1.1 without issues, I'm closing this issue. If this is still happening, feel free to re-open, and to submit a fixup patch.
Hi,
GCC 10 and above defaults to -fno-common, which prevents the merging of globals declared in multiple compilation units. This is causing linker problems with the declaration of:
struct ras_events *ras;
on line 30 of ras-record.h. It needs to be declared extern and defined in a single complation unit, or -fcommon needs to be added to the CFLAGS.
I'm using gcc 10.1.0 on arch linux. I configured and built ras with:
and the output of make is: