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

Build error: chksquare not defined #241

Closed
eschnett opened this issue Jun 28, 2016 · 14 comments
Closed

Build error: chksquare not defined #241

eschnett opened this issue Jun 28, 2016 · 14 comments

Comments

@eschnett
Copy link

I see this error when building Compat with a recent master checkout of Julia:

ERROR: LoadError: UndefVarError: chksquare not defined

I believe these lines cause the problem:

module LinAlg
    if VERSION < v"0.5.0-dev+2022"
        const checksquare = Base.LinAlg.chksquare
    else
        import Base.LinAlg.checksquare
    end
end

because

julia> VERSION
v"0.5.0-dev"

That is, my Julia build does not know which version it has.

@tkelman
Copy link
Contributor

tkelman commented Jun 30, 2016

Building without version info completely breaks compat, best to not do it. There's an old Julia issue on this.

@eschnett
Copy link
Author

So there should be an explicit error given in this case, not an obscure error from Compat?

@tkelman
Copy link
Contributor

tkelman commented Jun 30, 2016

It's fine if you're on a release tag. Without git it's a little harder to tell whether or not that's the case.

@cortner
Copy link

cortner commented Aug 5, 2016

I tried to narrow down a bug by checking out several commits of Julia. Unfortunately as soon as I was on a commit without release tag, this error occurred.

@tkelman
Copy link
Contributor

tkelman commented Aug 5, 2016

did you set NO_GIT ? or are you working from source that isn't from a git clone?

@cortner
Copy link

cortner commented Aug 5, 2016

I work from a git clone, and I did not set NO_GIT. Are you suggesting that I should make NO_GIT=1?

@tkelman
Copy link
Contributor

tkelman commented Aug 5, 2016

no, make NO_GIT=1 is likely to break Compat. if you did build from a normal git clone, what is dump(Base.GIT_VERSION_INFO) ?

@cortner
Copy link

cortner commented Aug 5, 2016

julia> Base.GIT_VERSION_INFO
Base.GitVersionInfo("cede5394b79c152829203dd9c19bf30772eb7ca1","cede539","(HEAD detached at cede539)",0,"2016-08-04 08:48 UTC",true,0,1.470300497e9)

not too sure how HEAD got detached. . . would that have caused it?

@cortner
Copy link

cortner commented Aug 5, 2016

julia5
_
_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type "?help" for help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.5.0-rc1+0 (2016-08-04 08:48 UTC)
/ |_'|||__'| |
|__/ | x86_64-apple-darwin15.6.0

@tkelman
Copy link
Contributor

tkelman commented Aug 5, 2016

did you possibly make a local tag? that would modify build_number and/or fork_master_distance

@cortner
Copy link

cortner commented Aug 5, 2016

No, I didn't create a new tag.

@cortner
Copy link

cortner commented Aug 5, 2016

wait - I sent you the wrong information here. When I had the chksquare not defined problem it was on a different commit. sorry.

@tkelman
Copy link
Contributor

tkelman commented Aug 5, 2016

are you using a shallow clone? does git fetch --unshallow and/or git fetch --tags then make clean && make change the result of dump(Base.GIT_VERSION_INFO)? the missing build information is probably causing this, ref JuliaLang/julia#15636

@quinnj
Copy link
Member

quinnj commented Jan 21, 2018

Doesn't sound like there's anything actionable here. Anyone feel free to re-open if that's not the case.

@quinnj quinnj closed this as completed Jan 21, 2018
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

4 participants