Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74416 - [kreport] FTBFS in some cases

Attached to Project: Arch Linux
Opened by Sprite (Sprite) - Saturday, 09 April 2022, 05:44 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 09 April 2022, 08:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In June 2020, the official kreport repository fixed a bug that caused builds to fail, in 5d3053e[1] commit.

Debian distro also currently applies this commit as a patch.[2]

On Arch Linux x86_64, this commit was not applied, and I'm not sure why this didn't cause any problems.

But when I try to compile kexi package on Arch Linux RISC-V (kreport is a dependency of kexi), I get errors:

```
/usr/bin/ld: /tmp/cclr1HhW.ltrans0.ltrans.o: in function `.LVL2708':
/usr/include/qt/QtCore/qobject.h:524: undefined reference to `KReportGroupTracker::qt_metacast(char const*)'
/usr/bin/ld: /tmp/cclr1HhW.ltrans0.ltrans.o: in function `.L0 ':
/usr/src/debug/kexi-3.2.0/src/plugins/reports/kexireportdesignview.cpp:169: undefined reference to `KReportGroupTracker::qt_metacall(QMetaObject::Call, int, void**)'
/usr/bin/ld: /tmp/cclr1HhW.ltrans0.ltrans.o: in function `.LANCHOR0':
<artificial>:(.data.rel.ro+0xf0): undefined reference to `KReportGroupTracker::staticMetaObject'
/usr/bin/ld: <artificial>:(.data.rel.ro+0xd48): undefined reference to `typeinfo for KReportGroupTracker'
/usr/bin/ld: /tmp/cclr1HhW.ltrans1.ltrans.o: in function `.L0 ':
/usr/include/qt/QtCore/qlogging.h:68: undefined reference to `vtable for KReportGroupTracker'
collect2: error: ld returned 1 exit status
```

I have checked and confirmed that on Arch Linux x86_64, the compiled kreport.so does not contain symbols about `KReportGroupTracker`. I don't know why this doesn't cause a compile error on kexi x86_64, but it does on kexi RISC-V. (If anyone knows why, I'd be happy to get an explanation)

After I applied that patch manually, the compilation worked fine for both x86_64 and RISC-V.

The attached file is a patch for kreport's PKGBUILD.

[1]: https://invent.kde.org/libraries/kreport/-/commit/5d3053ea78b349b81b7a562974ad78f93d169791
[2]: https://sources.debian.org/patches/kreport/3.2.0-3/upstream_Fix-build-with-GCC-10-make-KReportGroupTracker-use-C.patch/

This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 09 April 2022, 08:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  kreport 3.2.0-3

Loading...