Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

SIP and Mountain Lion - not building (Xcode 4.5 DP 2) #13937

Closed
ns-1m opened this issue Aug 4, 2012 · 8 comments
Closed

SIP and Mountain Lion - not building (Xcode 4.5 DP 2) #13937

ns-1m opened this issue Aug 4, 2012 · 8 comments

Comments

@ns-1m
Copy link

ns-1m commented Aug 4, 2012

Nolis-MacBook-Pro:bin nsicad$ brew install sip
==> Downloading http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz

################################################################## 100.0%

==> Patching
patching file build.py
Hunk #1 succeeded at 185 (offset 6 lines).
Hunk #2 succeeded at 198 (offset 6 lines).
patching file siputils.py
Hunk #1 succeeded at 1485 (offset 51 lines).
==> python build.py prepare
==> python configure.py --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/sit
==> make install
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o main.o main.c
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o transform.o transform.c
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o gencode.o gencode.c
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o extracts.o extracts.c
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o export.o export.c
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o heap.o heap.c
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o parser.o parser.c
cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o lexer.o lexer.c
c++ -L/usr/local/lib -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o
make[1]: c++: No such file or directory
make[1]: *** [sip] Error 1
make: *** [install] Error 2
==> Build Environment
CPU: 8-core 64-bit dunno
OS X: 10.8-x86_64
Xcode: 4.5 => /Applications/Xcode45-DP2.app/Contents/Developer
X11: 2.7.2 @ /opt/X11
CC: /usr/bin/clang
CXX: /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ => /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.8
MAKEFLAGS: -j8
Error: Failed executing: make install (sip.rb:41)
These existing issues may help you:
#12388
#12491
Otherwise, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist

@2bits
Copy link
Contributor

2bits commented Aug 5, 2012

which cc c++ will show that you are missing your c++ file. Reinstall the Command Line Tools I guess. Is there any reason to use 4.5 DP2 rather than 4.4 these days?

@ns-1m
Copy link
Author

ns-1m commented Aug 5, 2012

my cc++ is located in /usr/bin.

However, I click the file, I got this:

"The operation can’t be completed because the original item for “c++”
can’t be found."

This is after I reinstalled Command Line Tools.

I just got 4.5 DP2 preview, so I use it.

Is c++ symbolic link to what file?

Can I symbolic link c++ to g++?

Thanks.

On 8/5/12, 2bits
[email protected]
wrote:

which cc c++ will show that you are missing your c++ file. Reinstall the
Command Line Tools I guess. Is there any reason to use 4.5 DP2 rather than
4.4 these days?


Reply to this email directly or view it on GitHub:
#13937 (comment)

@ns-1m
Copy link
Author

ns-1m commented Aug 5, 2012

I fixed this error in Mountain Lion.

deleted c++ in /usr/bin

And did a symbolic link.

sudo ln /usr/bin/g++ /usr/bin/c++

On 8/5/12, Noli Sicad [email protected] wrote:

my cc++ is located in /usr/bin.

However, I click the file, I got this:

"The operation can’t be completed because the original item for “c++”
can’t be found."

This is after I reinstalled Command Line Tools.

I just got 4.5 DP2 preview, so I use it.

Is c++ symbolic link to what file?

Can I symbolic link c++ to g++?

Thanks.

On 8/5/12, 2bits
[email protected]
wrote:

which cc c++ will show that you are missing your c++ file. Reinstall
the
Command Line Tools I guess. Is there any reason to use 4.5 DP2 rather
than
4.4 these days?


Reply to this email directly or view it on GitHub:
#13937 (comment)

@Sharpie
Copy link
Contributor

Sharpie commented Aug 5, 2012

c++ should be a link to clang++ for all versions of XCode newer than 4.2.

@Sharpie Sharpie closed this as completed Aug 5, 2012
@ns-1m
Copy link
Author

ns-1m commented Aug 5, 2012

It seems that there is no "clang++' but 'clang' in my /usr/bin/

Where is it located?

Should I link 'c++' into 'clang' instead of 'g++'?

On 8/5/12, Charlie Sharpsteen
[email protected]
wrote:

c++ should be a link to clang++ for all versions of XCode newer than
4.2.


Reply to this email directly or view it on GitHub:
#13937 (comment)

@2bits
Copy link
Contributor

2bits commented Aug 5, 2012

$ ls -l /usr/bin/c++
lrwxr-xr-x  1 root  wheel  7 Jul 31 12:15 /usr/bin/c++ -> clang++

$ ls -l /usr/bin/clang++
lrwxr-xr-x  1 root  wheel  5 Jul 31 12:15 /usr/bin/clang++ -> clang

$ ls -l /usr/bin/clang
-rwxr-xr-x  1 root  wheel  21585568 Jul 31 12:15 /usr/bin/clang

@ns-1m
Copy link
Author

ns-1m commented Aug 5, 2012

This is reason why my c++ fails because I don't have clang++ which
also ls to clang.

Thanks.

On 8/5/12, 2bits
[email protected]
wrote:

$ ls -l /usr/bin/c++
lrwxr-xr-x  1 root  wheel  7 Jul 31 12:15 /usr/bin/c++ -> clang++

$ ls -l /usr/bin/clang++
lrwxr-xr-x  1 root  wheel  5 Jul 31 12:15 /usr/bin/clang++ -> clang

$ ls -l /usr/bin/clang
-rwxr-xr-x  1 root  wheel  21585568 Jul 31 12:15 /usr/bin/clang

Reply to this email directly or view it on GitHub:
#13937 (comment)

@2bits
Copy link
Contributor

2bits commented Aug 5, 2012

Yes. It's strange though. That link should have been created during CLT install.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants