We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3466

Summary: Can't build 2.0.5 on ppc64
Product: SDL Reporter: Luigi Baldoni <aloisio>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: don't know   
Hardware: PowerPC   
OS: Linux   
Attachments: ppc64 build log snippet

Description Luigi Baldoni 2016-10-22 15:16:54 UTC
See attached log. Same behaviour with gcc 5.3.1 and 6.2.
No problem with clang 3.8.1.
Comment 1 Luigi Baldoni 2016-10-22 15:17:59 UTC
Created attachment 2590 [details]
ppc64 build log snippet
Comment 2 Sam Lantinga 2016-10-22 18:02:50 UTC
This should be fixed:
https://hg.libsdl.org/SDL/rev/5184186d4366

Thanks!
Comment 3 Ozkan Sezer 2016-10-22 18:26:28 UTC
(In reply to Sam Lantinga from comment #2)
> This should be fixed:
> https://hg.libsdl.org/SDL/rev/5184186d4366

Unless I am missing something, the rmask, gmask and bmask initializations
must be move after the srcfmt and dstfmt, otherwise it'll be a null pointer
dereference.
Comment 4 Sam Lantinga 2016-10-23 00:53:31 UTC
You are correct, sir. Thanks for catching that!
https://hg.libsdl.org/SDL/rev/fbf9b0e3589a