-fforce-addr causes clang error with Xcode 5.1
Brion Vibber <[email protected]> Wed, 25 Jun 2014 21:52:46 -0700
| Newsgroups | gmane.comp.multimedia.ogg.theora.devel |
|---|---|
| Message-ID | <CAFnWYTnUOF2rhopUh1wj6EY7iYpUCCqS+f-7_6Jm4NU-0XLbdA@mail.gmail.com> |
--001a11c268dad4052804fcb5f6c1 Content-Type: multipart/alternative; boundary=001a11c268dad4052304fcb5f6bf --001a11c268dad4052304fcb5f6bf Content-Type: text/plain; charset=UTF-8 Apple's clang in Xcode 5.1 (as for building with the iOS 7.1 SDK) throws an error about the (gcc-specific?) -fforce-addr option being unknown, which clang now thinks is evil and should abort compilation. It looks like this also hits OS X 10.9 builds, as I see there's a patch for theora in MacPorts for this issue: https://trac.macports.org/ticket/42934 Attached is a quick-fix patch to the theora configure.ac to remove that option conditionally when building for Darwin, which gets my builds working again with the iOS 7.1 SDK (OS X builds untested). Alternatively, if the option isn't needed it could simply be removed as in the MacPorts patch. -- brion vibber (brion @ pobox.com / bvibber @ wikimedia.org) --001a11c268dad4052304fcb5f6bf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Apple's clang in Xcode 5.1 (as for building with the i= OS 7.1 SDK) throws an error about the (gcc-specific?) -fforce-addr option b= eing unknown, which clang now thinks is evil and should abort compilation.<= div> <br></div><div><div>It looks like this also hits OS X 10.9 builds, as I see= there's a patch for theora in MacPorts for this issue:=C2=A0<a href=3D= "https://trac.macports.org/ticket/42934">https://trac.macports.org/ticket/4= 2934</a></div> </div><div><br></div><div><br></div><div>Attached is a quick-fix patch to t= he theora <a href=3D"http://configure.ac">configure.ac</a> to remove that o= ption conditionally when building for Darwin, which gets my builds working = again with the iOS 7.1 SDK (OS X builds untested).<br> </div><div><br></div><div>Alternatively, if the option isn't needed it = could simply be removed as in the MacPorts patch.</div><div><br></div><div>= -- brion vibber (brion @ <a href=3D"http://pobox.com">pobox.com</a> / bvibb= er @ <a href=3D"http://wikimedia.org">wikimedia.org</a>)</div> </div> --001a11c268dad4052304fcb5f6bf-- --001a11c268dad4052804fcb5f6c1 Content-Type: application/octet-stream; name="theora-xcode51-fix.patch" Content-Disposition: attachment; filename="theora-xcode51-fix.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hwvl6yi70 ZGlmZiAtLWdpdCBhL2NvbmZpZ3VyZS5hYyBiL2NvbmZpZ3VyZS5hYwppbmRleCBhNWJiNzIwLi4x MWQ0Y2EzIDEwMDY0NAotLS0gYS9jb25maWd1cmUuYWMKKysrIGIvY29uZmlndXJlLmFjCkBAIC0x ODUsNiArMTg1LDExIEBAIGlmIHRlc3QgLXogIiRHQ0MiOyB0aGVuCiBlbHNlCiAKICAgICAgICAg Y2FzZSAkaG9zdCBpbiAKKyAgICAgICAgKi1hcHBsZS1kYXJ3aW4qKQorICAgICAgICAgICAgICAg ICMgLWZmb3JjZS1hZGRyIGNhdXNlcyBlcnJvciB3aXRoIGNsYW5nIGluIFhjb2RlIDUuMQorICAg ICAgICAgICAgICAgIERFQlVHPSItZyAtV2FsbCAtV25vLXBhcmVudGhlc2VzIC1EREVCVUcgLURf X05PX01BVEhfSU5MSU5FUyIKKyAgICAgICAgICAgICAgICBDRkxBR1M9Ii1XYWxsIC1Xbm8tcGFy ZW50aGVzZXMgLU8zIC1mb21pdC1mcmFtZS1wb2ludGVyIC1maW5saW5lLWZ1bmN0aW9ucyAtZnVu cm9sbC1sb29wcyIKKyAgICAgICAgICAgICAgICBQUk9GSUxFPSItV2FsbCAtV25vLXBhcmVudGhl c2VzIC1wZyAtZyAtTzMgLWZuby1pbmxpbmUtZnVuY3Rpb25zIC1EREVCVUciOzsKICAgICAgICAg KikKICAgICAgICAgICAgICAgICBERUJVRz0iLWcgLVdhbGwgLVduby1wYXJlbnRoZXNlcyAtRERF QlVHIC1EX19OT19NQVRIX0lOTElORVMiCiAgICAgICAgICAgICAgICAgQ0ZMQUdTPSItV2FsbCAt V25vLXBhcmVudGhlc2VzIC1PMyAtZmZvcmNlLWFkZHIgLWZvbWl0LWZyYW1lLXBvaW50ZXIgLWZp bmxpbmUtZnVuY3Rpb25zIC1mdW5yb2xsLWxvb3BzIgo= --001a11c268dad4052804fcb5f6c1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ theora-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/theora-dev --001a11c268dad4052804fcb5f6c1--