Opened 11 years ago
Last modified 11 years ago
#42430 new defect
TexShop @2.47 Build error: Unsupported compiler 'gcc' selected for architecture 'i386'
Reported by: | quantum7@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: | texshop |
Description
I get the following error from xcodebuild on Maverick:
:info:build === BUILD TARGET TeX OF PROJECT TeX WITH CONFIGURATION Release === :info:build :info:build Check dependencies :info:build Unsupported compiler 'gcc' selected for architecture 'i386' :info:build Unable to determine concrete GCC compiler for file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_TeXShop/TeXShop/work/texshopsource-2.47/3rdparty/TeX-mdimporter/main.c of type sourcecode.c.c. :info:build Unable to determine concrete GCC compiler for file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_TeXShop/TeXShop/work/texshopsource-2.47/3rdparty/TeX-mdimporter/GetMetadataForFile.c of type sourcecode.c.objc. :info:build :info:build ** BUILD FAILED **
I have gcc 4.7 and 4.8 installed via macports, as well as Apple's default clang 5.0:
$ /usr/bin/gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix $ /opt/local/bin/gcc --version gcc (MacPorts gcc48 4.8.2_0) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Opening the project directly in XCode, the build options also displays 'Unsupported compiler (gcc)' for the release target.
System Information:
- OS X 10.9.1
- MacPorts 2.2.1
- Xcode 5.0.2 Build version 5A3005
Attachments (1)
Change History (4)
Changed 11 years ago by quantum7@…
comment:1 Changed 11 years ago by quantum7@…
Looking into this more, it seems to be a problem with the base SDK. The project includes MacOSX10.4u.sdk, which isn't installed on my Mavericks system. I was able to work around this problem by
- chown the project folder to make it writable
- Open the project in XCode
- Edit the project settings to use the 10.8 SDK (and making 10.8 the target version)
- Switch compilers from gcc to the default clang compiler
- Fix some build errors in DocumentClasses/TSDocument-SyncTeX.m (remove return values from a void method)
Note that it won't build for x86_64 due to the dependency on deprecated NSQuickDrawView.
I also had to manually specify /opt/local/bin as my latex path after opening TeXShop. I feel like the installer used to set that up automatically?
comment:2 Changed 11 years ago by quantum7@…
Rather than fixing this, I recommend requiring 10.4 <= OSX <= 10.7 for TexShop, and otherwise print a message recommending users install the TeXShop3 port. Or maybe there are now few enough users still <10.7 that the TeXShop port could be upgraded to the v3 series and TeXShop3 deprecated? I don't follow TeXShop development closely, but their website makes it seem like the v2 series is just maintained for legacy systems.
comment:3 Changed 11 years ago by mf2k (Frank Schima)
Keywords: | gcc xcode removed |
---|
log file