{"action":"closed","issue":{"url":"https://api.github.com/repos/timholy/Revise.jl/issues/77","repository_url":"https://api.github.com/repos/timholy/Revise.jl","labels_url":"https://api.github.com/repos/timholy/Revise.jl/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/timholy/Revise.jl/issues/77/comments","events_url":"https://api.github.com/repos/timholy/Revise.jl/issues/77/events","html_url":"https://github.com/timholy/Revise.jl/issues/77","id":292105365,"node_id":"MDU6SXNzdWUyOTIxMDUzNjU=","number":77,"title":"Can't find `sysimg.jl` with out-of-tree builds of julia 0.6","user":{"login":"tkluck","id":2110529,"node_id":"MDQ6VXNlcjIxMTA1Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/2110529?v=4","gravatar_id":"","url":"https://api.github.com/users/tkluck","html_url":"https://github.com/tkluck","followers_url":"https://api.github.com/users/tkluck/followers","following_url":"https://api.github.com/users/tkluck/following{/other_user}","gists_url":"https://api.github.com/users/tkluck/gists{/gist_id}","starred_url":"https://api.github.com/users/tkluck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkluck/subscriptions","organizations_url":"https://api.github.com/users/tkluck/orgs","repos_url":"https://api.github.com/users/tkluck/repos","events_url":"https://api.github.com/users/tkluck/events{/privacy}","received_events_url":"https://api.github.com/users/tkluck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-27T08:51:39Z","updated_at":"2018-08-15T10:47:59Z","closed_at":"2018-08-15T10:47:59Z","author_association":"NONE","body":"`using Revise` fails when running Julia from an out-of-tree build with the following error:\r\n\r\n```\r\njulia> using Revise\r\nINFO: Precompiling module Revise.\r\nERROR: LoadError: SystemError: realpath: No such file or directory\r\nStacktrace:\r\n [1] #systemerror#44 at ./error.jl:64 [inlined]\r\n [2] systemerror(::Symbol, ::Bool) at ./error.jl:64\r\n [3] realpath(::String) at ./path.jl:311\r\n [4] include_from_node1(::String) at ./loading.jl:576\r\n [5] include(::String) at ./sysimg.jl:14\r\n [6] anonymous at ./<missing>:2\r\nwhile loading /home/tkluck/.julia/v0.6/Revise/src/Revise.jl, in expression starting on line 669\r\nERROR: Failed to precompile Revise to /home/tkluck/.julia/lib/v0.6/Revise.ji.\r\nStacktrace:\r\n [1] compilecache(::String) at ./loading.jl:710\r\n [2] _require(::Symbol) at ./loading.jl:497\r\n [3] require(::Symbol) at ./loading.jl:405\r\n```\r\n\r\nThe error is coming from this line:\r\n```julia\r\nconst sysimg_path =  # where `baremodule Base` is defined\r\n    realpath(joinpath(JULIA_HOME, Base.DATAROOTDIR, \"julia\", \"base\", \"sysimg.jl\"))\r\n```\r\nsince there is no file `sysimg.jl` at that place. Adding a symlink as follows\r\n```sh\r\n~/src/julia/build-stable/base$ ln -s ../../base/sysimg.jl\r\n```\r\nsolves the issue.\r\n\r\nFor reproducing such an out-of-tree build, one can use (in julia's top-level source directory):\r\n```sh\r\n$ make O=build-out-of-tree configure\r\n$ make -C build-out-of-tree\r\n```\r\n\r\nI'm not comfortable speculating about whether this should be solved in `Revise.jl` or in the out-of-tree build scripts, but I'm happy to provide a patch given a few pointers. In any case, we could mitigate the issue in `Revise` by ignoring this error and not tracking `Base` in this case."}}
{"actor":{"display_login":"timholy"}}