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 - Can't build 2.0.5 on ppc64
Summary: Can't build 2.0.5 on ppc64
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: don't know
Hardware: PowerPC Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-22 15:16 UTC by Luigi Baldoni
Modified: 2016-10-23 00:53 UTC (History)
1 user (show)

See Also:


Attachments
ppc64 build log snippet (852 bytes, text/plain)
2016-10-22 15:17 UTC, Luigi Baldoni
Details

Note You need to log in before you can comment on or make changes to this bug.
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