Bug 448152

Summary: Building with Xcode fails `ld: malformed 64-bit a.b.c.d.e version number: 5.7.211201`
Product: [Applications] kdevelop Reporter: Yurii Kolesnykov <yurii.kolesnykov>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: critical CC: jeremy.william.murphy
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Homebrew (macOS)   
OS: macOS   
URL: https://invent.kde.org/packaging/homebrew-kde/-/issues/40
Latest Commit: Version Fixed In: 5.8.220402
Sentry Crash Report:

Description Yurii Kolesnykov 2022-01-09 07:02:02 UTC
STEPS TO REPRODUCE
1. Try to build kdevelop on macOS

OBSERVED RESULT
ld: malformed 64-bit a.b.c.d.e version number: 5.7.211201

EXPECTED RESULT
Builds and links fine

SOFTWARE/OS VERSIONS
macOS: 12.2 beta	(21D5025f) / Xcode 13.2.1
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Also observed on 21.12.0 and 21.12.1. `brew gist-logs kdevelop` for 21.12.1[0] and master[1]

[0]https://gist.github.com/ed4bf5c6b5166526d78fcd6683c0a5b8
[1]https://gist.github.com/f2328ce5fd8b7a5bbd17afc93d22b43f
Comment 1 Jeremy W. Murphy 2022-03-02 03:48:33 UTC
I assume this is the explanation? https://www.sicpers.info/2013/03/how-to-version-a-mach-o-library/
Using git revision as the minor version?
Comment 2 Jeremy W. Murphy 2022-04-08 00:10:11 UTC
I opened a PR: https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/343
Comment 3 Jeremy W. Murphy 2022-05-18 08:27:44 UTC
Git commit 7d02895fd0ef22fb93c4f2a5fc3fe5dfc7aba4cb by Jeremy W. Murphy.
Committed on 17/05/2022 at 07:44.
Pushed by igorkushnir into branch 'release/22.04'.

On Apple, use project version format compatible with Apple linker
FIXED-IN: 5.8.220402

Using PROJECT here makes sure that it is never out of sync with the ecm
setup in kdevplatform. However, I'm pretty sure that the 'micro' (fourth)
version level is ignored.

M  +12   -1    CMakeLists.txt

https://invent.kde.org/kdevelop/kdevelop/commit/7d02895fd0ef22fb93c4f2a5fc3fe5dfc7aba4cb