Bug 431674 - macOS build on x64 architecture broken
Summary: macOS build on x64 architecture broken
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-16 09:07 UTC by Manga Tengu
Modified: 2021-01-18 13:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
osxbuild builddeps log (3.40 MB, text/plain)
2021-01-16 15:58 UTC, Manga Tengu
Details
osxbuild builddeps log fail on ext_python (3.66 MB, text/plain)
2021-01-16 17:11 UTC, Manga Tengu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manga Tengu 2021-01-16 09:07:40 UTC
git commit c6ab55565d65e019b6466a56f1415000391b2761

I can't build krita since beta 4.4 beta 1 or 2 I can't remember. Clang is failing with "too many errors". The default max is 20 errors.

Talked about it informally with Ivan on IRC. He needed to investigate as he is working only on ARM architecture for now.
I'm creating this ticket to be able to follow the issue without becoming a stalker.
Comment 1 Manga Tengu 2021-01-16 09:11:31 UTC
I put this in unit tests as I had no idea where to put it
Comment 2 Halla Rempt 2021-01-16 12:04:22 UTC
Can you please attach the complete output from running cmake to the running make to the bug report?
Comment 3 Halla Rempt 2021-01-16 12:05:43 UTC
Also: https://binary-factory.kde.org/job/Krita_Nightly_MacOS_Build/ is still green.
Comment 4 Manga Tengu 2021-01-16 12:22:45 UTC
Sorry I missed a "detail" the build ends normally. It's the dependencies build that fails: 
"$ ./osxbuild.sh builddeps"

I'm gonna rerun it and attach the osxbuild.log
Comment 5 Manga Tengu 2021-01-16 12:23:36 UTC
btw I have run builddeps as the built krita.dmg was always corrupted in the end
Comment 6 Halla Rempt 2021-01-16 15:52:17 UTC
Building the dependencies works fine on the x64 macos binary factory.
Comment 7 Manga Tengu 2021-01-16 15:58:32 UTC
Created attachment 134937 [details]
osxbuild builddeps log
Comment 8 Manga Tengu 2021-01-16 15:58:48 UTC
I added the log file
Comment 9 Halla Rempt 2021-01-16 16:05:44 UTC
You should build the dependencies from the master branch, whether or not you build krita from the stable branch. In master, there's a recent commit that fixes building GSL with the latest xcode: https://invent.kde.org/graphics/krita/-/merge_requests/648/diffs
Comment 10 Manga Tengu 2021-01-16 16:06:49 UTC
Great !!! Good to know ! I'm gonna do that. I hope this fixes my corrupted krita.dmg in the end ?
Comment 11 Manga Tengu 2021-01-16 17:11:12 UTC
Created attachment 134943 [details]
osxbuild builddeps log fail on ext_python
Comment 12 Manga Tengu 2021-01-16 17:11:46 UTC
Now failing on ext_python I attached the log if you have an idea...
Comment 13 Bug Janitor Service 2021-01-17 04:33:20 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 14 Manga Tengu 2021-01-17 07:49:23 UTC
I downloaded the nightly dmg and tried it on big sur.
I get a strange error code/message: "6" before the splash screen shows.
Ivan doesn't have a problem on Catalina.
Anybody else on big sur ?
Comment 15 vanyossi 2021-01-17 20:52:47 UTC
The problem with manga Tengu is that qt 5,13.1 is installed in the system via homebrew taking precedence over the bundled qt. This ideally should not happen. Other than adding more rpath "guards" on krita libs there is little to nothing we can do about it. I have always avoided homebrew installs as they are known for messing up env and library search paths.
Comment 16 Halla Rempt 2021-01-18 13:03:09 UTC
Okay, then I think we should close the report: this is not something for us to work work on.