Comments (9)
Note: Version 1.2 of XcodeLegacy.sh works.
from xcodelegacy.
I'll try to download your box and test.
In the mean time, can you please give the output of:
type -a gcc
type -a gcc-4.2
ls -l /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec/gcc
from xcodelegacy.
Sorry for the late reply... I just try again with c5ca493, the error message is the same.
$ type -a gcc
gcc is /usr/bin/gcc
$ type -a gcc-4.2
gcc-4.2 is /usr/bin/gcc-4.2
$ ls -l /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec/gcc
total 0
drwxr-xr-x 4 vagrant wheel 136 Nov 10 03:57 i686-apple-darwin10
drwxr-xr-x 4 vagrant wheel 136 Nov 10 03:57 powerpc-apple-darwin10
from xcodelegacy.
I get the same here.
I don't know what that "gcc" in /usr/bin does. Anybody has an idea?
My guess is that it looks for an executable file called "gcc" in /Applications/Xcode.app/Contents/Developer, and this file happens to be a directory (if forgets to check that).
If it doesn't find it, it picks clang instead.
I found that this fixes that ugly behavior:
ln -s clang /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gcc
gcc
rm /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gcc
Then, strangely gcc is fixed...
do you thing I should do that in the script?
from xcodelegacy.
I’m experiencing this issue. It seems that I must leave the symlink in place…
from xcodelegacy.
@mietek did you execute gcc (or /usr/bin/gcc) before removing the link?
from xcodelegacy.
Yes, that’s what I mean. It didn’t help.
from xcodelegacy.
You're right. I'll leave the link there, then, which replicates Xcode's default behavior (i.e. gcc launches clang)
from xcodelegacy.
fixed in 2b8d399
from xcodelegacy.
Related Issues (20)
- Symlink to C compiler (cc) HOT 8
- After installing packages with latest XcodeLegacy, GNU Ada fails to build projects using gprbuild HOT 12
- 10.11 SDK on Xcode 8.3.3: "SDK not found" HOT 5
- Extract 10.12 SDK from Xcode 8.3.3 (to do before release of macOS 10.13/Xcode 9) HOT 13
- Latest 2.1 missing uninstall for 10.12 SDK
- Feedback HOT 2
- Bad Info.plist created for Xcode 10.0 HOT 8
- Compiler + Xcode 10.1 Error HOT 4
- Option to provide the app path HOT 2
- libLTO detect under Xcode 9
- "No value to remove at key path MinimumSDKVersion"
- "ld: warning: bad symbol action" HOT 2
- Unable to extract 10.12SDK from Xcode8.3.3.xip HOT 3
- Can't compile after running xcode legacy (XCode 10 or 11) HOT 1
- Instructions no longer work on macOS 11.1: "mkdir: /Developer: Read-only file system" HOT 4
- Is it possible to add a Xcode 3.2 from 10.6 PPC? HOT 1
- PPC architecture and old SDKs are unavailable in Xcode 12.4 GUI HOT 2
- as and ld Intel-only in ppc and ppc64 libexec? HOT 2
- setting `MACOSX_DEPLOYMENT_TARGET` does it require the sdk?
- Found XCode >= 4.3 ... Error could not find Xcode >= 4.3 in /Applications, cannot install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcodelegacy.