Code Monkey home page Code Monkey logo

Comments (6)

devernay avatar devernay commented on July 20, 2024

The original ld should be moved to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld-original and replaced by a shell script (see lines 180 and following in the script).
The script probably asked for an administrator password at some point, and you entered a wrong one or just typed return.
I'll add a message in the script explaining this.

fred

Le 18 mars 2014 à 18:02, Olivier Lance [email protected] a écrit :

Hi,
first of all, thanks a lot for this script!

I'm trying to use GCC 4.0 to target Mac OS 10.4 and have the following error:

ld: error: can't exec '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec/ld' (errno=Permission denied)
collect2: ld returned 71 exit status
When running your script, there was a related error:

./XcodeLegacy.sh: line 180: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld: Permission denied
chmod: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld: No such file or directory
installed Xcode3ld.tar.gz
In the end, the directory /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld does exist, but only contains a ppc and a ppc64 directory. I guess there should also be a i386 directory there?


Reply to this email directly or view it on GitHub.

from xcodelegacy.

olance avatar olance commented on July 20, 2024

The script probably asked for an administrator password at some point, and you entered a wrong one or just typed return

Nothing of the sort, it just runs and outputs these errors. The admin password is asked later on.

from xcodelegacy.

devernay avatar devernay commented on July 20, 2024

strange - look at all the sudos in the script.
alternatively, could you try to run the install phase with sudo:
sudo ./XCodeLegacy.sh install

Le 19 mars 2014 à 10:54, Olivier Lance [email protected] a écrit :

The script probably asked for an administrator password at some point, and you entered a wrong one or just typed return

Nothing of the sort, it just runs and outputs these errors. The admin password is asked later on.


Reply to this email directly or view it on GitHub.

from xcodelegacy.

olance avatar olance commented on July 20, 2024

I'm looking into it... I could use the heredoc + cat in a new file so that syntax should definitely work... but your own script fails to create the ld replacement script, so the chmod fails because the file doesn't exist anymore.

so the error probably doesn't come from the use of sudo...

from xcodelegacy.

devernay avatar devernay commented on July 20, 2024

yes, I know where it comes from, it's the script creation phase. "sudo cat > foo" just doesn't work if the shell is not running with administrative rights

I just modified the script (2eda5e3 ) so that it checks that it's running under sudo for the install and uninstall phases

Le 19 mars 2014 à 11:08, Olivier Lance [email protected] a écrit :

I'm looking into it... I could use the heredoc + cat in a new file so that syntax should definitely work... but your own script fails to create the ld replacement script, so the chmod fails because the file doesn't exist anymore.

so the error probably doesn't come from the use of sudo...


Reply to this email directly or view it on GitHub.

from xcodelegacy.

olance avatar olance commented on July 20, 2024

Oh okay, I hadn't understood that, thought the script would always work given all the sudos!

Now it's alright, thanks! :)

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.