elementary / files

File browser designed for elementary OS
https://elementary.io
GNU General Public License v3.0
322 stars 75 forks source link

4.4.3 Build fails with both GCC 10 and Clang 10 #1341

Closed alucryd closed 4 years ago

alucryd commented 4 years ago

Prerequisites

Describe the bug

Building 4.4.3 fails for different reasons with GCC 10 and Clang 10. FYI I can "fix" the clang build by temporarily passing -Wno-return-type.

Logs

GCC: https://buildbot.alucryd.xyz/#/builders/213/builds/10/steps/7/logs/stdio Clang: https://buildbot.alucryd.xyz/#/builders/213/builds/11/steps/7/logs/stdio

Platform Information

Arch Linux, GCC 10, Clang 10.

jeremypw commented 4 years ago

Did the previous release build OK under the same conditions?

jeremypw commented 4 years ago

The Clang problem seems to be due to a quirk in the way the Vala compiler handles return_if_fail in a void async function. If this is replaced by a simple if clause then the problem goes away.

jeremypw commented 4 years ago

@alucryd I think I fixed the CLang10 issue with the linked #1342 but cannot test it. Are you able to confirm whether that PR fixes that issue?

The issue with GCC10 has a different cause and should probably have been raised separately so that it can fixed in a separate PR.

alucryd commented 4 years ago

@jeremypw This indeed fixes the clang building, thanks!

jeremypw commented 4 years ago

Thanks - I'll look into the GCC10 issue.

jeremypw commented 4 years ago

@alucryd I have pushed a draft PR (linked) that may fix the GCC 10 build problem - are you able to test it please?

alucryd commented 4 years ago

Sure, it still fails to build, here is the error log: https://paste.xinu.at/vXQaHWjlh8gFw8Rc/

jeremypw commented 4 years ago

@alucryd Thanks for trying!. Seems I have got rid of some errors so I am on the right track. Hopefully next commits will compete the fix.

alucryd commented 4 years ago

@jeremypw did you get around completing your GCC fix? 4.4.4 still fails to build here.

jeremypw commented 4 years ago

@alucryd Sorry - rather forgot about that one. I'll have another look at it.

jeremypw commented 4 years ago

@alucryd Is 84ee73f sufficient to fix the GCC problem? If so I'll revert the PR to that point. It started failing CI after that and I am having trouble identifying and fixing the problem.

jeremypw commented 4 years ago

@alucryd Its OK - I have set up a test install with GCC10 (the PR failed to build with GCC10 with just the commit that passed CI unfortunately)

alucryd commented 4 years ago

@jeremypw Apologies for the late reply, my free time is scarce these days. Awesome, glad you got a local build running!

alucryd commented 4 years ago

Thanks, confirmed 4.5.0 is building on Arch Linux!