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

Julia build fails on OS X with latest master #5

Closed
protogeezer opened this issue Feb 27, 2016 · 11 comments
Closed

Julia build fails on OS X with latest master #5

protogeezer opened this issue Feb 27, 2016 · 11 comments

Comments

@protogeezer
Copy link

From @protogeezer on February 26, 2016 16:55

build with fresh git clone fails while building libosxunwind...

et-imac-retina:julia sjbespa$ ./clone-julia julia-0.5-master
Cloning into 'julia-0.5-master'...
remote: Counting objects: 169353, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 169353 (delta 4), reused 0 (delta 0), pack-reused 169341
Receiving objects: 100% (169353/169353), 97.26 MiB | 8.92 MiB/s, done.
Resolving deltas: 100% (129141/129141), done.
Checking connectivity... done.

et-imac-retina:julia sjbespa$ cd julia-0.5-master

et-imac-retina:julia-0.5-master sjbespa$ make -j4
Creating usr/etc/julia/juliarc.jl
Copying in usr/share/doc/julia/examples
Copying in usr/share/man/man1/julia.1
...
patching file TESTS/bug_1315_double.c
patching file TESTS/bug_1315_single.c
make[2]: Circular src/libuwind.cxx <- src/libuwind.cxx.o dependency dropped.
clang: error: no such file or directory: 'libosxunwind.a'
make[2]: *** [libosxunwind.dylib] Error 1
make[2]: *** Waiting for unfinished jobs....

Copied from original issue: JuliaLang/julia#15255

@protogeezer
Copy link
Author

From @vtjnash on February 26, 2016 18:17

iirc, this indicates an issue with your path, such as having a space in it

@protogeezer
Copy link
Author

The path is:
et-imac-retina:julia-0.5-master sjbespa$ pwd
/Users/sjbespa/work/julia/julia-0.5-master
No spaces; is there something else going on with the path?

BTW, I built from the master again, and still got the error about the circular dependency, but it didn't crash:

patching file TESTS/bug_1315_double.c
patching file TESTS/bug_1315_single.c
make[2]: Circular src/libuwind.cxx <- src/libuwind.cxx.o dependency dropped.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libosxunwind.a(Unwind-sjlj.c.o) has no symbols
clang: warning: optimization flag '-finline-functions' is not supported

so, since it's crashed twice and made it through once, perhaps there is a problem with the -j4 switch?

@protogeezer
Copy link
Author

From @ViralBShah on February 27, 2016 3:24

Yes, the -j 4 switch is problematic. You can use it, but there will be a dependency problem at some stage, which can be cleaned up with a simple make (without -j).

@protogeezer
Copy link
Author

From @ViralBShah on February 27, 2016 3:25

If make (without -j) works, this issue should be retitled.

@protogeezer
Copy link
Author

From @tkelman on February 27, 2016 3:46

And potentially moved to https://github.com/JuliaLang/libosxunwind, if that's the only place where parallel make can be repeatably demonstrated to cause problems right now.

@ViralBShah
Copy link
Member

@yuyichao Given that we have our own libunwind now, does it make sense to merge the osx stuff in there as well?

@yuyichao
Copy link

It's still unclear what the plan is but I think it makes sense to merge the two and try to upstream the patches, whoever the upstream end up being....

@tkelman
Copy link

tkelman commented Feb 28, 2016

and as I understand it, apple's libunwind (where this code came from originally) is now a part of llvm proper

@protogeezer
Copy link
Author

What's going on with this bug? A slightly different question would be: what are the current plans for switching to cmake - which understands complex dependencies and parallel builds...

@tkelman
Copy link

tkelman commented Apr 19, 2016

JuliaLang/julia#11754

@vtjnash
Copy link
Member

vtjnash commented Jul 20, 2020

fixed by #14

@vtjnash vtjnash closed this as completed Jul 20, 2020
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

5 participants