pdns icon indicating copy to clipboard operation
pdns copied to clipboard

PowerDNS 4.6.0 fails to build with GCC12

Open mortenstevens opened this issue 3 years ago • 6 comments

It's not possible to build PowerDNS 4.6.0 with GCC12. Fedora 36 /rawhide

Buildlogs: https://mstevens.fedorapeople.org/results_pdns/4.6.0/1.fc36/build.log Environment: https://mstevens.fedorapeople.org/results_pdns/4.6.0/1.fc36/root.log

Best regards,

Morten

mortenstevens avatar Jan 25 '22 15:01 mortenstevens

Would you mind trying with https://github.com/PowerDNS/pdns/pull/11233 applied? That's the only actual error in that log, as far as I can tell.

rgacogne avatar Jan 25 '22 15:01 rgacogne

@rgacogne

Thank you. It's building fine with patch #11233

But there are still many build warnings with GCC12. it would be great if you could take a look.

mortenstevens avatar Jan 25 '22 15:01 mortenstevens

It looks like https://github.com/PowerDNS/pdns/pull/11197 would cover many of those. Perhaps we should backport it?

Habbie avatar Jan 25 '22 15:01 Habbie

That might be a good idea indeed! As for the is used uninitialized ones, I took a quick look a few days ago and I'm afraid I don't really understand what the compiler is complaining about..

rgacogne avatar Jan 25 '22 15:01 rgacogne

Backport in #11235

Habbie avatar Jan 25 '22 15:01 Habbie

Building seems to work, and the uninitialised warnings are maybe https://github.com/boostorg/function/issues/27 ?

zeha avatar Jul 29 '22 11:07 zeha

Fixed since!

Habbie avatar Nov 28 '22 14:11 Habbie