The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

With the removal of the GCC toolset from XCode 5, how are we supposed to build the iOS ultralite library as per the instructions? I added the command line tools to XCode 5, but Apple completely discontinued GCC with XCode.

asked 18 Nov '13, 13:44

kennygoers's gravatar image

accept rate: 0%

After installing 4.6.3 instead and the command line tools, I get the following errors, looks like it can't find header files. Any thoughts?

News-MacBook-Air:iphone New$ ./ The following iPhoneOS SDK versions were found in /Applications/ 1) 6.1 Please enter the number of the desired SDK version [1]:1 Building with SDK version 6.1... /Applications/SQLAnywhere12/ultralite/iphone/arm /Applications/SQLAnywhere12/ultralite/iphone /Applications/ -c -x c++ -Wno-invalid-offsetof -fno-exceptions -fno-rtti -fcheck-new -arch armv6 -mthumb -miphoneos-version-min=3.0 -pipe -Os -fomit-frame-pointer -Wno-missing-field-initializers -fmessage-length=0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -o 4bbc8c8db1.o 4bbc8c8db1.c /Applications/ -c -x c++ -Wno-invalid-offsetof -fno-exceptions -fno-rtti -fcheck-new -arch armv6 -mthumb -miphoneos-version-min=3.0 -pipe -Os -fomit-frame-pointer -Wno-missing-field-initializers -fmessage-length=0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -o 72cf34bcc2.o 72cf34bcc2.c In file included from 24c8fe3eee.h:349, from ae6be1f105.h:8, from be5af043d7.h:8, from 72cf34bcc2.c:19: 21df866d9e.h:10:20: error: stdlib.h: No such file or directory In file included from 24c8fe3eee.h:349, from ae6be1f105.h:8, from be5af043d7.h:8, from 4bbc8c8db1.c:19: 21df866d9e.h:10:20: error: stdlib.h: No such file or directory In file included from db57b1d9cd.h:10, from 28eeeb4172.h:8, from ae6be1f105.h:9, from be5af043d7.h:8, from 72cf34bcc2.c:19:


(18 Nov '13, 15:13) kennygoers
Replies hidden

Which version/build of SQL Anywhere are you using? This does not look current (because the script prompts for which SDK to useā€¦), and this may be a problem that's already fixed. Can you update to the latest EBF/SP?

(18 Nov '13, 15:25) Tim McClements

According to the About box

Is this not the current version? This is what the procurement people gave me.

Thanks for the help.

(18 Nov '13, 15:48) kennygoers
Comment Text Removed

That is the original 12.0.1 release. There have been several updates since. The current is

(19 Nov '13, 10:41) Tim McClements
(19 Nov '13, 16:21) Jeff Albion

There is a fix in progress for this. (As well as adding 64-bit support.) Clang will be used to compile the library.

As a workaround in the meantime, you can build the library against Xcode 4 and use it with Xcode 5.

permanent link

answered 18 Nov '13, 13:53

Tim%20McClements's gravatar image

Tim McClements
accept rate: 34%

Could you provide any updates about migrating to Clang compiler as well as 64-bit support?

(23 Jan '15, 10:29) Stephan Kostine
Replies hidden

According to that older CR note, Xcode 5 support has been available for some time (including 64-bit support for 12.0.1 though the note does tell otherwise). AFAIK, supporting XCode 5 requires Clang support.

UltraLite now supports Xcode 5 and iOS 7. Version 16 includes 64-bit libraries for the new A7 (arm64) chip along with the 64-bit simulator.

(23 Jan '15, 11:00) Volker Barth

Indeed, the latest SPs for v12 and v16 support Xcode 6/iOS 8 and all chips, including 64-bit.

(23 Jan '15, 11:22) Tim McClements
Comment Text Removed

The build script ( invokes make to build, and the makefile invokes the compiler as: xcrun -sdk iphoneos gcc

That is, we don't try to find the compiler path ourselves...

You can see this in build.log, which is written beside ( just redirects the make output here.) (It's true we invoke 'gcc', but this is really just clang now.)

(23 Jan '15, 13:24) Tim McClements
Comment Text Removed
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 18 Nov '13, 13:44

question was seen: 2,100 times

last updated: 23 Jan '15, 13:37