Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC 4.0, GCC 4.2 and LLVM GCC 4.2 compilers not found #17

Closed
ling32945 opened this issue Oct 8, 2015 · 7 comments
Closed

GCC 4.0, GCC 4.2 and LLVM GCC 4.2 compilers not found #17

ling32945 opened this issue Oct 8, 2015 · 7 comments

Comments

@ling32945
Copy link

/Applications/Xcode.app/Contents/Developer/usr/bin/c++-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/cpp-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/g++-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/gcov-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-cpp-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/c++-4.2
/Applications/Xcode.app/Contents/Developer/usr/bin/cpp-4.2
/Applications/Xcode.app/Contents/Developer/usr/bin/g++-4.2
/Applications/Xcode.app/Contents/Developer/usr/bin/gcov-4.2
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-cpp-4.2
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++-4.2
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2

These soft link are linked to /usr/bin but the compilers are put to folder /usr/local/bin, so caused the issue "No such file or directory"

Please check line 320 in the script

@ling32945
Copy link
Author

Also, the files i686-apple-darwin10-cpp-4.2.1, i686-apple-darwin10-g++-4.0.1, i686-apple-darwin10-llvm-g++-4.2, i686-apple-darwin10-llvm-gcc-4.2, etc need to create soft link to /usr/local/bin

@devernay
Copy link
Owner

devernay commented Oct 8, 2015

can you make a pull request or submit a patch? I have no time to work on it now

@ling32945
Copy link
Author

OK, I'll work on it.

@inspector-g
Copy link
Contributor

I had this same issue. The underlying cause is that on a fresh installation of El Capitan there is no /usr/local/bin directory, so the soft links cannot be created. Following is a patch that fixes the issue:

*** ./XcodeLegacy/XcodeLegacy.sh    2015-10-07 17:20:31.000000000 -0700
--- ./XcodeLegacyElCapFix/XcodeLegacy.sh    2015-10-12 10:15:30.000000000 -0700
***************
*** 63,68 ****
--- 63,74 ----
      # install in Xcode instead, and put links in /usr/local
      SANDBOX=1
      GCCLINKDIR=/usr/local
+ 
+     # On fresh installations of OSX 10.11, the /usr/local/bin directory doesn't exist.
+     # Create it if necessary and set typical permissions.
+     if [ ! -d "/usr/local/bin" ]; then
+       mkdir -m 755 "/usr/local/bin"
+     fi
  fi

  GCCFILES="usr/share/man/man7/fsf-funding.7 usr/share/man/man7/gfdl.7 usr/share/man/man7/gpl.7 usr/share/man/man1/*-4.0.1 usr/share/man/man1/*-4.0.1.1 usr/libexec/gcc/*-apple-darwin10/4.0.1 usr/lib/gcc/*-apple-darwin10/4.0.1 usr/include/gcc/darwin/4.0 usr/bin/*-4.0 usr/bin/*-4.0.1 usr/share/man/man1/*-4.2.1 usr/libexec/gcc/*-apple-darwin10/4.2.1 usr/lib/gcc/*-apple-darwin10/4.2.1 usr/include/gcc/darwin/4.2 usr/bin/*-4.2 usr/bin/*-4.2.1 usr/llvm-gcc-4.2 usr/share/man/man1/llvm-g*.1.gz usr/libexec/gcc/*-apple-darwin10/4.2.1 usr/lib/gcc/*-apple-darwin10/4.2.1 usr/include/gcc/darwin/4.2 usr/bin/*-4.2 usr/bin/*-4.2.1"

@ling32945
Copy link
Author

How do I commit it? I do have the access privileges.

@devernay
Copy link
Owner

as usual with github: fork, commit in your fork, branch, then do a pull request from your branch
https://help.github.com/articles/using-pull-requests/

or send me the file by email (frederic dot devernay at inria dot fr), but then the commit won't have your name on it!

@devernay
Copy link
Owner

fixed by #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants