Bspwm: Build fails on gcc 10

Created on 14 May 2020  路  5Comments  路  Source: baskerville/bspwm

Should be relatively easy to fix, see: https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common.

While compiling, I get a ton of errors like the one outlined in the wiki mentioned above, for example:

/usr/bin/ld: subscribe.o:(.bss+0x838): multiple definition of `screen_width'; bspwm.o:(.bss+0x1b8): first defined here
/usr/bin/ld: subscribe.o:(.bss+0x83c): multiple definition of `default_screen'; bspwm.o:(.bss+0x1bc): first defined here
/usr/bin/ld: subscribe.o:(.bss+0x840): multiple definition of `dpy'; bspwm.o:(.bss+0x1c0): first defined here
collect2: error: ld returned 1 exit status
make: *** [<builtin>: bspwm] Error 1

Most helpful comment

@raylssonjorge
You can issue this make build option during compile until this is fixed.

CFLAGS="-fcommon"

All 5 comments

same problem here since arch Linux ships GCC 10 by default

No idea if github mentions accomplish anything, but in case he hasn't seen this: @baskerville

Same problem here. Does anyone have any idea on how to solve this?

R001001

@raylssonjorge
You can issue this make build option during compile until this is fixed.

CFLAGS="-fcommon"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alecive picture alecive  路  7Comments

madnight picture madnight  路  7Comments

icf20 picture icf20  路  5Comments

kristoferus75 picture kristoferus75  路  4Comments

Anachron picture Anachron  路  3Comments