Xcode 5: llvm-gcc no longer present or supported

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
MilSF1
Posts: 11
Joined: Fri Oct 17, 2008 7:13 pm

Xcode 5: llvm-gcc no longer present or supported

Post by MilSF1 »

It looks like Xcode 5 has dropped support for using llvm-gcc as a compiler. It no longer installs llvm-gcc-4.2 or llvm-g++-4.2 in /Applications/Xcode.app/Contents/Developer/usr/bin nor does it accept com.apple.compilers.llvmgcc42 as a compiler choice. I tried to soft link the executables from /usr/bin but it still didn't work:

Code: Select all

sudo ln -s /usr/bin/llvm-g++-4.2 /Applications/Xcode.app/Contents/Developer/usr/bin
sudo ln -s /usr/bin/llvm-gcc-4.2 /Applications/Xcode.app/Contents/Developer/usr/bin 
I get the following error at the end of things after I did the links:

Code: Select all

 : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar rsu libhb/libhb.a libhb/audio_remap.o libhb/audio_resample.o libhb/batch.o libhb/bd.o libhb/common.o libhb/cropscale.o libhb/deblock.o libhb/deca52.o libhb/decavcodec.o libhb/deccc608sub.o libhb/declpcm.o libhb/decmetadata.o libhb/decmpeg2.o libhb/decomb.o libhb/decpgssub.o libhb/decsrtsub.o libhb/decssasub.o libhb/dectx3gsub.o libhb/decutf8sub.o libhb/decvobsub.o libhb/deinterlace.o libhb/demuxmpeg.o libhb/denoise.o libhb/detelecine.o libhb/dvd.o libhb/dvdnav.o libhb/dxva2api.o libhb/eedi2.o libhb/encavcodec.o libhb/encavcodecaudio.o libhb/encfaac.o libhb/enclame.o libhb/enctheora.o libhb/encvobsub.o libhb/encvorbis.o libhb/encx264.o libhb/fifo.o libhb/hb.o libhb/hb_dict.o libhb/lang.o libhb/muxavformat.o libhb/muxcommon.o libhb/muxmkv.o libhb/muxmp4.o libhb/oclnv12toyuv.o libhb/oclscale.o libhb/openclwrapper.o libhb/ports.o libhb/reader.o libhb/rendersub.o libhb/rotate.o libhb/scale.o libhb/scale_kernel.o libhb/scan.o libhb/stream.o libhb/sync.o libhb/taskset.o libhb/update.o libhb/vadxva2.o libhb/vfr.o libhb/work.o libhb/platform/macosx/encca_aac.o
  : ar: creating archive libhb/libhb.a
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(dxva2api.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(encfaac.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(oclnv12toyuv.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(oclscale.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(openclwrapper.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(scale.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(scale_kernel.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhb/libhb.a(vadxva2.o) has no symbols
  : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/m4 -Iproject /Applications/Utilities/Video/handbrake-svn/macosx/Info.plist.m4 > macosx/Info.plist
  : Showing first 200 notices only
  : Command /bin/bash emitted errors but did not return a nonzero exit code to indicate failure
  : 
  : === BUILD TARGET HandBrakeCLI OF PROJECT HandBrake WITH CONFIGURATION release ===
  : 
  : Check dependencies
  : Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'x86_64'
  : Unable to determine concrete GCC compiler for file /Applications/Utilities/Video/handbrake-svn/test/fakexcode.cpp of type sourcecode.cpp.cpp.
  : Unable to determine concrete GCC compiler for file /Applications/Utilities/Video/handbrake-svn/test/parsecsv.c of type sourcecode.c.c.
  : Unable to determine concrete GCC compiler for file /Applications/Utilities/Video/handbrake-svn/test/test.c of type sourcecode.c.c.
  : 
  : ** BUILD FAILED **
  : 
  : 
  : The following build commands failed:
  : 	Check dependencies
  : (1 failure)
  : make: *** [macosx.build] Error 65
I can't just do a --gcc=/usr/bin/clang in the configure because the xcodebuild adds it's own --gcc after it during the make. I can post what the full report including the configure command I was using if desired (with or without the libs linked into the Xcode directory).

--MDG
Deleted User 11865

Re: Xcode 5: llvm-gcc no longer present or supported

Post by Deleted User 11865 »

We're working on it.
kand
Posts: 16
Joined: Tue Nov 27, 2007 11:40 am

Re: Xcode 5: llvm-gcc no longer present or supported

Post by kand »

Hi,
Is there already a fix or a workaround for this problem? I still cannot link with XCode 5.

regards
Deleted User 11865

Re: Xcode 5: llvm-gcc no longer present or supported

Post by Deleted User 11865 »

The release version will not build, you need to get the current code from SVN.
Post Reply