Code Monkey home page Code Monkey logo

Comments (9)

dfroger avatar dfroger commented on July 20, 2024

Note: Version 1.2 of XcodeLegacy.sh works.

from xcodelegacy.

devernay avatar devernay commented on July 20, 2024

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.

dfroger avatar dfroger commented on July 20, 2024

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.

devernay avatar devernay commented on July 20, 2024

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.

mietek avatar mietek commented on July 20, 2024

I’m experiencing this issue. It seems that I must leave the symlink in place…

from xcodelegacy.

devernay avatar devernay commented on July 20, 2024

@mietek did you execute gcc (or /usr/bin/gcc) before removing the link?

from xcodelegacy.

mietek avatar mietek commented on July 20, 2024

Yes, that’s what I mean. It didn’t help.

from xcodelegacy.

devernay avatar devernay commented on July 20, 2024

You're right. I'll leave the link there, then, which replicates Xcode's default behavior (i.e. gcc launches clang)

from xcodelegacy.

devernay avatar devernay commented on July 20, 2024

fixed in 2b8d399

from xcodelegacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.