Skip to content

Failed to build on Mac OS 10.7.5 #9974

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

Closed
cadencemarseille opened this issue Oct 20, 2013 · 6 comments
Closed

Failed to build on Mac OS 10.7.5 #9974

cadencemarseille opened this issue Oct 20, 2013 · 6 comments

Comments

@cadencemarseille
Copy link
Contributor

I am trying to build Rust @424c171 on Mac OS 10.7.5, but I am encountering the error:

make[1]: Nothing to be done for `all'.
link: x86_64-apple-darwin/rt/stage0/librustrt.dylib
i686-apple-darwin11-llvm-g++-4.2: x86_64-apple-darwin/rt/libuv/libuv.a: No such file or directory
make: *** [x86_64-apple-darwin/rt/stage0/librustrt.dylib] Error 1

./configure reports the submodule status as:

configure: git: submodule status
 f407f09c94e00d2d570e8e42114e3f6848b2deb2 src/gyp (f407f09)
 d88cf5652a1afb23939da0bae86c70ec521b9921 src/libuv (v0.11.7-60-gd88cf56)
 c9ffab392a39eb85f2f15ffc8d41e8c4f4397b8e src/llvm (remotes/origin/rust-llvm-2013-09-15)

When I cd into x86_64-apple-darwin/rt/libuv/ and make, I see:

make: Nothing to be done for `all'.

There was another issue reporting the same error message (#9625), but I am not passing a -j option to make. I am simply running:

./configure --prefix=/Users/cadencemarseille/.local
make

Looking in x86_64-apple-darwin/rt/libuv/Makefile, it looks like there are supposed to be Debug and .deps folders within x86_64-apple-darwin/rt/libuv/, but these have not been created. Creating them myself (via mkdir) does not fix the issue.

@alexcrichton
Copy link
Member

When we've seen this beforehand it's normally a problem with gyp generating libuv's makefile, which is in turn often associated with missing xcode (or only have the command line tools), could you take a look specifically around where the makefile is generated for libuv and see if you can find some gyp-specific errors?

@cadencemarseille
Copy link
Contributor Author

I do not see much regarding libuv in the configure output:

...
configure: git: submodule sync
Synchronizing submodule url for 'src/gyp'
Synchronizing submodule url for 'src/libuv'
Synchronizing submodule url for 'src/llvm'
configure: git: submodule update
configure: git: submodule foreach sync
Entering 'src/gyp'
Entering 'src/libuv'
Entering 'src/llvm'
configure: git: submodule foreach update
configure: git: submodule status
 f407f09c94e00d2d570e8e42114e3f6848b2deb2 src/gyp (f407f09)
 d88cf5652a1afb23939da0bae86c70ec521b9921 src/libuv (v0.11.7-60-gd88cf56)
 c9ffab392a39eb85f2f15ffc8d41e8c4f4397b8e src/llvm (remotes/origin/rust-llvm-2013-09-15)
configure: git: submodule clobber
Entering 'src/gyp'
Entering 'src/libuv'
Entering 'src/llvm'
Entering 'src/gyp'
Entering 'src/libuv'
Entering 'src/llvm'
configure: 
configure: looking at LLVM
...

@alexcrichton
Copy link
Member

Can you remove $target/rt/libuv/Makefile ? That's the file which we need to generate, and then when that file is re-generated an error often crops up (but gyp doesn't propagate the error for some reason). You should be able to get the output with:

rm $target/rt/libuv/Makefile
make `pwd`/$target/rt/libuv/Makefile

@cadencemarseille
Copy link
Contributor Author

Hi Alex. This got me past the error. Thank you for your help!

@SimonSapin
Copy link
Contributor

I had the same issue. It turns out I needed to run sudo xcode-select -switch /

@SimonSapin
Copy link
Contributor

Source for the above: http://stackoverflow.com/a/14332052/1162888

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