Comments (6)
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.
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.
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.
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.
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.
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)
- 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.