rocky / remake

Enhanced GNU Make - tracing, error reporting, debugging, profiling and more
http://bashdb.sf.net/remake
GNU General Public License v3.0
785 stars 73 forks source link

Build fails on gcc-10 #109

Closed dkogan closed 4 years ago

dkogan commented 4 years ago

Hi. The latest 4.3-dbg1.5 release doesn't build with gcc-10:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957756

This report is for the previous release, but the issue is there in the latest release too. The problem is that remake is defining global variables in header files, which creates multiple symbols (one for each object built from a .c that #includes such a header), and those symbols clash. gcc-10 changed the default build flags, which trigger the failure. The legacy mode can be enabled with -fcommon or we can not define globals in headers. This is the first issue described in the porting guide:

https://gcc.gnu.org/gcc-10/porting_to.html

Thanks

rocky commented 4 years ago

Ok. Thanks for the report. I'll installing gcc-10 and looking at soon.

trofi commented 2 years ago

Looks like the fix does not apply cleanly to latest 4.3 release.

What do you think of cutting gcc-10 compatible release for remake?

rocky commented 2 years ago

Patches are welcome.

trofi commented 2 years ago

Can you clarify what patch you expect? AFAIU 08113a2 is already in master branch, but no remake releases contain it.

rocky commented 2 years ago

Ah - my misunderstanding. Sure I'll update the 4.3 release with this and the more recent changes when I get a chance.

rocky commented 2 years ago

Ok - released.

trofi commented 2 years ago

Thank you! Proposed update downstream as https://github.com/NixOS/nixpkgs/pull/156290