Closed saper closed 1 year ago
I have been able to recreate the issue with gcc-11.2 on a fresh OpenBSD 7.3, but gcc-8.4 (my current default gcc on OpenBSD) or earlier does not raise these errors. The proper solution is to handle the variable declarations and definitions in kconfig properly (old codebase), but using an older gcc is a stopgap measure.
Thanks for the heads up.
I think just adding -fcommon
to modern compilers might also fix this. I am not sure I want to see 2.11BSD code overly modernized, let's make compilers work a bit harder :)
Thanks for supporting BSD make now! It feels much better now. I am not sure I like 4.4BSD layout, the old once had a nice ancient flair! Great project, thank you!
This is gcc 11.3.1 on Almalinux 9, GNU ld 2.35.2
same with gcc 11 on FreeBSD
I fixed this with the following for now:
but I think this is not a best change probably a linker script might be needed here...