Bug 1795887

Summary: Fail to build doublecmd with lazarus
Product: [Fedora] Fedora Reporter: Vasiliy Glazov <vascom2>
Component: lazarusAssignee: Joost van der Sluis <joost>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: fedora, joost, mattia.verga
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-19 21:17:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vasiliy Glazov 2020-01-29 06:30:57 UTC
MassRebuild doublecmd for F32 failed with error from lazarus.

/usr/lib64/lazarus/lcl/interfaces/./qt5/qtproc.pp(25,3) Fatal: (10022) Can't find unit InterfaceBase used by qtproc
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

Failed task in koji https://koji.fedoraproject.org/koji/taskinfo?taskID=41142914
Full build log https://kojipkgs.fedoraproject.org//work/tasks/2986/41142986/build.log

Can you comment this or suggest how to solve this problem?

Comment 1 Artur Frenszek-Iwicki 2020-01-29 09:56:36 UTC
Lazarus is quite closely tied to FPC, and FPC in Rawhide has been updated from 3.0.4 to 3.2.0-beta, but Lazarus hasn't been recompiled using the new FPC yet. ...oh, just as I was writing this, the mass rebuild job finished with a fail status.

Either way, at the moment I suggest waiting a bit for Lazarus to get rebuilt using FPC 3.2.0-beta underneath and then resubmitting the build. If the error still persists, we'll investigate further.

Comment 2 Vasiliy Glazov 2020-01-29 11:12:32 UTC
Thanks. Will wait MassRebuild end.

Comment 3 Artur Frenszek-Iwicki 2020-01-29 12:26:15 UTC
Lazarus has been rebuilt using FPC 3.2.0-beta: https://koji.fedoraproject.org/koji/taskinfo?taskID=41194427

Comment 4 Vasiliy Glazov 2020-01-29 13:07:54 UTC
Now other error.

/builddir/build/BUILD/doublecmd-0.9.7/src/./filesources/searchresult/usearchresultfilesource.pas(26,29) Error: (5042) No matching implementation for interface method "GetFileList:TFileTreeNode;" found
/builddir/build/BUILD/doublecmd-0.9.7/src/./filesources/searchresult/usearchresultfilesource.pas(26,29) Error: (5042) No matching implementation for interface method "GetFileSource:IFileSource;" found
/builddir/build/BUILD/doublecmd-0.9.7/src/./filesources/searchresult/usearchresultfilesource.pas(40,1) Fatal: (10026) There were 2 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

Koji task https://koji.fedoraproject.org/koji/taskinfo?taskID=41196798

Comment 5 Ben Cotton 2020-02-11 17:23:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 6 Artur Frenszek-Iwicki 2020-04-16 23:46:53 UTC
FPC in Rawhide has been updated to svn-r44680 and Lazarus has been updated to 2.0.8.

Does the problem still persist?

Comment 7 Vasiliy Glazov 2020-04-17 04:50:55 UTC
Yes. Problem still persist in rawhide and F32.

Comment 8 Vasiliy Glazov 2020-05-18 20:43:29 UTC
Any suggestions?

Comment 9 Artur Frenszek-Iwicki 2020-05-18 23:13:31 UTC
Sorry, slipped my mind.

I've reported this to the FPC bug tracker some time ago: https://bugs.freepascal.org/view.php?id=36925
The response is that this is an intentional breaking change introduced in FPC 3.2.0.

Seeing how the FPC 3.2.0 release date keeps getting delayed, waiting for upstream to fix this is rather pointless, so I guess the only course of action available now is to try and patch this for Fedora. If you need help, I'll try my hand at it over the weekend.

Comment 10 Vasiliy Glazov 2020-05-19 21:17:23 UTC
Built doublecmd with patch to support fpc 3.2.0.