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

Bootstrap fails on v0.7 master with failure to load stdlib packages #27662

Closed
jmert opened this issue Jun 19, 2018 · 4 comments
Closed

Bootstrap fails on v0.7 master with failure to load stdlib packages #27662

jmert opened this issue Jun 19, 2018 · 4 comments
Labels
building Build system, or building Julia or its dependencies

Comments

@jmert
Copy link
Contributor

jmert commented Jun 19, 2018

As of 0.7.0-alpha.198 (commit b331c70), I cannot build the system image; I suspect this has to do with the fact that I'm doing an out-of-tree build (specifically at julia/build where julia is the root of the git checkout) combined with the changes from PR #27633 (I'm guessing this line) — i.e.

$ cd $JULIA_GIT_DIR
$ cd usr/bin
$ ls ../../stdlib
Base64  Dates           Distributed   Future            Libdl    LinearAlgebra  Markdown  OldPkg  Printf   Random  Serialization  SharedArrays  SparseArrays  Test     UUIDs
CRC32c  DelimitedFiles  FileWatching  InteractiveUtils  LibGit2  Logging        Mmap      Pkg     Profile  REPL    SHA            Sockets       SuiteSparse   Unicode
$ cd -
$ cd build/usr/bin
$ ls ../../stdlib
ls: cannot access '../../stdlib': No such file or directory

(Sys.BINDIR on my other computer where I haven't yet tried recompiling does show that it points to the build/usr/bin path.)

@JeffBezanson JeffBezanson added the building Build system, or building Julia or its dependencies label Jun 19, 2018
@StefanKarpinski
Copy link
Member

Ugh. It's so annoying to give a better value there but sure.

@StefanKarpinski
Copy link
Member

Does this patch fix the issue?

diff --git a/base/sysinfo.jl b/base/sysinfo.jl
index 593802925f..ab19d99998 100644
--- a/base/sysinfo.jl
+++ b/base/sysinfo.jl
@@ -43,7 +43,7 @@ A string containing the full path to the directory containing the `julia` execut

 A string containing the full path to the directory containing the `stdlib` packages.
 """
-STDLIB = "$BINDIR/../../stdlib" # for bootstrap
+STDLIB = "$BINDIR/../share/julia/stdlib/v$(VERSION.major).$(VERSION.minor)" # for bootstrap

 # helper to avoid triggering precompile warnings

@jmert
Copy link
Contributor Author

jmert commented Jun 19, 2018

It does.

@StefanKarpinski
Copy link
Member

Ok, I'll make a PR to change it. Thanks for reporting the failure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

No branches or pull requests

3 participants