I am running Ubuntu 21.04 here. When I try to compile Firenzina (https://github.com/Censor/Firenzina) with the default gcc-10 I get a ton of linker errors (around 2300 int total)
(.text+0x0): multiple definition of `ExtendInCheck'; main.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: utility.o (symbol from plugin): in function `log_filename':
(.text+0x0): multiple definition of `CountLimit'; main.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: utility.o (symbol from plugin): in function `log_filename':
(.text+0x0): multiple definition of `AspirationWindow'; main.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: utility.o (symbol from plugin): in function `log_filename':
(.text+0x0): multiple definition of `BulkName'; main.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: utility.o (symbol from plugin): in function `log_filename':
(.text+0x0): multiple definition of `BulkDirectory'; main.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: utility.o (symbol from plugin): in function `log_filename':
(.text+0x0): multiple definition of `TripleMaxUsage'; main.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: utility.o (symbol from plugin): in function `log_filename':
When I tried the old gcc-9 it compiles just fine. Is there an easy way to get it compile with gcc-10, so I can remove gcc-9 again?
pferd wrote: ↑Sat Jun 12, 2021 12:00 pmWhen I tried the old gcc-9 it compiles just fine. Is there an easy way to get it compile with gcc-10, so I can remove gcc-9 again?
The proper way would be fixing the broken code, but the quick and dirty workaround is adding "-fcommon" to your compiler options.