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 2605

Summary: Xcode 5 does not include llvm-gcc-4.2, which iosbuild.sh requires
Product: SDL Reporter: Trygve Vea <trygve.vea>
Component: buildAssignee: Alex Szpakowski <amaranth72>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amaranth72, icculus
Version: 2.0.3   
Hardware: iPhone/iPod touch   
OS: Other   
See Also: https://bugzilla.libsdl.org/show_bug.cgi?id=1445

Description Trygve Vea 2014-06-25 15:33:21 UTC
This may be a duplicate of 1445, which is marked as fixed.  Creating a new bug;

Trying to run iosbuild.sh from build-scripts gives the following output:

build-scripts tv$ ./iosbuild.sh
Building with iOS SDK v7.1 for iOS >= 3.0
checking build system type... i386-apple-darwin13.2.0
checking host system type... armv6-apple-darwin
checking how to print strings... printf
checking for armv6-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/Users/tv/hg/SDL-foo/build/armv6':
configure: error: C compiler cannot create executables
See `config.log' for more details


After performing some research on why this is, I've learnt that llvm-gcc-4.2 is not included in Xcode 5.  iosbuild.sh currently require llvm-gcc-4.2 to be available, and thus will not work with Xcode 5.
Comment 1 Ryan C. Gordon 2015-02-19 06:32:14 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry
if you got a lot of email from this. This is to help me sort through some bugs
in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4,
though!
Comment 2 Ryan C. Gordon 2015-04-07 04:57:57 UTC
(sorry if you get a lot of copies of this email, I'm marking several bugs at once)

Marking bugs for the (mostly) final 2.0.4 TODO list. This means we're hoping to resolve this bug before 2.0.4 ships if possible. In a perfect world, the open bug count with the target-2.0.4 keyword is zero when we ship.

(Note that closing a bug report as WONTFIX, INVALID or WORKSFORME might still happen.)

--ryan.
Comment 3 Alex Szpakowski 2015-05-27 01:13:12 UTC
iosbuild.sh does a lot of extremely outdated things. Would it make sense to scrap its contents and replace it with a small script that invokes xcodebuild, instead?
Comment 4 Sam Lantinga 2015-05-28 15:35:34 UTC
Yup, that sounds like a good idea. I've reassigned this to you for implementation, thanks!
Comment 5 Ryan C. Gordon 2015-05-28 19:12:24 UTC
(In reply to Sam Lantinga from comment #4)
> Yup, that sounds like a good idea. I've reassigned this to you for
> implementation, thanks!

Ah, the accidental volunteer, I love it.  :)

--ryan.